Skip to content

Instantly share code, notes, and snippets.

View sharl's full-sized avatar
🐰

Sharl Morlaroll sharl

🐰
View GitHub Profile
@sharl
sharl / gist:1139256
Created August 11, 2011 09:25
cpan2deb speed up test (Web::Scraper)
real 0m19.031s (use locate)
real 0m14.668s (use corelist)
@sharl
sharl / lynx-dev.rb
Created October 20, 2011 09:21
lynx-dev brew formula
require 'formula'
class LynxDev < Formula
url 'http://lynx.isc.org/current/lynx2.8.8dev.9.tar.bz2'
homepage 'http://lynx.isc.org/current/'
md5 '35c4dfbacfd3c7024e2da079cd3e46ea'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
@sharl
sharl / gist:1816742
Created February 13, 2012 12:52
Freetype2 2.4.8 Formula
require 'formula'
class Freetype2 <Formula
url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.bz2'
homepage 'http://freetype.sourceforge.net/index2.html'
md5 'dbf2caca1d3afd410a29217a9809d397'
version '2.4.8'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
@sharl
sharl / emacs.rb
Created February 21, 2012 03:13
Yet Another Emacs 23.4 homebrew Formula
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
@sharl
sharl / emacs.rb
Created February 24, 2012 08:29
Yet Another Emacs 23.4 homebrew Formula (ATOK support? unconfirmed)
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
@sharl
sharl / .diagrc
Created March 29, 2012 02:41
~/.*diagrc をこんなふうにまとめてみたいなあ
[global]
fontpath = /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
[blockdiag]
fontpath = /usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf
[nwdiag]
fontpath = /usr/share/fonts/truetype/takao/TakaoGothic.ttf
@sharl
sharl / gist:2299606
Created April 4, 2012 08:03
haruchan!
#!/usr/bin/perl
use strict;
use POSIX qw(strftime);
use LWP::UserAgent;
use Data::Dumper;
my $save_dir = $ENV{HOME} . '/Dropbox/haruchan/';
my $TARGET = 'http://cgi2.nhk.or.jp/nw9/haruchan/saijiki/index.cgi?entry=%Y%m%d';
my $HARUCHAN = 'http://cgi2.nhk.or.jp/nw9/data/saijiki/images/%Y%m%d_pg7.jpg';
@sharl
sharl / stone.rb
Created April 19, 2012 06:43
Simple Repeater 'stone' homebrew formula
require 'formula'
class Stone < Formula
url 'http://www.gcd.org/sengoku/stone/stone-2.3e.tar.gz'
homepage 'http://www.gcd.org/sengoku/stone/'
md5 '3d1ac4e3fd1118ad1acad06f9209f7f4'
def install
system "make", "CFLAGS=-O2", "macosx-ssl"
bin.install "stone"
$ mkdir hoehoe-1.0
$ tar czf hoehoe_1.0.orig.tar.gz hoehoe-1.0
$ cd hoehoe-1.0
$ dh_make -s -c gpl -f ../hoehoe_1.0.orig.tar.gz
$ debuild -uc -us
(snip)
W: hoehoe source: ancient-standards-version 3.8.3 (current is 3.9.1)
E: じゃないのですが、気になるです。
@sharl
sharl / Net-SSL-ExpireDate_TLS.diff
Created June 4, 2012 05:32
Net::SSL::ExpireDate TLS patch
--- Net-SSL-ExpireDate-1.10/lib/Net/SSL/ExpireDate.pm 2011-03-16 13:01:58.000000000 +0900
+++ Net-SSL-ExpireDate-1.10_01/lib/Net/SSL/ExpireDate.pm 2012-06-04 14:17:21.000000000 +0900
@@ -4,7 +4,7 @@
use warnings;
use Carp;
-our $VERSION = '1.10';
+our $VERSION = '1.10_01';
use base qw(Class::Accessor);