Skip to content

Instantly share code, notes, and snippets.

View jpsilvashy's full-sized avatar
🎯
Focusing

JP Silvashy jpsilvashy

🎯
Focusing
View GitHub Profile
@jpsilvashy
jpsilvashy / base.css
Created July 24, 2009 22:26
The default stylesheet used on our projects, a great place to start.
/* New Gold Leaf */
/* http://meyerweb.com/eric/tools/css/reset/
----------------------------------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent;}
body {line-height:1;}
ol, ul {list-style-type:none;}
# really make sure searchd has been killed before rebuilding search index
# replace `searchd` with the process name you want to kill
ps ux | awk '/searchd/ && !/awk/ Kill {print $2}' | xargs kill -9
.DS_Store
log/*.log
log/*
tmp/**/*
db/*.sqlite3%
log/searchd*
config/sphinx.yml
config/development/sphinx.conf
db/sphinx/*
#!/bin/bash
# You can run this on your server by doing this:
# bash -c "`wget -O - frozenplague.net/boris`"
# If you don't have wget, use curl.
echo "Need your password to update time & install things:"
sudo ntpdate pool.ntp.org
sudo apt-get -y update
sudo apt-get -y install build-essential mysql-server libmysqlclient15-dev apache2 libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev zlib1g zlib1g-dev
#!/bin/sh
cd ~/Downloads
echo ":::::::::: WGET"
# install wget, which is cleverer than curl
curl -O http://ftp.gnu.org/gnu/wget/wget-1.11.tar.gz
tar zxvf wget-1.11.tar.gz
cd wget-1.11
./configure --prefix=/usr/local
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>css_correct_width</title>
<style type="text/css" media="screen">
/* because all browsers have a differnt opinion on alot of things like what the
* default size of an h1 is, what the default font-famliy is, and many things else,
/Users/jpsilvashy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError)
class Panel
# NOTES:
# When app initilizes, it should check all the existing LED's in the DB
# It should attempt to update them upon successful connection via serial
# Important! App should make sure it doesn't terminate the connection to the device
# App may need to send out a heartbeat every 30 seconds (guess) to keep connection alive
# After update of LED run something like Panel.new.send(22, 4, 'ff0000')
# TODO:
[[
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00"
], [
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00",
# Simple ubuntu setup instructions
# First create ssh keys
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
sudo apt-get install git-core
# Install REE from source, install passenger and nginx