Skip to content

Instantly share code, notes, and snippets.

View tobynet's full-sized avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
// ==UserScript==
// @name SBM Comments Viewer
// @namespace http://white.s151.xrea.com/wiki/index.php?script/SBMCommentsViewer
// @description Show social bookmark's comments at the bottom of your browser.
// @include *
// ==/UserScript==
/*
Last Modified: 2009.03.22 by TOBY
// ==UserScript==
// @name pixiv API
// @namespace http://efcl.info/
// @include http://www.pixiv.net/*
// ==/UserScript==
// API 資料 http://pastie.org/735195
var pxvAPI = "http://iphone.pxv.jp/iphone/"
// 検索結果のオブジェクト
var result = [];
var user = {
require 'nokogiri'
require 'open-uri'
# usage: ruby ewords.rb > keywords.txt
root_url = 'http://e-words.jp/'
indices = Nokogiri(open(root_url)).search('.index a')
result = []
indices.each_with_index { |index, i|
warn "#{i+1} / #{indices.length} #{index.text}"
// ==UserScript==
// @name Hatena Graph Previewer
// @namespace http://twitter.com/m_satyr
// @include http://graph.hatena.ne.jp/*/edit*
// ==/UserScript==
//
// Released under the MIT license
// modified by http://twitter.com/toby_net
// see also
// http://help-me-hackers.com/tasks/133
@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
--- 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/