Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@btbytes
btbytes / 0_commands.txt
Created September 12, 2010 16:37 — forked from alexeyr/0_commands.txt
building Erlang OTP for the ARM.
./otp_build configure --host=arm-none-linux-gnueabi --build=i686-pc-linux-gnu --prefix=/opt/erlang erl_xcomp_sysroot=/opt/arm-2009q3 --disable-hipe --disable-threads --disable-smp --disable-megaco-flex-scanner-lineno --disable-megaco-reentrant-flex-scanner --disable-dynamic-ssl-lib --without-termcap --without-javac --without-ssl
./otp_build boot
@btbytes
btbytes / config.lua
Created September 14, 2010 20:04 — forked from jsimmons/config.lua
local chat_demo = Handler {
send_spec = 'tcp://127.0.0.1:9999';
send_ident = '8b7c7833-0932-4d9a-92c3-3b8c06d9b855';
recv_spec = 'tcp://127.0.0.1:9998';
recv_ident = '';
}
local chat_demo_dir = Dir {
base = 'static/chatdemo/';
index_file = 'index.html';
local mongrel2 = require 'mongrel2'
local sender_id = '558c92aa-1644-4e24-a524-39baad0f8e78'
local sub_addr = 'tcp://127.0.0.1:8989'
local pub_addr = 'tcp://127.0.0.1:8988'
local io_threads = 1
local response_string = [[
<pre>
SENDER: %s
grep "text/html$" */*/* | awk '{print $1};' | awk 'BEGIN { FS= ":" } ; {print $1;}' | xargs sed -i 's/text\/html/html/'
find ~/htdocs | grep html$ | xargs grep -l "<pre syntax=" | xargs -I {} -t ./hyperpyg.py -f {} -o {} -q
~ brew install postgresql
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
######################################################################## 100.0%
==> ./configure --disable-debug --without-perl --without-php --without-pgsql --prefix=/usr/local/Cellar/ossp-uuid/1.6.2
==> make
==> make install
/usr/local/Cellar/ossp-uuid/1.6.2: 11 files, 364K, built in 46 seconds
==> Downloading http://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.0.0/postgresql-9.0.0.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.0.0 --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-python --with-perl
'''
feedp1.py
Date parsing with Feedparser
Pradeep Gowda
2010-09-30
'''
import feedparser
* (load "quicklisp.lisp")
==== quicklisp quickstart loaded ====
To continue, evaluate: (quicklisp-quickstart:install)
T
* (quicklisp-quickstart:install)
; Fetching #<URL "http://beta.quicklisp.org/quickstart/asdf.lisp">
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.2.200
select meter_id, substring(logtime,1,7) month, max(demand)
from logdata
group by meter_id, substring(logtime,1,7)
order by meter_id, month