This file contains 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 characters
#!/usr/bin/env python | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
app = QApplication(['4chan desktop app']) | |
desktop = QDesktopWidget() | |
geometry = desktop.screenGeometry(0) |
This file contains 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 characters
#!/usr/bin/env python | |
import subprocess | |
import sys | |
import signal | |
target = sys.argv[1] | |
def nop(*args): pass | |
signal.signal(signal.SIGHUP, nop) | |
a = subprocess.Popen(['python', target], stdin=-1, stderr=-1, stdout=-1) |
This file contains 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 characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
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, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains 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 characters
#!/usr/bin/env python | |
""" | |
@author: HarHar (https://github.com/HarHar) | |
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, |
This file contains 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 characters
import weechat | |
from time import sleep | |
# -*- coding: utf8 -*- | |
weechat.register("masshighlight", "HarHar", "1.0", "GPL3", "fgt", "", "") | |
hook = weechat.hook_command('mhilight', 'Mass Highlight', "", "", "msg", "mh", "") | |
weechat.prnt("", "Mass highlighting lock and loaded") | |
def mh(data, buffer, args): | |
buffer = weechat.current_buffer() |
This file contains 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 characters
#/usr/bin/env python | |
import socket, random, threading, re | |
from time import sleep | |
#Configs | |
network = 'IRC.SERVER.NET' | |
port = 6667 | |
groups = [{'nicks': [], 'password': ''}, {'nicks': [], 'password': ''}] | |
interval = 60 #interval in seconds between each nick change |
This file contains 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 characters
#!/usr/bin/env python | |
from interfaces.common import * | |
from libYAAM import YAAMDb | |
olddb = raw_input('Path to YAAM database file> ') | |
newdb = raw_input('Path to new Futaam file> ') | |
o = YAAMDb(olddb) | |
ni = [] | |
i = 0 |
This file contains 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 characters
# -*- coding: utf-8 -*- | |
# ============================================================================= | |
# shell.py (c) March 2006, 2009 by Kolter <[email protected]> | |
# | |
# Licence : GPL v2 | |
# Description : running shell commands in WeeChat | |
# Syntax : try /help shell to get some help on this script | |
# Precond : needs weechat >= 0.3.0 to run | |
# | |
# |
This file contains 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 characters
import weechat | |
# -*- coding: utf8 -*- | |
weechat.register("kumagawa", "HarHar/t4w", "1.0", "GPL3", "2cool", "", "") | |
hook = weechat.hook_command('x', '『』 it', "[msg]", "", "msg", "kewl", "") | |
def kewl(data, buffer, args): | |
buffer = weechat.current_buffer() | |
weechat.command(buffer, chr(15) + '『 '+ args + chr(15) +' 』') | |
return weechat.WEECHAT_RC_OK |
This file contains 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 characters
import serial | |
from sys import argv | |
from time import sleep | |
from select import select | |
try: | |
filename, device = argv | |
except: | |
print 'Usage: ' + argv[0] + ' [device]' | |
exit() |