Skip to content

Instantly share code, notes, and snippets.

View celediel's full-sized avatar

Lilian Jónsdóttir celediel

View GitHub Profile
@celediel
celediel / README.md
Last active March 12, 2016 19:54
Cinch Last.fm Plugin

Last.fm Plugin for Cinch

A plugin to display certain information from last.fm in IRC.

Usage

Download the .rb file, and place it in a subdirectory of your bot entitled plugins then require it via require_relative. Add it to your bot like so:

@celediel
celediel / gist:1050533
Created June 28, 2011 05:01
DCC SPAM >.>
[00:37:28] xalesZNC -- | Awesomeness (Awesome@78.84.144.86): DCC Chat (78.84.144.86)
[00:37:28] weechat | xfer: incoming chat request from Awesomeness (50.21.183.176)
[00:37:34] xalesZNC -- | Awesomeness (Awesome@78.84.144.86): DCC Chat (78.84.144.86)
[00:37:34] weechat | xfer: incoming chat request from Awesomeness (50.21.183.176)
[00:37:37] xalesZNC -- | Awesomeness (Awesome@78.84.144.86): DCC Chat (78.84.144.86)
[00:37:37] weechat | xfer: incoming chat request from Awesomeness (50.21.183.176)
[00:37:40] xalesZNC -- | Awesomeness (Awesome@78.84.144.86): DCC Chat (78.84.144.86)
[00:37:41] weechat | xfer: incoming chat request from Awesomeness (50.21.183.176)
[00:37:44] xalesZNC -- | Awesomeness (Awesome@78.84.144.86): DCC Chat (78.84.144.86)
[00:37:44] weechat | xfer: incoming chat request from Awesomeness (50.21.183.176)
[23:02:00] <@xales> ? bread: tell me how fast this is lol
[23:02:02] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)- SET allows you to set various control flags
[23:02:05] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)- for nicknames that change the way certain
[23:02:08] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)- operations are performed on them.
[23:02:11] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)-
[23:02:14] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)- The following subcommands are available:
[23:02:17] <@xales> ? 22:58:48 -NickServ(NickServ@services.esper.net)- ACCOUNTNAME Changes your account name.
[23:02:20] <@xales> ? was that all at once? :o
[23:02:24] <@bread> ? nope!
[02:40:21] <-- | xales (die@inafire.com) has quit (Killed (Deltafire (Welcome!)))
[02:40:36] --> | xales (die@inafire.com) is back on server
[02:41:07] <-- | xales (die@inafire.com) has quit (Killed (eofpi_ (Welcome to the asyl--team! I mean team!)))
[02:41:21] --> | xales (die@inafire.com) is back on server
[02:42:29] <-- | xales (die@inafire.com) has quit (Killed (mr_flea (HAPPY PROMOTION!)))
[02:42:48] --> | xales (die@inafire.com) is back on server
[02:42:53] <-- | xales (die@inafire.com) has quit (Killed (TestDummy (mr_flea stole you from me because I was too busy being lazy. :<)))
[02:43:10] --> | xales (die@inafire.com) is back on server
[02:43:12] <-- | xales (die@inafire.com) has quit (Killed (Kramer (A wild xales appears as an IRCop. Congrats!)))
[02:43:27] --> | xales (die@inafire.com) is back on server
(git)-[master] % git push origin master
bread@xales.info's password:
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 423 bytes, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: From /home/bread/ashleyblog
remote: 5f2865a..1cdb4f9 master -> origin/master
remote: Updating 5f2865a..1cdb4f9
@celediel
celediel / gist:1031906
Created June 17, 2011 17:57
pstree \o/
init-+-5*[agetty]
|-2*[autocutsel]
|-crond
|-2*[dbus-daemon]
|-dbus-launch
|-dhcpcd
|-dropbox---13*[{dropbox}]
|-dwb-+-npviewer.bin
| `-2*[{dwb}]
|-gpg-agent
@celediel
celediel / gist:1028236
Created June 15, 2011 21:58
.zshrc.local
#ALIASES
alias ls="ls -b -CF --color=auto --group-directories-first"
alias c='clear'
alias reload="source ~/.zshrc"
alias obreload="killall -USR2 openbox"
alias xterm="xterm -fg white -bg black"
alias xmp="xmp -d alsa"
#alias minecraft="cd $MC;java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame"
alias wgetsite="wget -r -H -U agent -l5 -np"
alias isrunning="ps ax | grep -v grep | grep -i "
@celediel
celediel / gist:1024250
Created June 14, 2011 03:22
todo list error
Traceback (most recent call last):
File "./todolist.py", line 85, in <module>
main()
File "./todolist.py", line 68, in main
logged = newUser()
File "./todolist.py", line 28, in newUser
words = shadow.load(shadowfile,True,password)
File "/home/bread/Documents/code/python/todo/JsonEdit.py", line 43, in load
crypt.decrypt_file(key,thefile,thefile + '.dec')
File "/home/bread/Documents/code/python/todo/Encryptor.py", line 63, in decrypt_file
@celediel
celediel / gist:1020916
Created June 11, 2011 20:22
pyborg error
(git)-[master] % python pyborg-irc.py
Reading dictionary...
Connecting to server...
['#botfight']
hi #nick
Unhandled exception in thread started by
Traceback (most recent call last):
File "/home/bread/Documents/src/pyborg-1up/pyborg-1.1.2/pyborg.py", line 341, in process_msg
self.learn(body)
File "/home/bread/Documents/src/pyborg-1up/pyborg-1.1.2/pyborg.py", line 1090, in learn
from util import hook
import datetime
@hook.command
def time(inp, say=None):
gmt = datetime.datetime.utcnow().strftime("%H:%M")
uk = (datetime.datetime.utcnow()+datetime.timedelta(hours=1)).strftime("%H:%M")
bread = (datetime.datetime.utcnow()-datetime.timedelta(hours=4)).strftime("%H:%M")
cst = (datetime.datetime.utcnow()-datetime.timedelta(hours=5)).strftime("%H:%M")
sfo = (datetime.datetime.utcnow()-datetime.timedelta(hours=7)).strftime("%H:%M")