Skip to content

Instantly share code, notes, and snippets.

View rxbynerd's full-sized avatar

@rubynerd rxbynerd

View GitHub Profile
@rxbynerd
rxbynerd / Gemfile
Last active August 29, 2015 14:13
Gemfile that powers https://firebellapp.com
source 'https://rubygems.org'
gem 'rails', '4.2.0.rc3' # rails 4.2 rc3
gem 'pg' # postgresql database adapter
gem 'sass-rails', '5.0.0.beta1' # prettier css
gem 'uglifier', '>= 1.3.0' # CSS minifier
gem 'coffee-rails', '~> 4.0.0' # pretty JS
gem 'jquery-rails' # much simpler DOM querying
gem 'turbolinks' # faster page loading
gem 'jbuilder', '~> 1.2' # JSON API powerhouse
darwin
/usr/local/Library
total 0
drwxr-xr-x 3 luke admin 102 11 Sep 08:41 activemq
drwxr-xr-x 3 luke admin 102 3 Jan 21:02 android-sdk
drwxr-xr-x 3 luke admin 102 6 Nov 19:22 ant
drwxr-xr-x 3 luke admin 102 12 Sep 22:14 apollo
drwxr-xr-x 3 luke admin 102 2 Aug 12:43 autoconf
drwxr-xr-x 3 luke admin 102 25 Sep 19:00 automake
drwxr-xr-x 7 luke admin 238 15 Dec 09:17 cassandra
#!/usr/bin/env ruby
# so we need to take branch.txt and existing.txt, parse the messages into a hash
master = {}
mastertext = File.read "/Users/luke/fuckup/master.txt"
mastertext.split("\n").each do |line|
sha, *message = line.split(" ")
message = Array(message).join(" ")
require "nokogiri"
require "net/http"
require "twilio-ruby"
twilio = Twilio::REST::Client.new ENV['TWILIO_SID'], ENV['TWILIO_AUTH']
text_luke = -> (message) do
twilio.account.sms.messages.create(
from: ENV['TWILIO_PHONE'],
to: ENV['LUKE'],
body: message
#!/usr/bin/env sh
cd /home/luke/supersonic
NOW=`ruby -e"puts Time.now.to_i"`
/usr/bin/tmux send-keys -t supersonic:1 "save-all" C-m
/usr/bin/tmux send-keys -t supersonic:1 "save-off" C-m
cp -R /home/luke/supersonic/supersonic /home/luke/supersonic/supersonic_backup
apt-get 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
@rxbynerd
rxbynerd / gist:4179289
Created November 30, 2012 22:53
The remains of rentify engineering
body {
-webkit-font-smoothing: antialiased;
font-size: 15px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 24px;
margin: 0;
padding: 0;
}
*:active, *:focus { outline-width: 0px; }

Nero

Logging client for Matrix

Welcome to Second Reality. In Second Reality, You make the decisions.

@rxbynerd
rxbynerd / Makefile
Created April 20, 2012 14:25
Basic demonstration of a dynamic web page
thin:
thin start --port 5075 --address 127.0.0.1
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("Hello, pdoak!\n");
return 0;
}