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 do_insert_html(doc, type, element, html) { | |
var new_element = doc.createElement(type); | |
new_element.innerHTML = html; | |
element.parentNode.insertBefore(new_element, element); | |
}; | |
function engine(name, link,img) { | |
this.link = link; | |
this.img = img; | |
this.name = name; |
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 engine(name, link,img) { | |
this.link = link; | |
this.img = img; | |
this.name = name; | |
} | |
var form = document.forms.namedItem("gs"); | |
var input = form.elements.namedItem("q"); | |
var eq = encodeURI(input.value); |
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
% /sbin/sysctl fs.file-max net.core.somaxconn net.core.rmem_max net.core.wmem_max net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_fin_timeout | |
fs.file-max = 303065 | |
net.core.somaxconn = 128 | |
net.core.rmem_max = 131071 | |
net.core.wmem_max = 131071 | |
net.ipv4.tcp_rmem = 4096 87380 4194304 | |
net.ipv4.tcp_wmem = 4096 16384 4194304 | |
net.ipv4.tcp_fin_timeout = 60 |
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 -ur libevent-1.3b.original/event.c libevent-1.3b/event.c | |
--- libevent-1.3b.original/event.c 2007-02-16 09:49:06.000000000 +0900 | |
+++ libevent-1.3b/event.c 2010-08-15 00:58:14.000000000 +0900 | |
@@ -790,13 +790,13 @@ | |
docount = 0; | |
if (docount) | |
- base->event_count--; | |
+ __sync_sub_and_fetch(&(base->event_count), 1); | |
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 -u libevent-1.4.14b-stable.orig/event.c libevent-1.4.14b-stable/event.c | |
--- libevent-1.4.14b-stable.orig/event.c 2010-06-20 22:06:04.000000000 +0900 | |
+++ libevent-1.4.14b-stable/event.c 2010-08-15 02:34:35.000000000 +0900 | |
@@ -50,6 +50,7 @@ | |
#include <string.h> | |
#include <assert.h> | |
#include <time.h> | |
+#include <pthread.h> | |
#include "event.h" |
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 ruby | |
# idm2keepassx.rb | |
# convert IDM export XML to KeepassX XML | |
# | |
# usage: | |
# cat idm_export.xml | idm2keepassx.rb > keepassx.xml | |
require "rexml/document" | |
require "date" |
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
cat idm_export.xml | nkf -w | sed 's/encoding="shift-jis"/encoding="utf-8"/'| idm2keepassx.rb > keepassx.xml |
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 perl | |
use strict; | |
use warnings; | |
use GD; | |
sub draw_page { | |
my ($width, $height) = @_; | |
return unless $width && $height; |
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/Library/Formula/weechat.rb b/Library/Formula/weechat.rb | |
index 52eee04..8fdbb0d 100644 | |
--- a/Library/Formula/weechat.rb | |
+++ b/Library/Formula/weechat.rb | |
@@ -20,6 +20,10 @@ class Weechat < Formula | |
option 'python', 'Build the python module (requires framework Python)' | |
option 'aspell', 'Build the aspell module that checks your spelling' | |
+ def patches | |
+ DATA |
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 ruby | |
while gets | |
record = Hash[$_.split("\t").map{|p| p.split(":", 2)}] | |
p record | |
end |
OlderNewer