Skip to content

Instantly share code, notes, and snippets.

View knivey's full-sized avatar

Fred Akers knivey

View GitHub Profile
__module_name__ = "Notices Handler"
__module_version__ = "1.1"
__module_description__ = "Take over handling of notices and send those from *@services.* to active window"
import hexchat
# :bots.phuzion.net NOTICE * :*** Notice -- SETTIME from services.phuzion.net, clock is set 0 seconds backwards
# :ChanServ!ChanServ@services.phuzion.net NOTICE knivey :knivey is gleaming (IRC operator).
def Hnotices(word, word_eol, userdata):
if word[0] == None or '!' not in word[0]:
@knivey
knivey / gtkrc
Created June 4, 2014 08:48
blade's gtkrc for hexchat
gtk_color_scheme = "fg_color:#d3d7cf\nbg_color:#202020\nbase_color:#2c3028\ntext_color:#d3d7cf\nselected_bg_color:#386030\nselected_fg_color:#d3d7cf"
gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32"
gtk-toolbar-icon-size = small-toolbar
# disable images in buttons. i've only seen ugly delphi apps use this feature.
gtk-button-images = 0
# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
__module_name__ = "barf"
__module_version__ = "1.0"
__module_description__ = "Python module example"
import xchat, datetime
def cmd_age(word, wordl, ud):
woot = (datetime.datetime.today() - datetime.datetime(year=1970, month=1, day=12)).days / 365.24
xchat.command("MSG %s Age: %s" % (xchat.get_info("channel"), woot))
return xchat.EAT_ALL
__module_name__ = "barf"
__module_version__ = "1.0"
__module_description__ = "Python module example"
import xchat, time
def testy(word, wordl, ud):
count=0
t = time.time() + 1
while time.time() < t:
body {
color: black;
font-family: Hack;
font-size: 12px;
counter-reset:posts;
}
div.inlined {
background-color: rgba(228, 212, 202, 1);
}
#include <stdio.h>
#include <time.h>
char* dance[] = {
":D\\-<",
":D|-<",
":D/-<",
":D|-<"
};

Keybase proof

I hereby claim:

  • I am knivey on github.
  • I am knivey (https://keybase.io/knivey) on keybase.
  • I have a public key ASAMN-dW4Q7T0JmGDK9KMwSIrQvO66CCQKrEdWx-SeB3Ewo

To claim this, I am signing this object:

#!/bin/bash
color=$'\003'
disk="$(df -h / --output=avail | tail -n 1 | xargs) Avail"
disk_pcent=$(df -h / --output=pcent |tail -n 1 | xargs |sed "s/%//")
disk_color="${color}11,01"
case 1 in
$(($disk_pcent>=95))) disk_color="${color}04,01";;
$(($disk_pcent>=90))) disk_color="${color}08,01";;
#!/usr/bin/env php
<?php
# downloads done with:
# youtube-dl --proxy socks5://127.0.0.1:8080 --write-info-json -i -o "%(title)s (%(id)s).%(ext)s" -f bestaudio --add-metadata --extract-audio --download-archive dl.txt
//$files = [];
$files = glob("*.m4a");
$files = array_merge($files, glob("*.opus"));
foreach ($files as $f) {
$ext = pathinfo($f, PATHINFO_EXTENSION);
Index: src/coremods/core_user/cmd_nick.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/coremods/core_user/cmd_nick.cpp b/src/coremods/core_user/cmd_nick.cpp
--- a/src/coremods/core_user/cmd_nick.cpp (revision 744f8b4604524c50196751397438e2e8bdd0d7bc)
+++ b/src/coremods/core_user/cmd_nick.cpp (date 1643871401984)
@@ -45,6 +45,15 @@
{