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
--- scan.c.orig 2011-04-28 08:28:05.000000000 +0100 | |
+++ scan.c 2011-04-28 09:01:10.000000000 +0100 | |
@@ -38,6 +38,14 @@ | |
#define likely(x) __builtin_expect(x, 1) | |
#define unlikely(x) __builtin_expect(x, 0) | |
+#ifndef __linux__ | |
+#define TEMP_FAILURE_RETRY(expr) \ | |
+ ({ long int _res; \ | |
+ do _res = (long int) (expr); \ |
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/sh | |
CFS="key: zomo: mobilesync:-nobrowse documents:-nobrowse" | |
for _C in ${CFS} ; do | |
C=${_C/:*/} # fs | |
O=${_C/*:/} # options | |
DMG=${HOME}/cfs/${C}.dmg | |
if [ ! -f ${DMG} ] ; then |
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 ruby | |
# a rework of https://gist.github.com/612030 which only considered Octobers | |
require 'date' | |
require 'pp' | |
start = 1852 # when Gregorian calendar started | |
finish = Date.today.year | |
special = [] |
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
--- saslauthd/auth_rimap.c.orig 2011-06-11 15:58:59.000000000 +0100 | |
+++ saslauthd/auth_rimap.c 2011-06-11 16:01:37.000000000 +0100 | |
@@ -163,6 +163,7 @@ | |
p1 = s; | |
while ((p1 = strchr(p1, '"')) != NULL) { | |
num_quotes++; | |
+ p1++; | |
} | |
if (!num_quotes) { |
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
* jon has the router password .... muhahahahahah! | |
<jon> all of XXXXXXXX is now in my hands ....! | |
<jon> and we have no management until Tuesday .... | |
-!- jon [[email protected]] has quit [Ping timeout] | |
... | |
21:48 < gary> now to try my firewall vm, probably disappear for a bit | |
21:49 < v732> good luck out there gary | |
21:49 < chris> -!- gary has quit [ping timeout] # traditional at this point |
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 ruby | |
sizes = [] | |
IO.popen("ps waux") do |pipe| | |
pipe.each do |line| | |
next unless line.match(/qemu/) | |
vm = line.match(%r{qemu/(\w+)\.monitor})[1] | |
bits = line.split(/\s+/) | |
vsz, rss = bits[4,5] | |
sizes.push({ :vm => vm, :vsz => vsz, :rss => rss }) |
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
$ dig a mail.me.com | |
; <<>> DiG 9.7.3 <<>> a mail.me.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26639 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;mail.me.com. IN A |
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 -ur irssi-0.8.15.orig/src/core/network-openssl.c irssi-0.8.15/src/core/network-openssl.c | |
--- irssi-0.8.15.orig/src/core/network-openssl.c 2010-04-03 17:19:38.000000000 +0100 | |
+++ irssi-0.8.15/src/core/network-openssl.c 2011-10-24 14:51:40.000000000 +0100 | |
@@ -401,7 +401,7 @@ | |
if(!(fd = g_io_channel_unix_get_fd(handle))) | |
return NULL; | |
- ctx = SSL_CTX_new(SSLv23_client_method()); | |
+ ctx = SSL_CTX_new(SSLv3_client_method()); | |
if (ctx == NULL) { |
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
<?php | |
if ( !defined('ABSPATH') ) { | |
require_once('./wp-load.php'); | |
} | |
print "<pre>\n"; | |
$wp_rewrite->set_category_base(''); | |
$wp_rewrite->set_tag_base('filter'); | |
$category_base = get_option('category_base'); |
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
<?php | |
/* example use: http://example.com/wpmu-loop.php?script=wp-fixup-tags.php */ | |
/* see also: https://gist.github.com/1645313 */ | |
define('WP_INSTALLING', true); | |
require_once('wp-load.php'); | |
/* get_blogs() only knows about sub-domain blogs, not sub-directory blogs | |
it's probably just a case of appending the path column to the result */ |