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
$ sudo /sbin/mdadm --detail /dev/md0 | |
/dev/md0: | |
Version : 0.90 | |
Creation Time : Mon Nov 3 05:10:50 2008 | |
Raid Level : raid1 | |
Array Size : 14648320 (13.97 GiB 15.00 GB) | |
Used Dev Size : 14648320 (13.97 GiB 15.00 GB) | |
Raid Devices : 2 | |
Total Devices : 2 | |
Preferred Minor : 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
import sys | |
k = {} | |
for line in open(sys.argv[1]): | |
k[line.split()[0]] = line | |
for line in open(sys.argv[2]): | |
col = line.split()[0] | |
if col in k: |
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
try: | |
inf2 = open(fname, "r") | |
for line in inf2: | |
cols = line.split() | |
#print line | |
if(len(cols)>=3): | |
if(cols[2]=="1"): continue | |
url = cols[0] | |
#print "original url = "+url |
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
function FindProxyForURL(url, host) | |
{ | |
if (isInNet(host, "72.32.231.8", "255.255.255.0")) return "SOCKS 127.0.0.1:7777"; | |
if (isInNet(host, "72.232.101.40", "255.255.255.0")) return "SOCKS 127.0.0.1:7777"; | |
if (isInNet(host, "72.14.235.1", "255.255.255.0")) return "SOCKS 127.0.0.1:7777"; | |
if (isInNet(host, "216.239.32.21", "255.255.255.0")) return "SOCKS 127.0.0.1:7777"; | |
var blockedDomainList = [ | |
"wordpress.com", | |
"iphone.wordpress.org", |
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
a = [ [ 1, 10, "abc" ], [ 2, 3, "xyz" ], [ 1, 4, "aaa" ] ] | |
def compare(x, y): | |
if x[0] == y[0]: | |
return x[1] - y[1] | |
return x[0] - y[0] | |
a.sort(cmp=compare) | |
print a |
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
> > /? | |
Recognised commands: | |
/connect user@domain server port connect to server:port as user@domain | |
/open id open a wave given an inbox id | |
/new create and open a new wave | |
/add participantId add a participant to a wave | |
/remove participantId remove a participant from a wave | |
/quit quit the client | |
Interactive commands: | |
{ scroll up open wave |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<!-- ATSUI compatible preferred fallback --> | |
<dict> | |
<!-- default ordered fallback list - fallback entity has to be postscript name --> | |
<key>default</key> | |
<array> | |
<string>LucidaGrande</string> <!-- MAKE sure this matches the kCTFontSystemFontType in CTFontDescriptorCreateForUIType() & TDescriptorSourceImp::CreateDefaultDescriptor()! --> | |
<string>AppleSymbolsFB</string> |
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
diff --git a/configure.in b/configure.in | |
index 4441a2e..c1626d0 100644 | |
--- a/configure.in | |
+++ b/configure.in | |
@@ -2883,8 +2883,8 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau | |
if test x$enable_audio = xyes; then | |
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO) | |
SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c" | |
- AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR) | |
- SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c" |
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
$ ./testkeys | |
Scancode #0, "" | |
Scancode #1, "" | |
Scancode #2, "" | |
Scancode #3, "" | |
Scancode #4, "A" | |
Scancode #5, "B" | |
Scancode #6, "C" | |
Scancode #7, "D" | |
Scancode #8, "E" |
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
$ ./testkeys | |
Scancode #0, "" | |
Scancode #1, "" | |
Scancode #2, "" | |
Scancode #3, "" | |
Scancode #4, "A" | |
Scancode #5, "B" | |
Scancode #6, "C" | |
Scancode #7, "D" | |
Scancode #8, "E" |