Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
{ | |
"coordinates": null, | |
"created_at": "Thu Oct 21 16:02:46 +0000 2010", | |
"favorited": false, | |
"truncated": false, | |
"id_str": "28039652140", | |
"entities": { | |
"urls": [ | |
{ | |
"expanded_url": null, |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
# You will need to make this file executable (chmod u+x) and run it with sudo | |
apt-get update | |
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
mkdir -p /src/erlang | |
cd /src/erlang | |
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz | |
tar -xvzf otp_src_R15B01.tar.gz | |
chmod -R 777 otp_src_R15B01 | |
cd otp_src_R15B01 | |
./configure |
% Authors: Emma Ireland and John McCall | |
-module(bakery). | |
-export([server/0, customer/0, manager/2, pair/2, create_people/2, fib/1]). | |
server() -> | |
receive | |
{serveCustomer, CustomerID} -> | |
io:format("Server: ~w is serving customer: ~w~n", [self(), CustomerID]), | |
ToBake = crypto:rand_uniform(30, 40), | |
self() ! {bake, CustomerID, ToBake}, |
--- | |
# run this with ansible-playbook -i ansible_hosts bootstrap.yml -k -c paramiko | |
- hosts: jails_host | |
gather_facts: false | |
remote_user: root | |
tasks: | |
- name: install pkgng | |
raw: "pkg_info | grep -v 'pkg-' > /dev/null ; if $? pkg_add -r pkg; rehash ; pkg2ng; echo 'WITH_PKGNG=yes' >> /etc/make.conf; echo 'packagesite: http://pkgbeta.freebsd.org/freebsd%3A9%3Ax86%3A64/latest' >> /usr/local/etc/pkg.conf; pkg update ; pkg upgrade -y" | |
- name: install python27 | |
raw: "pkg install -y python27" |
sudo -i | |
cd | |
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
tar xzvf ImageMagick-6.8.9-1.tar.gz | |
cd ImageMagick-6.8.9-1/ | |
./configure --prefix=/opt/imagemagick-6.8 && make | |
checkinstall |