Skip to content

Instantly share code, notes, and snippets.

View arnorhs's full-sized avatar

arnorhs arnorhs

View GitHub Profile
@arnorhs
arnorhs / example1.php
Created February 20, 2011 15:21
Example code for a blog entry about delivering email using PHP on arnorhs.com
<?php
mail(
'ron.burgundy@KVWNTV.com',
'This is the subject',
'This is a message.'
);
?>
@ghalusa
ghalusa / gist:5485982
Last active February 25, 2020 21:48
Install node.js on a raspberry pi
wget http://nodejs.org/dist/v0.10.5/node-v0.10.5-linux-arm-pi.tar.gz
cd /usr/local
sudo tar xzvf ~/node-v0.10.5-linux-arm-pi.tar.gz --strip=1
vi ~/.bash_aliases
export PATH=$PATH:/usr/local/bin/node
bash
node -v
@beagleknight
beagleknight / gist:1283945
Created October 13, 2011 10:44
Nginx+SSL: Remove the password from the key file
mv ssl.key bak.key
openssl rsa -in bak.key -out ssl.key
@tpope
tpope / css.vim
Created January 2, 2011 05:42
Nikolai's fix to nested closing curly brace indenting
" Vim indent file
" Language: CSS
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2010-12-22
if exists("b:did_indent")
finish
endif
let b:did_indent = 1