This file contains hidden or 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
{ | |
split($6,A,"#") | |
if (!dict[A[1]]) | |
dict[A[1]] = ++i | |
$6 = dict[A[1]] "#" A[2] | |
print $0 | |
} |
This file contains hidden or 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 python3 | |
import math | |
import collections | |
import functools | |
import subprocess | |
MAX_SCORE = 100 |
This file contains hidden or 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/env python | |
import sys | |
import getopt | |
import socket | |
def response(data, ancount): | |
# id and flags | |
packet = data[:2] + '\x81\x80' | |
# counts |
This file contains hidden or 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
! Cursor theme | |
xcursor.theme: Vanilla-DMZ | |
! URxvt config | |
URxvt*termName: rxvt-16color | |
URxvt.scrollBar: off | |
URxvt.font: xft:monaco:size=10:antialias=true | |
URxvt.internalBorder: 0 | |
URxvt*selectToClipboard: true |
This file contains hidden or 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
diff -rupN easytag-2.1.7/src/mp4_header.c easytag-2.1.7-patch/src/mp4_header.c | |
--- easytag-2.1.7/src/mp4_header.c 2011-07-04 02:59:21.000000000 +0200 | |
+++ easytag-2.1.7-patch/src/mp4_header.c 2012-06-06 18:29:54.515139743 +0200 | |
@@ -204,7 +204,7 @@ gboolean Mp4_Header_Read_File_Info (gcha | |
/* Get size of file */ | |
ETFileInfo->size = Get_File_Size(filename); | |
- if ((file = MP4Read(filename, 0)) == MP4_INVALID_FILE_HANDLE ) | |
+ if ((file = MP4Read(filename)) == MP4_INVALID_FILE_HANDLE ) | |
{ |
This file contains hidden or 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
KERNEL!="sd[c-z]*", GOTO="mounttruecrypt_end" | |
# devices | |
ATTRS{serial}=="5743415A4131373736393036", ENV{dir_name}="ext" | |
ATTRS{serial}=="NA056AG5", KERNEL=="sd?1", ENV{dir_name}="mobile" | |
# mounttruecrypt | |
ACTION=="add", ENV{dir_name}!="", SYMLINK+="%E{dir_name}", RUN+="/usr/sbin/mounttruecrypt -u menski /dev/%E{dir_name}" | |
ACTION=="remove", ENV{dir_name}!="", RUN+="/usr/sbin/mounttruecrypt -u menski /media/%E{dir_name} --remove" |
This file contains hidden or 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
KERNEL=="dock.0", ACTION=="change", RUN+="/usr/sbin/thinkpad-dock" |
This file contains hidden or 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
diff --git a/.gitignore b/.gitignore | |
new file mode 100644 | |
index 0000000..37b1c60 | |
--- /dev/null | |
+++ b/.gitignore | |
@@ -0,0 +1,2 @@ | |
+dwm | |
+dwm.o | |
diff --git a/config.def.h b/config.def.h | |
index 77ff358..d22ce99 100644 |
This file contains hidden or 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 random | |
import itertools | |
network = "2001:0db8:85a3:08d3" | |
N = 34 # number of permutation elements | |
with open('ipv6-list.txt', 'w') as f: | |
for addr in itertools.permutations(random.sample(range(64 ** 2), N), 4): | |
f.write(network + ":%04x:%04x:%04x:%04x\n" % addr) |
This file contains hidden or 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 random | |
import itertools | |
network = "2001:0db8:85a3:08d3" | |
with open('ipv6-list.txt', 'w') as f: | |
sample = lambda x: random.sample(range(64 ** 4), x) | |
for addr in itertools.product(sample(100), sample(100), sample(10), sample(10)): | |
f.write(network + ":%04x:%04x:%04x:%04x\n" % addr) |
OlderNewer