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
iptables -t nat -A PREROUTING -s 195.230.96.32 -d 91.206.57.66 -i eth0 -p tcp -m tcp --dport 3899 -j DNAT --to-destination 10.0.1.196:3899 | |
iptables -t filter -I RH-Firewall-1-INPUT 10 -d 10.0.1.222 -p tcp -m tcp --dport 80 -j ACCEPT |
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
export DISPLAY=`echo $SSH_CONNECTION | awk '{print $1}'`":0.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
cryptsetup -y --cipher aes-xts-plain:sha512 --key-size 512 luksFormat /dev/sdb1 |
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
groups = { | |
"POST": ["NOUN","ADJF","ADJS","COMP","VERB","INFN","PRTF","PRTS","GRND","NUMR","ADVB","NPRO","PRED","PREP","CONJ","PRCL","INTJ"], | |
"anim": ["ANim","anim","inan","Inmx"], | |
"GNdr": ["masc","femn","neut","Ms-f"], | |
"NMbr":["sing","plur","Sgtm","Pltm","Fixd"], | |
"CAse":["nomn","gent","datv","accs","ablt","ablt","loct","voct","gen1","gen2","acc2","loc1","loc2"], | |
"ASpc":["perf","impf"], | |
"TRns":["tran","intr"], | |
"PErs":["1per","2per","3per"], | |
"TEns":["pres","past","futr"], |
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/perl | |
# dir2dot.pl v0.5 (C) [email protected], released under the GPL. | |
# Download from: http://www.chaosreigns.com/code/ | |
# | |
# Generates a directed graph of a directory tree using graphviz like so: | |
# | |
# find . -type d -print | perl dir2dot.pl > dirtree.dot | |
# neato -Tpng dirtree.dot > dirtree.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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"virtual MIDI keyboard on PyQt4. To run this use commands: jack_control start && timidity -iA -Oj -B2,8" | |
from PyQt4.QtGui import QGridLayout, QHBoxLayout, QLineEdit, QPushButton, QSizePolicy, QVBoxLayout, QWidget | |
from PyQt4.QtCore import QSize, SIGNAL, QEvent | |
# this app will list all MIDI devices and associated numbers | |
# Pick the correct number associated, and restart the app. |