Skip to content

Instantly share code, notes, and snippets.

View castor4bit's full-sized avatar

Toru Okugawa (Tanaka) castor4bit

View GitHub Profile
@castor4bit
castor4bit / affiliatebutton.user.js
Last active October 1, 2015 03:57
Axxxon Affiliate Button
// ==UserScript==
// @name Amazon Affiliate Button
// @namespace http://example.com/
// @description -
// @include http://www.amazon.co.jp/*
// ==/UserScript==
(function() {
var affiliateId = 'HogeAffiliateId-22';
var pattern = /\/(gp\/product|ASIN|dp)\/([0-9A-Z]+)/;
var item = '';
@castor4bit
castor4bit / httpd.rb
Created January 23, 2012 02:01
httpd (2.4.0 with mod_lua) homebrew formula
require 'formula'
class Httpd < Formula
url 'http://httpd.apache.org/dev/dist/httpd-2.4.0.tar.gz'
homepage 'http://httpd.apache.org/'
sha1 'c30d7035a2888aa28424f8ed1497843cbb1c2270'
skip_clean :all
def install
@castor4bit
castor4bit / newt.rb
Created October 8, 2011 13:53 — forked from d235j/newt.rb
Patched newt.rb
require 'formula'
class Newt < Formula
url 'https://fedorahosted.org/releases/n/e/newt/newt-0.52.13.tar.gz'
homepage 'https://fedorahosted.org/newt/'
md5 '77de05b3f58540152a4ae32a1a64e5d0'
depends_on 'gettext'
depends_on 'slang'
depends_on 'popt'