(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
[USVISA] | |
; Account and current appointment info from https://ais.usvisa-info.com | |
USERNAME = YOUR_EMAIL | |
PASSWORD = YOUR_PASSWORD | |
SCHEDULE_ID = YOUR_ID | |
MY_SCHEDULE_DATE = YYYY-MM-DD | |
; Spanish - Colombia | |
COUNTRY_CODE = es-co | |
; Bogotá | |
FACILITY_ID = 26 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
$ cd /usr/src | |
$ wget http://nginx.org/download/nginx-0.8.52.tar.gz | |
$ tar xzvf ./nginx-0.8.52.tar.gz | |
$ rm ./nginx-0.8.52.tar.gz | |
$ gem install s3sync capistrano capistrano-ext passenger --no-ri --no-rdoc | |
$ passenger-install-nginx-module | |
# Automatically download and install Nginx? 2. No: I want to customize my Nginx installation | |
# Where is your Nginx source code located?: /usr/src/nginx-0.8.52 | |
# Where do you want to install Nginx to?: /opt/nginx |
var displayAvatars = true; | |
var displayCloudAppImages = true; | |
var displayGists = true; | |
if (displayAvatars) { | |
Object.extend(Campfire.Message.prototype, { | |
addAvatar: function() { | |
if (this.actsLikeTextMessage()) { | |
var author = this.authorElement(); |
@base = File.join(Rails.root, "public/system/attachments/#{Rails.env}/") | |
# model: Class | |
# method: :symbol | |
# eg transfer(Image, :file) | |
def transfer(model, method) | |
dummy = model.new.send(method) | |
styles = [nil] + dummy.styles.keys | |
model.all.each do |obj| | |
styles.each do |style| |
heroku addons:add pgbackups --remote staging | |
heroku addons:add pgbackups --remote production | |
heroku pgbackups:capture --remote production | |
heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging |
#!/bin/bash | |
#<udf name="hostname" label="System Host Name"> | |
#<udf name="adminuser" default="admin" label="Admin user name"> | |
#<udf name="adminpassword" label="Admin user password"> | |
#<udf name="deployuser" default="deploy" label="Deploy user name"> | |
#<udf name="deploypassword" label="Deploy user password"> | |
#<udf name="mysql_password" label="MySQL Password"> | |
source <ssinclude StackScriptID=1> |
Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.
Get a Linode, and set it up with Ubuntu 10.04 LTS so that you have till April 2013 to get updates. Once the Linode is formatted, boot it and continue on.
Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using demo.napcs.com
here.