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
| ssid: nest | |
| pass: NESTNEST24 |
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
| awk -F"," 'BEGIN { OFS = "," } FNR < 2 { print; next } {$11=sprintf("%.6d", NR); print}' test/functional/west26th/oa.csv > test/functional/west26th/foo.txt |
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
| # m h dom mon dow command | |
| 40 7 * * 1-5 /home/pi/scripts/wakeup.sh | |
| 40 9 * * 6,0 /home/pi/scripts/wakeup.sh |
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
| function toRad(degree) { return degree * Math.PI / 180; } | |
| function toDeg(radian) { return radian * 180 / Math.PI; } | |
| // round floating point errors | |
| function rnd( float ){ | |
| return (Math.floor(100000 * float) / 100000).toFixed(5); | |
| } | |
| function assert( a, b ){ |
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
| #!/bin/bash | |
| # concatenate all openaddresses csv files in to a single stream | |
| # note: deduplicates lines in each file | |
| # avoid locale issues with the sort command | |
| export LC_ALL=C; | |
| # base path of openaddresses file system | |
| OAPATH='/data/oa'; |
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
| /** | |
| normalize co-ordinates that lie outside of the normal ranges. | |
| longitude wrapping simply requires adding +- 360 to the value until it comes | |
| in to range. | |
| for the latitude values we need to flip the longitude whenever the latitude | |
| crosses a pole. | |
| **/ |
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
| date --date='TZ="Europe/Berlin" 09:00 next Fri' |
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
| $ ab -c1 -n100 "http://localhost:8080/point?lat=51.533&lon=-0.0652280" | |
| This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking localhost (be patient).....done | |
| Server Software: | |
| Server Hostname: localhost |
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
| convert -compress jpeg -resize 1240x1753 -units PixelsPerInch -density 150x150 one.jpg two.jpg out.pdf |
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
| package token | |
| import "regexp" | |
| // Ordinals - remove ordinals (such as the 'st' from '21st') | |
| func Ordinals(tokens []string) []string { | |
| r := []string{} | |
| var reg = "" | |
| reg += "(?i)" // case insensitive |