I hereby claim:
- I am thomersch on github.
- I am thomersch (https://keybase.io/thomersch) on keybase.
- I have a public key whose fingerprint is 2C22 42FC 8832 429E 943D 04D6 AD84 2DC5 035A 1DDC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # average bit rate encoding | |
| ffmpeg -i $INPUT -c:v libx264 -b:v $BITRATE $OUTPUT.mp4 | |
| # mux | |
| ffmpeg -i video.mov -i audio.flac -c:v copy -c:a aac muxed.mp4 | |
| ffmpeg -i video.mov -i audio.flac -c copy muxed.mkv # mkv takes any codec combination | |
| # remux | 
| Host github.com | |
| HostName ikvjwd.com | 
| CGO_CFLAGS="-I/usr/local/include -ferror-limit=0" CGO_LDFLAGS="-L/usr/local/lib/" GOPATH=$GOPATH":"$PWD/Godeps/_workspace/ go build imposm3.go | 
| go test -cover -covermode=count -coverprofile=cover.profile && go tool cover -html=cover.profile && rm cover.profile | 
| # Preparation | |
| brew install fswatch | |
| # watching | |
| fswatch -o /coding/ts_website/pages/ | xargs -n1 /coding/ts_website/pagewerk.py | 
| export PS1="%F{red}%n%F{black}@%F{green}%m%F{black}:%~%E %f$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| export LS_OPTIONS='--human --color=always' | |
| export EDITOR="vim" | |
| autoload -U compinit && compinit | 
| import math | |
| def lat_lon_to_tile(lat_deg, lon_deg, zoom): | |
| def sec(x): | |
| return 1/math.cos(x) | |
| lat_rad = math.radians(lat_deg) | |
| n = 2**zoom | |
| xtile = n * ((lon_deg + 180) / 360) | |
| ytile = n * (1 - (math.log(math.tan(lat_rad) + sec(lat_rad)) / math.pi)) / 2 | 
| import json | |
| data = json.loads(geojson) | |
| all_linestrings = [] | |
| new_linestring = [] | |
| inserted = 0 | |
| for elements in data["features"]: | |
| if elements["geometry"]["type"] == "LineString": | |
| ls = elements["geometry"]["coordinates"] | 
| * Set time zone | |
| dpkg-reconfigure tzdata |