Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Go to console.aws.amazon.com
# - launch a spot instance of one of alestic's images (see alestic.com)
# - create a 5G EBS volume
# - attach the 5G EBS volume to your instance
# - log into the instance with ssh
set -e -x
@richcole
richcole / .emacs
Created February 27, 2011 22:45
Emacs configuration
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(setq inhibit-splash-screen t)
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(font-lock-mode 0)
(global-set-key "\C-cm" 'compile)
@richcole
richcole / .Xresources
Created February 27, 2011 22:47
.xresources
emacs*foreground: wheat
emacs*background: darkslategray
emacs*cursorColor: white
emacs*pointerColor: white
@richcole
richcole / Matrix multiplication in RJL
Created March 5, 2011 04:32
Example of matrix multiplication in RJL
{ sys |
Matrix: (|
Array: sys Array;
// constructor
num_rows:num_columns:: { num_rows num_columns |
self @num_rows: num_rows;
self @num_columns: num_columns;
@richcole
richcole / gist:859433
Created March 7, 2011 22:50
Apt get install
apt-get install -y sudo emacs xserver-xorg ruby \
openbox rxvt-univode x11-server-utils xinit less \
gconf2 ssh git-core
export EDITOR=emacs
visudo
@richcole
richcole / gist:859466
Created March 7, 2011 23:08
xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
@richcole
richcole / gist:3797683
Created September 28, 2012 02:52
How fast is my desktop - 1.2GB/s
/*
* Note this just tests a single core:
*
* My work desktop: 1.2GB/s
* My home desktop: 1.4GB/s
* My raspberry pi: 200 MB/s
*/
#include <stdlib.h>
#include <stdio.h>
@richcole
richcole / gist:3867017
Created October 10, 2012 17:15
Interesting Raspberry Pi Stuff
- Go programing language and OpenVG
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=69&t=16421
https://github.com/ajstarks/openvg
(menu-bar-mode 0)
(tool-bar-mode 0)
(set-background-color "darkslategray")
(set-foreground-color "wheat")
;;
;; Default Settings
;;
(setq make-backup-files nil)