Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| worker_processes 4; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| default_type application/octet-stream; | |
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' |
| # coding=utf-8 | |
| from BeautifulSoup import BeautifulSoup | |
| import urllib2 | |
| import sys, os | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') | |
| input_file = sys.argv[1] | |
| output_opml = sys.argv[2] |
| <# | |
| .SYNOPSIS | |
| Converts files to the given encoding. | |
| Matches the include pattern recursively under the given path. | |
| .EXAMPLE | |
| Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8 | |
| #> | |
| function Convert-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') { | |
| $count = 0 |
| # if running bash | |
| if [ -n "$BASH_VERSION" ]; then | |
| # include .bashrc if it exists | |
| if [ -f "$HOME/.bashrc" ]; then | |
| . "$HOME/.bashrc" | |
| fi | |
| fi |
| jerry@pi:/tmp/redis-2.4.15$ make -j 2 | |
| cd src && make all | |
| make[1]: Entering directory `/tmp/redis-2.4.15/src' | |
| MAKE hiredis | |
| MAKE jemalloc | |
| make[2]: Entering directory `/tmp/redis-2.4.15/deps/hiredis' | |
| cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c | |
| checking for xsltproc... no | |
| checking for gcc... gcc | |
| checking whether the C compiler works... yes |
| require "net/https" | |
| url = URI.parse("https://api.pushover.net/1/messages") | |
| req = Net::HTTP::Post.new(url.path) | |
| req.set_form_data({ | |
| :token => "abc123", | |
| :user => "user123", | |
| :message => "hello world", | |
| }) | |
| res = Net::HTTP.new(url.host, url.port) |
These instructions work for the Raspberry Pi running Raspbian (hard float) and create a hardware optimized version of NodeJS for the Raspberry PI, (and include a working install and NPM!!!):
Install Raspbian - http://www.raspberrypi.org/downloads
Install the necessary dependecies:
sudo apt-get install git-core build-essential(If you just installed git then you need to administer your git identity first, else adding the patches below will fail!!!)
| #!/bin/sh | |
| curl -s \ | |
| -F "token=APP_TOKEN" \ | |
| -F "user=USER_TOKEN" \ | |
| -F "title=Download Finished" \ | |
| -F "message=$TR_TORRENT_NAME: $TR_TIME_LOCALTIME" \ | |
| http://api.pushover.net/1/messages > /dev/null |