-
-
Save lxsameer/df4632d9c279fa9e15e4c31f809eaeef to your computer and use it in GitHub Desktop.
Revisions
-
pascalpoitras revised this gist
Jul 9, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -610,6 +610,7 @@ The _weechat.color.chat_host_ option will also set this color for part and quit. /set weechat.look.prefix_quit "◀▬▬" /set weechat.look.prefix_suffix "│" /set weechat.look.read_marker_string "─" /set weechat.look.separator_horizontal "" /set weechat.color.bar_more 229 -
pascalpoitras revised this gist
Jul 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,4 +14,4 @@ ## Once scripts are installed /eval /exec -oc sed -E 's/^ *//;/^(\/secure|\/script|\/ruby)/d;/^\//!d' ${env:HOME}/myweechat.md -
pascalpoitras revised this gist
Jul 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -401,7 +401,7 @@ This trigger will remove the URL in the message and add it is a tag instead. Mid This is the same trigger as above, we just changed the regex and command section to replace the color in the message with colors that figure in the option _weechat.color.chat_nick_colors_ instead. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_prefix /.*/${tg_message_nocolor}/tg_message /^\[[^]]+\]//tg_message /^\[([^]]+)\].*/${re:1}/tg_prefix /.*/${tg_prefix}/tg_prefix_nocolor /^([^\-]+).*/${info:nick_color_name,${re:1}}/tg_prefix_nocolor /^([^\-]+)/${color:_black,${info:nick_color_name,${re:1}}} ${re:1}/tg_prefix / - / ${color:-underline} /tg_prefix /$/ ${color:${tg_prefix_nocolor},default}/tg_prefix ==\(?https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_prefix}${color:reset}${tg_message}" Again, the same trigger. But this time we use powerline symbols and the colors from _weechat.color.chat_nick_colors_. -
pascalpoitras revised this gist
Jun 11, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -536,6 +536,8 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then ## Alias /alias add ame allchan -current /me /alias add amsg allchan -current /msg * /alias add cq allpv /buffer close /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 -
pascalpoitras revised this gist
May 29, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -384,8 +384,8 @@ This trigger create a new buffer named highmon. This buffer will contain all the  /filter add news irc.freenode.##news !nick_newsly*+!host_yano@unaffiliated/yano/bot/rssly,!irc_privmsg * /filter add news_interest irc.freenode.##news nick_newsly*+irc_privmsg,host_yano@unaffiliated/yano/bot/rssly+irc_privmsg !^(\s|\[)(Reddit [-] /r/netsec|Wired|freenode|EFF Updates|erry's blog|techdirt|TorrentFreak|Science Daily|Hacker News|CNET|phoronix|Ars Technica|The Intercept|france24|Radio Canada|Canoe|Huffington Post [-] Weird News|Journal du hacker|Futura Sciences)( \-| | |\]) ##news is a news channel on Freenode. The bot is named _newsly_ and you should create a filter to hide everything that is not from this bot. You should also create a filter to hide all the sites you don't mind about. -
pascalpoitras revised this gist
May 19, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -392,21 +392,21 @@ This trigger create a new buffer named highmon. This buffer will contain all the /trigger add news_modifier modifier weechat_print /trigger set news_modifier conditions "${tg_tag_nick} =~ ^newsly_? && ${tg_tags} =~ ,irc_privmsg, && ${tg_buffer} == irc.freenode.##news" /trigger set news_modifier regex "/.*// ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}" This trigger will remove the URL in the message and add it is a tag instead. Middle-click and press i on a message and the input bar will be fill with the URL, then click on the URL. If the URL is too long and is broken, press enter to echo it to ##news (nobody will see it because the channel is +m), go in bare mode (ALT+L) and click on the URL. You can also change this behavior to open the URL as soon as you click on the message. Middle-click and press m on a message and the input bar will be fill with the text and the URL. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_message /^\[([^]]+)]/[${color:*${info:nick_color_name,${re:1}}}${re:1}${color:resetcolor}]/tg_message ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}" This is the same trigger as above, we just changed the regex and command section to replace the color in the message with colors that figure in the option _weechat.color.chat_nick_colors_ instead. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_prefix /.*/${tg_message_nocolor}/tg_message /^\[[^]]+\]//tg_message /^\[([^]]+)\].*/${re:1}/tg_prefix /^([^\-]+)/${color:_black,${info:nick_color_name,${re:1}}} ${re:1}/tg_prefix / - / ${color:-underline} /tg_prefix /$/ ${color:!}/tg_prefix ==\(?https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_prefix}${color:reset}${tg_message}" Again, the same trigger. But this time we use powerline symbols and the colors from _weechat.color.chat_nick_colors_. /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_prefix}${tg_message}" Same trigger (must be used with the regex above, from the powerline version) but color the whole message. -
pascalpoitras revised this gist
May 19, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -373,7 +373,7 @@ This trigger create a new buffer named chanmon. This buffer will contain all the /buffer_autoset add core.highmon title Highlight Monitor /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${tg_displayed} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," /trigger set highmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?${weechat.look.quote_nick_prefix}${tg_prefix}${color:reset}${weechat.look.quote_nick_suffix}:${tg_prefix}${color:reset}} ${tg_message}" -
pascalpoitras revised this gist
May 19, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -392,21 +392,21 @@ This trigger create a new buffer named highmon. This buffer will contain all the /trigger add news_modifier modifier weechat_print /trigger set news_modifier conditions "${tg_tag_nick} =~ ^newsly_? && ${tg_tags} =~ ,irc_privmsg, && ${tg_buffer} == irc.freenode.##news" /trigger set news_modifier regex "/.*// ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}${tg_displayed}${tg_highlight}" This trigger will remove the URL in the message and add it is a tag instead. Middle-click and press i on a message and the input bar will be fill with the URL, then click on the URL. If the URL is too long and is broken, press enter to echo it to ##news (nobody will see it because the channel is +m), go in bare mode (ALT+L) and click on the URL. You can also change this behavior to open the URL as soon as you click on the message. Middle-click and press m on a message and the input bar will be fill with the text and the URL. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_message /^\[([^]]+)]/[${color:*${info:nick_color_name,${re:1}}}${re:1}${color:resetcolor}]/tg_message ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}${tg_displayed}${tg_highlight}" This is the same trigger as above, we just changed the regex and command section to replace the color in the message with colors that figure in the option _weechat.color.chat_nick_colors_ instead. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_prefix /.*/${tg_message_nocolor}/tg_message /^\[[^]]+\]//tg_message /^\[([^]]+)\].*/${re:1}/tg_prefix /^([^\-]+)/${color:_black,${info:nick_color_name,${re:1}}} ${re:1}/tg_prefix / - / ${color:-underline} /tg_prefix /$/ ${color:!}/tg_prefix ==\(?https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_prefix}${color:reset}${tg_message}${tg_displayed}${tg_highlight}" Again, the same trigger. But this time we use powerline symbols and the colors from _weechat.color.chat_nick_colors_. /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_prefix}${tg_message}${tg_displayed}${tg_highlight}" Same trigger (must be used with the regex above, from the powerline version) but color the whole message. -
pascalpoitras revised this gist
Apr 2, 2018 . 6 changed files with 0 additions and 0 deletions.There are no files selected for viewing
Binary file not shown.Binary file not shown.Binary file not shown.Binary file not shown.Binary file not shown.Binary file not shown. -
pascalpoitras revised this gist
Apr 2, 2018 . 6 changed files with 0 additions and 0 deletions.There are no files selected for viewing
LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed.LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed. -
pascalpoitras revised this gist
Mar 31, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  ## Enable mouse support -
pascalpoitras revised this gist
Mar 31, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -226,6 +226,7 @@ Note: show channels and privates buffers under their respective server instead o /set buflist.format.hotlist_highlight "${color:163}" /set buflist.format.hotlist_message "${color:229}" /set buflist.format.hotlist_private "${color:121}" /set buflist.format.indent "${if:${type}==channel&&${buffer.name}=~fr$||${info:aspell_dict,${buffer.full_name}}=~fr?${color:blue}f : }${color:*white}" /set buflist.format.name "${if:${type}==server?${color:white}:${color_hotlist}}${if:${type}==server||${type}==channel||${type}==private?${if:${cutscr:8,+,${name}}!=${name}?${cutscr:8,${color:${weechat.color.chat_prefix_more}}+,${if:${type}==server&&${info:irc_server_isupport_value,${name},NETWORK}?${info:irc_server_isupport_value,${name},NETWORK}:${name}}}:${cutscr:8, ,${if:${type}==server&&${info:irc_server_isupport_value,${name},NETWORK}?${info:irc_server_isupport_value,${name},NETWORK} :${name} }}}:${name}}" /set buflist.format.number "${if:${type}==server?${color:black,31}:${color:239}}${number}${if:${number_displayed}?.: }" /set weechat.bar.buflist.size 18 -
pascalpoitras revised this gist
Mar 30, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I /autosort helpers set french_channels_first ${if:${type}==channel&&${buffer.name}!~fr$&&${info:aspell_dict,${buffer.full_name}}!~fr} /autosort rules insert 6 ${french_channels_first} this rule will show french channels first (those that the name end with fr and also those that aspell is set to fr) -
pascalpoitras revised this gist
Mar 30, 2018 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -115,13 +115,11 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I ### autosort.py /autosort helpers set french_channels_first ${if:${type}==channel&&${buffer.name}!~fr$&&${info:aspell_dict,${buffer.full_name}}!~fr} /autosort rules insert 6 ${french_channels_first this rule will show french channels first (those that the name end with fr and also those that aspell is set to fr) ## Conky -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -471,7 +471,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /trigger add marie_birthday signal day_changed /trigger set marie_birthday conditions "${tg_signal_data} =~ 03-22$" /trigger set marie_birthday command "/command -buffer ${sec.data.mariechannel} ruby /ruby eval -o print "BONNNE FÊTEEEE!!! BON #{${date:%Y} - 1984}ieme anniversaire!!!"" The trigger _marie_birthday_ will be triggered the March 22 of each years at midnight to tell my friend "happy birthday" -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -471,7 +471,7 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /trigger add marie_birthday signal day_changed /trigger set marie_birthday conditions "${tg_signal_data} =~ 03-22$" /trigger set marie_birthday command "/command -buffer ${sec.data.mariechannel} ruby /ruby eval -o print "BONNNE FÊTEEEE!!! BON #{${date:%Y} - 1984}ieme anniversaire!!!" The trigger _marie_birthday_ will be triggered the March 22 of each years at midnight to tell my friend "happy birthday" -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -329,7 +329,7 @@ This bar will be exactly like a default nicklist bar. That is, right-positionned ### Layout highlight-or-news /eval /ruby eval -oc print "/window splith #{(8.0 / ${window[gui_current_window].win_height} * 100).to_i}" /buffer add -switch highmon /window 1 /layout store highlight-or-news -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -329,7 +329,7 @@ This bar will be exactly like a default nicklist bar. That is, right-positionned ### Layout highlight-or-news /eval /ruby eval -oc print "/window splith #{(8.0 / ${window[gui_current_window].win_height} * 100)}" /buffer add -switch highmon /window 1 /layout store highlight-or-news -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -329,7 +329,7 @@ This bar will be exactly like a default nicklist bar. That is, right-positionned ### Layout highlight-or-news /eval /ruby eval -oc print "/window splith #{(8.0 / ${window[gui_current_window].win_height} * 100)} /buffer add -switch highmon /window 1 /layout store highlight-or-news -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ /secure set bncpass <pass> /secure set relaypass <pass> /secure set hiddenbuffers <list of hidden buffers full name> /script install buffer_autoset.py autosort.py grep.py text_item.py /secure set mariechannel <buffer fullname of my friend's channel> ## Once scripts are installed -
pascalpoitras revised this gist
Mar 22, 2018 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I ## Scripts /script install buffer_autoset.py autosort.py grep.py text_item.py ### autosort.py @@ -315,7 +315,9 @@ Note: I changed the conditions to display the nicklist only on buffer of type ch /key bindctxt mouse @item(znc_commands):button1 hsignal:znc_commands /eval /ruby eval -oc print "/set trigger.trigger.hsignal_znc_commands.regex #{%w[${plugins.var.znc_commands}].map.with_index { |command, line| "/^%s$/%s/_bar_item_line" % [line, command]; }.join(' ')}" /eval /ruby eval -oc print "/set plugins.var.python.text_item.znc_commands private #{%w[${plugins.var.znc_commands}].map { |command| suffix = command.gsub(/.*?([A-Z][A-Z]+|[A-Z][a-z]+)$/, '\1').gsub(/([^s])s$/, '\1'); '\${color:\${info:nick_color_name,%s}}%s\${\n}' % [suffix, command]; }.join}" This bar will be exactly like a default nicklist bar. That is, right-positionned with vertical filling. But instead of nicknames, it will contains a znc command per line. If you click on a command, the input bar will be filled with the command name, then you add whatever you want or simply press enter. Futhermore, this will send _help command_ to znc. -
pascalpoitras revised this gist
Mar 21, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -479,6 +479,12 @@ The trigger _marie_birthday_ will be triggered the March 22 of each years at mid The Happy New Year trigger! If you want to try if the above triggers works (don't have to wait until the date) type the following /ruby eval Weechat.hook_signal_send('day_changed', Weechat::WEECHAT_HOOK_SIGNAL_STRING, '2018-01-02') The first trigger, _upgrade_scripts_ will then be triggered (not the other one)   -
pascalpoitras revised this gist
Mar 21, 2018 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -479,12 +479,13 @@ The trigger _marie_birthday_ will be triggered the March 22 of each years at mid The Happy New Year trigger!   /trigger add modifier_is_nick_valid modifier input_text_display /trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" /trigger set modifier_is_nick_valid regex "==/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cut:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${info:perl_eval,print ${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6) . ' /'} ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}${esc:a-zA-Z0-9_-\[]{}^`|}===tg_string" The trigger modifier_is_nick_valid will give you hint about max nickname length and available character in nickname and will also tell you if the nick is valid (green) or not (red). Note that it doesn't works with -all option of the /nick command. -
pascalpoitras revised this gist
Mar 21, 2018 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -467,9 +467,6 @@ These alias send info about the current stable version of WeeChat and the next s The trigger _upgrade_scripts_ will update the local script cache and then upgrade all the installed scripts at midnight. /trigger add marie_birthday signal day_changed /trigger set marie_birthday conditions "${tg_signal_data} =~ 03-22$" /trigger set marie_birthday command "/command -buffer ${sec.data.mariechannel} ruby /ruby eval -o print 'BONNNE FÊTEEEE!!! BON ' + (${date:%Y} - 1984).to_s + 'ieme anniversaire!!!'" @@ -486,6 +483,8 @@ The Happy New Year trigger! /trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" /trigger set modifier_is_nick_valid regex "==/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cut:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${info:perl_eval,print ${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6) . ' /'} ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}${esc:a-zA-Z0-9_-\[]{}^`|}===tg_string"   The trigger modifier_is_nick_valid will give you hint about max nickname length and available character in nickname and will also tell you if the nick is valid (green) or not (red). Note that it doesn't works with -all option of the /nick command. -
pascalpoitras revised this gist
Mar 21, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -478,7 +478,7 @@ The trigger _marie_birthday_ will be triggered the March 22 of each years at mid /trigger add new_year signal day_changed /trigger set new_year conditions "${tg_signal_data} =~ 01-01$" /trigger set new_year command "/command -buffer ${sec.data.mariechannel} irc /msg * BONNNE ANNÉE ${date:%Y}!!! santé, bonheur et sexe a toi chère amie :)" The Happy New Year trigger! -
pascalpoitras revised this gist
Mar 21, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -476,6 +476,12 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad The trigger _marie_birthday_ will be triggered the March 22 of each years at midnight to tell my friend "happy birthday" /trigger add new_year signal day_changed /trigger set new_year conditions "${tg_signal_data} =~ 01-01$" /trigger set new_year command "/command -buffer ${sec.data.mariechannel} ruby /ruby eval -o print 'BONNNE ANNÉE ${date:%Y}!!! santé, bonheur et sexe a toi chère amie :)'" The Happy New Year trigger! /trigger add modifier_is_nick_valid modifier input_text_display /trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" /trigger set modifier_is_nick_valid regex "==/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cut:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${info:perl_eval,print ${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6) . ' /'} ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}${esc:a-zA-Z0-9_-\[]{}^`|}===tg_string" -
pascalpoitras revised this gist
Mar 21, 2018 . 2 changed files with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ /secure set bncpass <pass> /secure set relaypass <pass> /secure set hiddenbuffers <list of hidden buffers full name> /secure set mariechannel <buffer fullname of my friend's channel> ## Network @@ -469,6 +470,12 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad   /trigger add marie_birthday signal day_changed /trigger set marie_birthday conditions "${tg_signal_data} =~ 03-22$" /trigger set marie_birthday command "/command -buffer ${sec.data.mariechannel} ruby /ruby eval -o print 'BONNNE FÊTEEEE!!! BON ' + (${date:%Y} - 1984).to_s + 'ieme anniversaire!!!'" The trigger _marie_birthday_ will be triggered the March 22 of each years at midnight to tell my friend "happy birthday" /trigger add modifier_is_nick_valid modifier input_text_display /trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" /trigger set modifier_is_nick_valid regex "==/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cut:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${info:perl_eval,print ${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6) . ' /'} ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}${esc:a-zA-Z0-9_-\[]{}^`|}===tg_string" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ /secure set relaypass <pass> /secure set hiddenbuffers <list of hidden buffers full name> /script install buffer_autoset.py perlexec.pl autosort.py grep.py text_item.py /secure set mariechannel <buffer fullname of my friend's channel> ## Once scripts are installed -
pascalpoitras revised this gist
Mar 1, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -383,7 +383,7 @@ This trigger create a new buffer named highmon. This buffer will contain all the  /filter add news irc.freenode.##news !nick_newsly+!host_yano@unaffiliated/yano/bot/rssly,!irc_privmsg * /filter add news_interest irc.freenode.##news nick_newsly+irc_privmsg,host_yano@unaffiliated/yano/bot/rssly+irc_privmsg !^(\s|\[)(Reddit [-] /r/netsec|Wired|freenode|EFF Updates|erry's blog|techdirt|TorrentFreak|Science Daily|Hacker News|CNET|phoronix|Ars Technica|The Intercept|france24|Radio Canada|Canoe|Huffington Post [-] Weird News|Journal du hacker|Futura Sciences)( \-| | |\]) ##news is a news channel on Freenode. The bot is named _newsly_ and you should create a filter to hide everything that is not from this bot. You should also create a filter to hide all the sites you don't mind about. -
pascalpoitras revised this gist
Feb 26, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -431,7 +431,7 @@ Well If we use this, the input bar will be filled with the command and not the u ## Dev info  /trigger add devinfofr hsignal devinfofr /trigger set devinfofr regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/La version stable de WeeChat est la ${re:1}./out / stable_date:(\S+)/ Elle est la version stable depuis le ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.today.mjd - Date.parse('${re:1}').mjd).to_s + ' jours)'}./out / devel:(\S+)/ La version devel de WeeChat est la ${re:1}./out / next_stable_date:(\S+)/ La prochaine stable devrait arriver aux alentour du ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.parse('${re:1}').mjd - Date.today.mjd).to_s + ' jours)'}./out /([0-9]{4})-01-([0-9]{2})/${re:2} Janvier ${re:1}/out /([0-9]{4})-02-([0-9]{2})/${re:2} Février ${re:1}/out /([0-9]{4})-03-([0-9]{2})/${re:2} Mars ${re:1}/out /([0-9]{4})-04-([0-9]{2})/${re:2} Avril ${re:1}/out /([0-9]{4})-05-([0-9]{2})/${re:2} Mai ${re:1}/out /([0-9]{4})-06-([0-9]{2})/${re:2} Juin ${re:1}/out /([0-9]{4})-07-([0-9]{2})/${re:2} Juillet ${re:1}/out /([0-9]{4})-08-([0-9]{2})/${re:2} Août ${re:1}/out /([0-9]{4})-09-([0-9]{2})/${re:2} Septembre ${re:1}/out /([0-9]{4})-10-([0-9]{2})/${re:2} Octobre ${re:1}/out /([0-9]{4})-11-([0-9]{2})/${re:2} Novembre ${re:1}/out /([0-9]{4})-12-([0-9]{2})/${re:2} Décembre ${re:1}/out" -
pascalpoitras revised this gist
Feb 26, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -434,11 +434,11 @@ Well If we use this, the input bar will be filled with the command and not the u  /trigger add devinfofr hsignal devinfofr /trigger set devinfofr regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/La version stable de WeeChat est la ${re:1}./out / stable_date:(\S+)/ Elle est la version stable depuis le ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.today.mjd - Date.parse('${re:1}').mjd).to_s + ' jours)'}./out / devel:(\S+)/ La version devel de WeeChat est la ${re:1}./out / next_stable_date:(\S+)/ La prochaine stable devrait arriver aux alentour du ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.parse('${re:1}').mjd - Date.today.mjd).to_s + ' jours)'}./out /([0-9]{4})-01-([0-9]{2})/${re:2} Janvier ${re:1}/out /([0-9]{4})-02-([0-9]{2})/${re:2} Février ${re:1}/out /([0-9]{4})-03-([0-9]{2})/${re:2} Mars ${re:1}/out /([0-9]{4})-04-([0-9]{2})/${re:2} Avril ${re:1}/out /([0-9]{4})-05-([0-9]{2})/${re:2} Mai ${re:1}/out /([0-9]{4})-06-([0-9]{2})/${re:2} Juin ${re:1}/out /([0-9]{4})-07-([0-9]{2})/${re:2} Juillet ${re:1}/out /([0-9]{4})-08-([0-9]{2})/${re:2} Août ${re:1}/out /([0-9]{4})-09-([0-9]{2})/${re:2} Septembre ${re:1}/out /([0-9]{4})-10-([0-9]{2})/${re:2} Octobre ${re:1}/out /([0-9]{4})-11-([0-9]{2})/${re:2} Novembre ${re:1}/out /([0-9]{4})-12-([0-9]{2})/${re:2} Décembre ${re:1}/out" /trigger set devinfofr command "/command -buffer ${buffer.full_name} * /say ${out}" /trigger add devinfo hsignal devinfo /trigger set devinfo regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/The stable version of WeeChat is ${re:1}./out / stable_date:(\S+)/ It is the stable version since ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.today.mjd - Date.parse('${re:1}').mjd).to_s + ' days)'}./out / devel:(\S+)/ The devel version of WeeChat is ${re:1}./out / next_stable_date:(\S+)/ The next stable should be release around ${re:1}${info:ruby_eval,require 'date'; print ' (' + (Date.parse('${re:1}').mjd - Date.today.mjd).to_s + ' days)'}./out /([0-9]{4})-01-([0-9]{2})/January ${re:2} ${re:1}/out /([0-9]{4})-02-([0-9]{2})/February ${re:2} ${re:1}/out /([0-9]{4})-03-([0-9]{2})/March ${re:2} ${re:1}/out /([0-9]{4})-04-([0-9]{2})/April ${re:2} ${re:1}/out /([0-9]{4})-05-([0-9]{2})/May ${re:2} ${re:1}/out /([0-9]{4})-06-([0-9]{2})/June ${re:2} ${re:1}/out /([0-9]{4})-07-([0-9]{2})/July ${re:2} ${re:1}/out /([0-9]{4})-08-([0-9]{2})/August ${re:2} ${re:1}/out /([0-9]{4})-09-([0-9]{2})/September ${re:2} ${re:1}/out /([0-9]{4})-10-([0-9]{2})/October ${re:2} ${re:1}/out /([0-9]{4})-11-([0-9]{2})/November ${re:2} ${re:1}/out /([0-9]{4})-12-([0-9]{2})/December ${re:2} ${re:1}/out" /trigger set devinfo command "/command -buffer ${buffer.full_name} * /say ${out}" /alias add devinfo /exec -norc -timeout 5 -hsignal devinfo url:https://weechat.org/dev/info/all/
NewerOlder