Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz
tar -xvzf ruby-1.9.3-p362.tar.gz
cd ruby-1.9.3-p362/
./configure --prefix=/usr/local
make
make install
@quellhorst
quellhorst / arrowgasm.less
Created May 9, 2012 22:18 — forked from Kalyse/arrowgasm.less
LessCSS Mixing for Providing Arrows
.arrowgasm(@position: top, @size : "4px", @background-color : #88b7d5, @border-width: "2px", @border-color : #c2e1f5, @arrowClass : "arrow_box"){
(~".@{arrowClass}") {
position: relative;
background: @background-color;
border: @size solid @border-color;
}
(~".@{arrowClass}:after"), (~".@{arrowClass}:before") {
bottom: 100%;
border: solid transparent;
@quellhorst
quellhorst / hack.sh
Created April 1, 2012 01:18 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@quellhorst
quellhorst / the_install.sh
Created November 19, 2011 06:00 — forked from therubymug/the_install.sh
Ruby development environment for OS X (Lion)
#!/usr/bin/env sh
# Title: Ruby development environment for OS X (Lion)
# Author: Rogelio J. Samour
# Warning:
# While it is unlikely any code below might damage your system,
# it’s always a good idea to back up everything that matters to you
# before running this script! Just in case. I am not responsible for
# anything that may result from running this script. Proceed at
# your own risk.
@quellhorst
quellhorst / gist:1258595
Created October 3, 2011 07:09
Arduino Datacenter Code. Monitor Temprature, Reset and Power Cycle Servers
/*
Temperature and Reset Web Server
A simple web server that shows the current temperatures using an Arduino
Wiznet Ethernet shield and TMP36 Sensor.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* TMP36 attached to pin A0
* Multiple 74hc595s attached to pins 9, 8, 6
@quellhorst
quellhorst / gist:1258424
Created October 3, 2011 04:15
use 2 shift registers for 16 outputs
int SER_Pin = 8; //pin 14 on the 75HC595
int RCLK_Pin = 9; //pin 12 on the 75HC595
int SRCLK_Pin = 10; //pin 10 on the 75HC595
//How many of the shift registers - change this
#define number_of_74hc595s 2
//do not touch
#define numOfRegisterPins number_of_74hc595s * 8
@quellhorst
quellhorst / temp_web_server
Created October 3, 2011 03:36
Arduino Temperature Web Server
/*
Temperature Web Server
A simple web server that shows the current temperatures using an Arduino
Wiznet Ethernet shield and TMP36 Sensor.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* TMP36 attached to pin A0
*/
@quellhorst
quellhorst / temp
Created October 3, 2011 03:18
arduino get current temp in f
// Temperature :. (TMP36 Temperature Sensor)
// A simple program to output the current temperature to the IDE's debug window
// TMP36 Pin Variables
int temperaturePin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to
//the resolution is 10 mV / degree centigrade
//(500 mV offset) to make negative temperatures an option
// setup() - this function runs once when you turn your Arduino on
// We initialize the serial connection with the computer

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For less, I'm using the ruby version because this is what they suggest on the website. The javascript version may be different.

Variables

error:
ArgumentError (invalid byte sequence in US-ASCII):
<internal:prelude>:8:in `synchronize'
Passenger conf:
PassengerRuby /var/www/ruby-with-env
#!/bin/bash
export RUBYOPT="-E utf-8"