I am the Eschaton; I am not your God.
I am descended from you, and exist in your future.
Thou shalt not violate causality within my historic light cone. Or else.
Singularity Sky by Charles Stross
| # First run: | |
| apt-get install apt-cacher python-vm-builder | |
| vi /etc/default/apt-cacher # ensure autostart is enabled | |
| sudo service apt-cacher start | |
| git clone git://github.com/bitcoin/bitcoin.git | |
| git clone git://github.com/devrandom/gitian-builder.git | |
| mkdir gitian-builder/inputs | |
| wget 'http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz' -O gitian-builder/inputs/miniupnpc-1.5.tar.gz | |
| wget 'http://downloads.sourceforge.net/project/wxwindows/2.9.1/wxWidgets-2.9.1.tar.bz2' -O gitian-builder/inputs/wxWidgets-2.9.1.tar.bz2 |
NOTE: 534 stars, 106 forks. I love you all. Please contribute tips and edits back to this cheat sheet -- email's will.sargent@gmail.com and you can treat gists like git repositories and send git diffs.
| # in /usr/share/xsessions | |
| [Desktop Entry] | |
| Name=Xmonad GNOME | |
| Comment=Tiling window manager | |
| TryExec=/usr/bin/gnome-session | |
| Exec=gnome-session --session=xmonad | |
| Type=XSession |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| FROM base | |
| MAINTAINER Brian L. Troutwine "brian@troutwine.us" | |
| RUN apt-get update | |
| RUN apt-get install -y curl | |
| RUN curl -O https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| RUN dpkg -i erlang-solutions_1.0_all.deb | |
| RUN apt-get update |
| ## The Problem | |
| Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.) | |
| ## The temptingly easy but ultimately wrong solution: | |
| Alter the port the script talks to from 8000 to 80: | |
| }).listen(80); |
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = 'EMAIL@provider.com' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.