Skip to content

Instantly share code, notes, and snippets.

View tobynet's full-sized avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
@tobynet
tobynet / twitter_searchja_result_.user.js
Created September 19, 2010 07:18 — forked from cherenkov/twitter_searchja_result_.user.js
witter search(ja) result on Google right side space
// ==UserScript==
// @name Twitter search(ja) result on Google
// @namespace http://efcl.info/
// @include http://www.google.*/search?*
// ==/UserScript==
//
// original Twitter Search Results on Google for Greasemonkey [ http://userscripts.org/scripts/show/43451 ]
//
// Released under the MIT license
// modified by
@tobynet
tobynet / digitally_imported_radio_playlist_getter.rb
Created September 25, 2010 16:15
Digitally Imported radio playlist getter
#!ruby -Ku
# Digitally Imported radio playlist getter
require 'rubygems'
#require 'faster_require'
require 'mechanize'
require 'json'
require 'open-uri'
require 'pp'
@tobynet
tobynet / oqunogbnize.rb
Created October 16, 2010 10:38
gameboynize test script
#!ruby -Ku
# gameboynize test script
#
# Original author: http://twitter.com/toby_net
#
# License: WTFPL - Do What The Fuck You Want To Public License Version 2
# official: http://sam.zoy.org/wtfpl/
# eng: http://en.wikipedia.org/wiki/WTFPL
# jpn: http://ja.wikipedia.org/wiki/WTFPL
@tobynet
tobynet / supermario_progress_bar_formatter.rb
Created January 25, 2011 18:59
SuperMarioSoundFormatter,it's one of supporting tools for EDD(Enjoyment Driven Development)
# -*- encoding: utf-8 -*-
# $ cat spec/spec.opts
# --require ~/lib/supermario_progress_bar_formatter.rb
# --format Spec::Runner::Formatter::SuperMarioProgressBarFormatter
require 'spec/runner/formatter/base_text_formatter'
require 'spec/runner/formatter/no_op_method_missing'
module Spec::Runner::Formatter
--- eval.c.orig 2009-12-21 17:11:42.000000000 +0900
+++ eval.c 2009-12-24 19:18:21.671875000 +0900
@@ -210,3 +210,3 @@
# ifdef __CYGWIN__
-int _setjmp(), _longjmp();
+int _setjmp(); void _longjmp();
# endif
--- gc.c.orig 2009-12-24 17:28:08.000000000 +0900
+++ gc.c 2009-12-24 19:18:17.875000000 +0900
@@ -42,3 +42,3 @@
@tobynet
tobynet / chef-server-virtualbox-bootstrap.sh
Created May 13, 2011 02:27 — forked from bmarini/chef-server-virtualbox-bootstrap.sh
Quick start to setup a chef server on virtualbox
#!/bin/bash
#
# Install virtualbox:
# - http://www.virtualbox.org/wiki/Downloads
# - Download iso: http://releases.ubuntu.com/10.10/
# - Create a new virtualbox using the iso as the install media
# - Change network adapter to bridged
# - Use ifconfig to get ip address
#
# Once you have a clean install of ubuntu...
@tobynet
tobynet / pixelize_proxy.rb
Created June 12, 2011 14:27 — forked from hitode909/negaproxy.rb
モザイク化プロキシ
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
require 'RMagick'
pixelize_rate = 8.0
handler = Proc.new() { |req,res|
if (res['content-type'] =~ /png/)
@tobynet
tobynet / oqunoize_proxy.rb
Created June 12, 2011 15:34 — forked from hitode909/negaproxy.rb
oquno化プロキシ
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
require 'RMagick'
# curl -o files/oquno-c.png http://si1.twimg.com/profile_images/96741059/oquno-c.png
handler = Proc.new() { |req,res|
if res['content-type'] =~ /png/
@tobynet
tobynet / hanamasize_proxy.rb
Created June 12, 2011 16:01 — forked from tobynet/pixelize_proxy.rb
hanamasize proxy
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
require 'RMagick'
# curl -o files/hanamasa.png http://w.ikenie.com/hanamasa/hanamasa.png
handler = Proc.new() { |req,res|
if res['content-type'] =~ /png/
@tobynet
tobynet / screen-detection.zsh
Created August 7, 2011 09:52
screen detection test
#!/bin/zsh
echo 'screen から起動されているかチェック'
echo 'screenから起動したshellから起動してください'
echo '結論としては、$STYをチェックするのが良さそうです'
echo
function check_screen() {
echo '## TERMをチェック'
# .screenrcで
# term xterm-256color