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/urllib.py b/urllib.py | |
index 802d9b7..d13ddb7 100644 | |
--- a/urllib.py | |
+++ b/urllib.py | |
@@ -35,7 +35,7 @@ __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", | |
"localhost", "thishost", "ftperrors", "basejoin", "unwrap", | |
"splittype", "splithost", "splituser", "splitpasswd", "splitport", | |
"splitnport", "splitquery", "splitattr", "splitvalue", | |
- "splitgophertype", "getproxies"] | |
+ "splitgophertype", "getproxies", "getnoproxies"] |
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
--- rubygems/remote_fetcher.rb.orig 2009-07-28 19:01:30.000000000 +0900 | |
+++ rubygems/remote_fetcher.rb 2009-07-28 19:05:47.000000000 +0900 | |
@@ -4,6 +4,7 @@ | |
require 'uri' | |
require 'rubygems' | |
+require 'http_configuration' | |
## | |
# RemoteFetcher handles the details of fetching gems and gem information from |
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
// | |
// C++0x から <algorithm> に追加される関数を C++03 で使えるよう実装したヘッダ | |
// やっつけテストも記述しました。 | |
// | |
#ifndef ETUDE_INCLUDED_ALGORITHM_HPP_ | |
#define ETUDE_INCLUDED_ALGORITHM_HPP_ | |
#include <algorithm> | |
#include <iterator> | |
#include <utility> |
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
use strict; | |
use warnings; | |
use Filesys::Notify::Simple; | |
use Spork; | |
use lib 'lib'; | |
while ( 1 ) { | |
my $watcher = Filesys::Notify::Simple->new(['.']); | |
$watcher->wait(sub {}); | |
Spork->new->load_hub->command->process('-make', @ARGV); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.github.mxcl.homebrew.daemontools</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/svscanboot</string> | |
</array> |
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
sudo aptitude -y install nginx | |
cd /etc/nginx/sites-available | |
sudo rm default | |
sudo cat > jenkins | |
upstream app_server { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; |
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
use strict; | |
use LWP::UserAgent; | |
my $app = do { | |
use Mojolicious::Lite; | |
get '/' => sub { shift->render(text => "Hello World") }; | |
get '/search' => sub { | |
my $self = shift; | |
my $foo = $self->param('q'); | |
$self->render(text => "You searched $foo"); |
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
repo for a more modern version of qt (4.7) | |
http://atrpms.net/documentation/install/ | |
http://packages.atrpms.net/dist/el5/qt4/ | |
cat /etc/yum.repos.d/atrpms.repo | |
[atrpms] | |
name=ATrpms manual | |
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/ | |
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms |
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
--- rubygems-1.8.5/lib/rubygems/remote_fetcher.rb.orig 2011-07-20 00:28:13.000000000 +0900 | |
+++ rubygems-1.8.5/lib/rubygems/remote_fetcher.rb 2011-07-20 01:09:59.000000000 +0900 | |
@@ -69,6 +69,7 @@ | |
when URI::HTTP then proxy | |
else URI.parse(proxy) | |
end | |
+ @no_proxy = (ENV['NO_PROXY'] || ENV['no_proxy'] || 'localhost, 127.0.0.1').split(/\s*,\s*/) | |
@user_agent = user_agent | |
end | |
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
def table_at(selector) | |
Nokogiri::HTML(page.body).css(selector).map do |table| | |
table.css('tr').map do |tr| | |
tr.css('td').map { |td| td.text } | |
end | |
end[0].reject(&:empty?) | |
end |
OlderNewer