Skip to content

Instantly share code, notes, and snippets.

View tokuhirom's full-sized avatar
💖
Focusing

Tokuhiro Matsuno tokuhirom

💖
Focusing
View GitHub Profile
# wget --header='Accept-Encoding: gzip' -O root.bin.gz http://bellard.org/jslinux/root.bin
# gunzip root.bin.gz
# mkdir mnt
# mkdir files
# sudo mount -t ext2 -o loop root.bin mnt
# dd if=/dev/zero of=files/root.bin bs=1k count=4096
# sudo mke2fs -m 0 -i 2000 files/root.bin
# mkdir mnt2
# sudo mount -t ext2 -o loop files/root.bin mnt2
# sudo cp -dpR mnt/* mnt2/
@tokuhirom
tokuhirom / number-phone-jp.diff
Created June 8, 2011 07:19 — forked from kanonji/Bar.pm
perl ./once.pl is ok. perl ./twice.pl is not ok. Use 0.20110401 of Number::Phone::JP.
diff --git a/lib/Number/Phone/JP/Table.pm b/lib/Number/Phone/JP/Table.pm
index ddca7c4..9e26380 100644
--- a/lib/Number/Phone/JP/Table.pm
+++ b/lib/Number/Phone/JP/Table.pm
@@ -5,7 +5,6 @@ use warnings;
use base qw(Exporter);
our $VERSION = '0.20110401';
-our @EXPORT = qw(%TEL_TABLE);
#!/usr/bin/env sudo perl
use utf8;
use strict;
use warnings;
use lib lib => glob 'modules/*/lib';
use Net::DNS::Nameserver;
use Path::Class;
use Perl6::Say;
@tokuhirom
tokuhirom / Try.pm
Last active December 13, 2015 22:29 — forked from mattn/try-lite.pl
perl -I. mattn.pl
package Try;
use Carp;
$Carp::Internal{+__PACKAGE__}++;
*main::try = \&try;
sub try (&;%) { }
1;
@tokuhirom
tokuhirom / update_curl.sh
Created January 31, 2017 06:26 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2