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
convert image.tif -profile /usr/share/color/icc/colord/sRGB.icc test.png |
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
# MOVED TO: https://github.com/meeuw/injectinput | |
#!/usr/bin/python3 | |
import evdev | |
import sys | |
upper = { '!': '1', '@': '2', '#': '3', '$': '4', '%': '5', '^': '6', '&': '7', '*': '8', '(': '9', ')': '0' } | |
with evdev.UInput() as ui: | |
escape = False |
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
#!/bin/bash | |
scp $1 $2: | |
ssh $(grep _port $1|sed 's/^[^:]*: \([^,]\+\).*/\1/'| | |
while read PORT ; do | |
echo -R $PORT:localhost:$PORT | |
done) $2 |
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/python3 | |
import os | |
import sys | |
import argcomplete | |
import argparse | |
import glob | |
import os.path | |
import sys | |
import subprocess | |
parser = argparse.ArgumentParser() |
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/python3 | |
import fileinput | |
import re | |
import json | |
callbackcode = ''' | |
''' | |
classes = {} | |
functions = [] | |
for line in fileinput.input(): |
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/python | |
import sys | |
header = None | |
keys = [] | |
firstmatch = None | |
for line in sys.stdin.readlines(): | |
s = line[:-1].split('\t') |
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
$($.find("table:eq(1) input")).prop("checked", true) |
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/python | |
import os | |
import telnetlib | |
import time | |
prompt = os.environ['PROMPT']+">" | |
if 'USERN' in os.environ: | |
usern = os.environ['USERN'] | |
else: | |
usern = None |
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 fileinput | |
import os.path | |
d = {} | |
for line in fileinput.input(): | |
s = line[:-1].split('\t') | |
d[s[0]] = s[1] | |
for key, value in d.items(): | |
i = 0 | |
while 1: |