Skip to content

Instantly share code, notes, and snippets.

View nowlinuxing's full-sized avatar

Loose nowlinuxing

View GitHub Profile
@nowlinuxing
nowlinuxing / gist:4397640
Last active December 10, 2015 06:58
https://gist.github.com/4397599 は誤って作成してしまったもの
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
require 'uri'
class HttpClient
def initialize(base_url)
@nowlinuxing
nowlinuxing / gist:4230314
Created December 7, 2012 02:43
build deb package from tarball
> tar xfz source-0.0.1.tar.gz
> cd source-0.0.1
> dh_make
> sudo dpkg-buildpackage -rfakeroot
> dpkg-buildpackage
> sudo dpkg -i ../source-0.0.1-1_amd64.deb
@nowlinuxing
nowlinuxing / gist:2636145
Created May 8, 2012 15:14
Converting RCS to Git
# http://xrtc.net/f/projects/rcs-to-git.shtml
$ mkdir repos.cvs repos.source
$ cvs -d /path/to/repos.cvs/ init
$ (cd repos && find . -type d -exec mkdir /path/to/repos.cvs/{} \;)
$ (cd repos.source && CVSROOT=/path/to/repos.cvs/ cvs import -m "Initial CVS import" repos.source TICALC start)
$ (cd repos && find . -type f -exec cp {} /path/to/repos.cvs/{} \;)
$ CVSROOT=/path/to/repos.cvs git cvsimport -C . repos.source