Skip to content

Instantly share code, notes, and snippets.

View mumixam's full-sized avatar

mumixam

View GitHub Profile
@mumixam
mumixam / gist:33716b648a66bd646ce13ffbcca2669a
Created April 27, 2024 03:20
weechat python scripts that need raw strings for regex
autoauth.py: match_data = re.match("\A(irc.)?([^.]+)\.(#\S+)\Z", channel_name)
autoconf.py: 'option': re.compile('\s*(.*) = (.*) \(%s' % default_txt)
autojoin.py: sec = re.match('^\${sec\.data\.(.*)}$', oldchans)
bufsize.py: regex_color=re.compile('\$\{([^\{\}]+)\}')
bufsize.py:regex_optional_tags=re.compile('%\{[^\{\}]+\}')
chancomp.py: ischan_regex = re.compile("^{}\.[{}]".format(re.escape(server), re.escape(isupport_chantypes)))
clone_scanner.py: host_matchdata = re.match('([^@]+)@(\S+)', ident_hostname)
correction_completion.py: re_remove_chars = re.compile('[,.;:?!\)\(\\\/\"\^]')
glitter.py:glitter_pat = re.compile("\*\*\*([^\*]+)\*\*\*")
greentext.py:purpletext_re = re.compile("^\s*<.*$")
@mumixam
mumixam / anti-adblock-killer-filters.txt
Last active May 28, 2023 17:56
anti-adblock-killer-filters.txt
[Adblock Plus 2.0]
! Title: AakList (Anti-Adblock Killer)
! Author: Reek | http://reeksite.com/
! Version: 10.0
! Expires: 1 days
! License: https://creativecommons.org/licenses/by-sa/4.0/
! Homepage: https://github.com/reek/anti-adblock-killer/
! Twitter: https://twitter.com/antiadbkiller
! Contact: https://reek.github.io/anti-adblock-killer/#contact
! Support: https://github.com/reek/anti-adblock-killer/issues
# -----------------------------------------------------------------------------
#
# query_blocker.pl - Simple blocker for private messages (i.e. spam).
#
# -----------------------------------------------------------------------------
# Copyright (c) 2009-2014 by rettub <rettub@gmx.net>
# Copyright (c) 2011-2014 by nils_2 <weechatter@arcor.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@mumixam
mumixam / README
Last active October 23, 2016 02:31
Weechat raspbian jessie packages
moved to https://github.com/mumixam/weechat-raspbian-binary
@mumixam
mumixam / retakes_standardallocatormod.smx
Last active August 27, 2016 00:22
retakes_standardallocatormod
#!/bin/bash
WEEPATH="/home/mumixam/.weechat"
if [ -z "$(ls $WEEPATH | grep ".upgrade$")" ]; then
/usr/bin/screen -dmS weechat weechat
else
/usr/bin/screen -dmS weechat weechat --upgrade
fi
#
# Copyright (C) 2008-2014 Sebastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2011-2013 Nils G <weechatter@arcor.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
javascript:(function(){function%20getDigit(x,a){return(a>=x.length)?"0":x.charAt(x.length-a-1)}function%20prefixZeros(a,b){var%20c=a;for(var%20i=0;i<b;i++){c="0"+c}return%20c}function%20add(x,y){var%20a=Math.max(x.length,y.length);var%20b="";var%20c=0;var%20d=0;for(var%20i=0;i<a;i++){var%20e=Number(getDigit(x,i));var%20f=Number(getDigit(y,i));var%20g=e+f+c;c=0;while(g>=10){g-=10;c++}if(g===0){d++}else{b=String(g)+prefixZeros(b,d);d=0}}if(c>0){b=String(c)+b}return%20b}function%20getId(a){var%20b="76561197960265728";var%20c=a.attributes.getNamedItem('data-miniprofile').value;return%20add(b,c)}var%20h=[].slice.call(document.querySelectorAll('#memberList%20.member_block,%20.friendHolder,%20.friendBlock'));var%20j={};h.forEach(function(a){var%20b=getId(a);if(!j[b]){j[b]=[]}j[b].push(a)});function%20setVacation(e){var%20f=j[e.SteamId];f.forEach(function(a){var%20b=a.querySelector('.linkFriend_in-game');var%20c=document.createElement('span');c.style.fontWeight='bold';c.style.display='block';if(b){b.innerHTML=b.inner
cvar list
--------------
_autosave : cmd : : Autosave
_autosavedangerous : cmd : : AutoSaveDangerous
_bugreporter_restart : cmd : : Restarts bug reporter .dll
_record : cmd : : Record a demo incrementally.
_resetgamestats : cmd : : Erases current game stats and writes out a blank stats file
_restart : cmd : : Shutdown and restart the engine.
achievement_debug : 0 : , "cheat", "rep", "cl" : Turn on achievement debug msgs.
achievement_disable : 0 : , "cheat", "rep", "cl" : Turn off achievements.