For mass destruction (j/k I mean powerful data gathering)
-
Install Boto
-
Install GNU Parallel
$ cabal sandbox init | |
$ cabal install idris | |
$ echo 'main : IO () ; main = print "hello"' >hello.idr | |
$ ./.cabal-sandbox/bin/idris --mvn --codegen Java -o hello hello.idr | |
$ cd hello | |
$ mvn -DmainClass=hello package shade:shade | |
$ java -jar target/hello.jar | |
"hello" |
# REMOVE ANYTHING CABAL HAS EVER DROPPED ONTO YOUR SYSTEM | |
rm -rf ~/.{ghc,cabal} | |
# UPDATE CABAL | |
cabal update | |
# UPGRADE CABAL TO 1.18 (BECAUSE THEY ADDED SANDBOXES) | |
cabal install cabal-install | |
export PATH=~/.cabal/bin:$PATH ;# PUT THIS IN YOUR PROFILE |
class Falsey a where | |
false :: a -> Bool | |
instance Falsey Char where | |
false _ = False | |
instance Falsey a => Falsey [a] where | |
false [] = True | |
false (x:[]) = false x | |
false (x:xs) | false x = True |
cat > Dockerfile <<\EOF | |
FROM ubuntu:12.04 | |
RUN apt-get update | |
RUN apt-get install -y ruby1.9.3 build-essential \ | |
libc6-dev libffi-dev libgdbm-dev libncurses5-dev \ | |
libreadline-dev libssl-dev libyaml-dev zlib1g-dev | |
RUN gem install fpm --bindir=/usr/bin --no-rdoc --no-ri | |
RUN apt-get install -y curl | |
RUN curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz|tar oxzC /tmp | |
WORKDIR /tmp/ruby-1.9.3-p484 |
(when window-system | |
(setq exec-path (shell-command ". ~/.bashrc ; echo $PATH"))) |
For mass destruction (j/k I mean powerful data gathering)
Install Boto
Install GNU Parallel
khartes ➤ npm install aws-sdk | |
npm http GET https://registry.npmjs.org/aws-sdk | |
npm http GET https://registry.npmjs.org/aws-sdk | |
npm http GET https://registry.npmjs.org/aws-sdk | |
npm http 304 https://registry.npmjs.org/aws-sdk | |
npm http GET https://registry.npmjs.org/xml2js/0.2.4 | |
npm http GET https://registry.npmjs.org/xmlbuilder/0.4.2 | |
npm http 304 https://registry.npmjs.org/xmlbuilder/0.4.2 | |
npm http GET https://registry.npmjs.org/xml2js/0.2.4 | |
npm http GET https://registry.npmjs.org/xml2js/0.2.4 |
module Main | |
data Cloud : Type where | |
AWS : Ptr -> Cloud | |
data Service : Type where | |
S3 : Ptr -> Service | |
amazonCloud : IO Cloud | |
amazonCloud = mkForeign (FFun "require('aws-sdk');" [] FPtr) >>= return . AWS |
➤ cat Main.hs | |
main :: IO () | |
main = putStrLn "hello" | |
➤ hastec --start=asap --opt-all Main.hs | |
Compiling Main into . | |
Linking Main.js | |
Linking Main | |
Linking GHC.IO.Handle.Text | |
Linking Haste.Handle | |
Linking GHC.Tuple |