This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep "text/html$" */*/* | awk '{print $1};' | awk 'BEGIN { FS= ":" } ; {print $1;}' | xargs sed -i 's/text\/html/html/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find ~/htdocs | grep html$ | xargs grep -l "<pre syntax=" | xargs -I {} -t ./hyperpyg.py -f {} -o {} -q |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| feedp1.py | |
| Date parsing with Feedparser | |
| Pradeep Gowda | |
| 2010-09-30 | |
| ''' | |
| import feedparser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * (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 contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |