Skip to content

Instantly share code, notes, and snippets.

View wboayue's full-sized avatar

Wil Boayue wboayue

View GitHub Profile
@wboayue
wboayue / Example.hs
Created May 31, 2017 12:11
Http request
module Example () where
import Network.HTTP
-- Non HTTPS
-- 1. Perform a basic HTTP get request and return the body
get :: String -> IO String
get url = simpleHTTP (getRequest url) >>= getResponseBody

Keybase proof

I hereby claim:

  • I am wboayue on github.
  • I am wboayue (https://keybase.io/wboayue) on keybase.
  • I have a public key whose fingerprint is 6540 1880 600A 460A CF1C AC1C 3BC3 8D65 1E01 60FB

To claim this, I am signing this object:

@wboayue
wboayue / chef_solo_bootstrap.sh
Created April 27, 2012 18:27 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/usr/local
make
make install