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/perl | |
use strict; | |
use warnings; | |
use Readonly; | |
Readonly my $FLV_TAG_TYPE_AUDIO => 0x08; | |
Readonly my $AUDIO_MASK_STEREO => 0x01; | |
Readonly my $AUDIO_MASK_16bit => 0x02; | |
Readonly my $AUDIO_MASK_RATE => 0x0c; |
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/lib/rpm/perl.req.org 2008-01-31 19:21:31.000000000 +0900 | |
+++ /usr/lib/rpm/perl.req 2008-01-31 19:21:41.000000000 +0900 | |
@@ -221,8 +221,8 @@ | |
($module =~ m/\.ph$/) && next; | |
- $require{$module}=$version; | |
- $line{$module}=$_; | |
+ #$require{$module}=$version; | |
+ #$line{$module}=$_; |
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
--- cpanflute2.org 2008-02-26 12:20:28.000000000 +0900 | |
+++ cpanflute2 2008-02-26 12:21:15.000000000 +0900 | |
@@ -159,10 +159,12 @@ | |
my $yaml = Load($contents); | |
while (my ($mod, $ver) = each %{$yaml->{build_requires}}) { | |
- push @build_requires, [ "perl($mod)", $ver ]; | |
+ $mod = "perl($mod)" if $mod ne 'perl'; | |
+ push @build_requires, [ "$mod", $ver ]; | |
} |
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
var http = require('http'); | |
var url = require('url'); | |
var proxy = http.createServer(function(req, res) { | |
var request = url.parse(req.url); | |
options = { | |
host: request.hostname, | |
port: request.port || 80, | |
path: request.path, | |
method: req.method, |
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
var formidable = require('formidable'); | |
var http = require('http'); | |
var sys = require('sys'); | |
http.createServer(function(req, res) { | |
if (req.url == '/upload' && req.method.toLowerCase() == 'post') { | |
var form = new formidable.IncomingForm(); | |
form.parse(req, function(error, fields, files) { | |
res.writeHead(200, {'content-type': 'text/plain'}); | |
res.write('received upload:\n\n'); |
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/Rakefile b/Rakefile | |
index 7d7f6d8..41868ab 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -4,10 +4,10 @@ require "stringex" | |
## -- Rsync Deploy config -- ## | |
# Be sure your public key is listed in your server's ~/.ssh/authorized_keys file | |
-ssh_user = "[email protected]" | |
-ssh_port = "22" |
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
%{ | |
use strict; | |
use warnings; | |
%} | |
%% | |
JSON : value | |
; | |
value : atom | |
| number | |
| 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
#!/bin/sh | |
mkdir -p /var/root | |
for i in bin dev etc lib lib64 tmp usr var | |
do | |
mkdir /var/root/$i | |
mount -o bind /$i /var/root/$i | |
done |
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
require 'grit' | |
class Committer | |
def initialize | |
@repo = Grit::Repo.new("/home/miya/git/test") | |
end | |
def actor | |
@actor ||= | |
begin |
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
// ==UserScript== | |
// @name LDR open in background tab | |
// @namespace http://ss-o.net/ | |
// @include http://reader.livedoor.com/reader/ | |
// @include http://reader.livedoor.com/public/* | |
// @include http://fastladder.com/reader/ | |
// @include http://fastladder.com/public/* | |
// @include http://fastladder.tokyo.pb/* | |
// @version 1.0.3 | |
// ==/UserScript== |