Skip to content

Instantly share code, notes, and snippets.

View kaosf's full-sized avatar
🏠
Working from home

ka kaosf

🏠
Working from home
View GitHub Profile
19 bingo
x x x
x x x x
x x x x x
x x x x
x x x
25 bingo
x x x x x
x x x x x
@kaosf
kaosf / favstar.rb
Created April 2, 2014 06:54 — forked from siyo/favstar.rb
0
Earthquake.init do
command %r|^:favstar\s*(.+)*|, :as => :favstar do |m|
browse 'http://favstar.fm/me'
end
end
node -v
#v0.10.22
npm -v
#1.3.14
# ref. https://github.com/mizchi-sandbox/try-vue.js
hub clone mizchi-sandbox/try-vue.js
cd try-vue.js
npm install -g coffee-script browserify mocha-phantomjs
npm install
# How to setup Ruby 2.1.1 on Lubuntu 14.04
sudo aptitude install curl zlib1g-dev libssl-dev libreadline6-dev
git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.zshenv
echo 'eval "$(rbenv init -)"' >> $HOME/.zshenv
exec $SHELL -l
mkdir -p $HOME/.rbenv/plugins
git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
git clone https://github.com/ianheggie/rbenv-binstubs.git $HOME/.rbenv/plugins/rbenv-binstubs
curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1

./configure && make && make install && make uninstall

Step 1.

A simple minimal project that you can only do ./configure and make.

Environment

  • OS: Ubuntu 14.04
  • automake: (GNU automake) 1.14.1
@kaosf
kaosf / Makefile.in
Last active August 29, 2015 14:01
Easy configure and Makefile.in suite; ./configure --prefix=$HOME && make && make install && make uninstall
PREFIX=
all:
install:
mkdir -p $(PREFIX)/bin
cp program $(PREFIX)/bin
uninstall:
rm $(PREFIX)/bin/program
[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package primitive-0.5.2.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.2.1.so (libHSprimitive-0.5.2.1.so: cannot open shared object file: No such file or directory)
Failed to install vector-0.10.9.1
cabal: Error: some packages failed to install:
aeson-0.7.0.3 depends on vector-0.10.9.1 which failed to install.
bifunctors-4.1.1.1 depends on distributive-0.4.3.2 which failed to install.
comonad-4.2 depends on distributive-0.4.3.2 which failed to install.
/some/where/.hsenv/ghc_pkg_db
/some/where/.hsenv/ghc/lib/ghc-7.8.2/package.conf.d
Cabal-1.18.1.3
Cabal-1.20.0.0
HTTP-4000.2.14
ansi-terminal-0.6.1.1
ansi-wl-pprint-0.6.7.1
array-0.5.0.0
attoparsec-0.11.3.0
base-4.7.0.0
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: haskell-platform-2013.2.0.0 (user goal)
next goal: unix (dependency of haskell-platform-2013.2.0.0)
rejecting: unix-2.7.0.1/installed-23f..., 2.7.0.1, 2.7.0.0 (conflict:
haskell-platform => unix==2.6.0.1)
trying: unix-2.6.0.1
next goal: base (dependency of unix-2.6.0.1)
rejecting: base-4.7.0.0/installed-018... (conflict: unix => base>=4.2 && <4.7)
rejecting: base-4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0,
sudo apt-get install haskell-platform
mkdir -p some/where/as/you/like
cd some/where/as/you/like
cabal install cabal-install
export PATH=$HOME/.cabal/bin:$PATH
cabal sandbox init
git clone [email protected]:pasberth/paradocs.git
cabal install ./paradocs
./.cabal-sandbox/bin/paradocs ./paradocs/doc/cheatsheet.pdoc > cheatsheet.html