Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
@rtanglao
rtanglao / showfordata.json
Created December 1, 2016 08:42
01december2016-showfor.json
{
"platforms": {
"firefox": [{
"visible": true,
"name": "Linux",
"slug": "linux"
}, {
"visible": true,
"name": "Mac",
"slug": "mac"
@rtanglao
rtanglao / 18november2016-android-win-mac-linux-tb-un-minified.json
Created November 18, 2016 16:58
showfor JSON for mac, windows, android, linux, tb
{
"platforms": {
"mobile": [ {
"visible": true, "name": "Android", "slug": "android"
}
],
"firefox": [ {
"visible": true, "name": "Linux", "slug": "linux"
}
,
@rtanglao
rtanglao / s-quebec-2016-fundraising.txt
Last active November 10, 2016 18:22
Simon's quebec fundraising - coffee and pointsettas
Hello there!
It's fundraising time!! On behalf of Simon, I'm forwarding some info about his class' fundraising campaign.
Just in time for the holidays: festive poinsettias and fair trade coffee!
To place your orders, please e-mail Simon at [email protected] or myself
or give us a call at 604-739-3557. If you live in the 'hood, expect a visit from Simon this weekend!
Thanks for your support!
225102,rillian,2016-06-27 21:12:38 UTC
225102,rillian,2016-06-24 21:05:49 UTC
225102,rillian,2016-06-23 18:40:51 UTC
225102,rillian,2016-06-23 18:36:06 UTC
67343,kinetiknz,2016-06-22 22:23:55 UTC
225102,rillian,2016-05-24 22:20:05 UTC
225102,rillian,2016-06-20 14:07:45 UTC
225102,rillian,2016-06-20 14:01:49 UTC
67343,kinetiknz,2016-06-17 10:13:07 UTC
225102,rillian,2016-06-17 08:29:50 UTC
# from http://www.fmwconcepts.com/imagemagick/tidbits/image_info.php#ave_color
convert rose: -colorspace rgb -scale 1x1 \
-format "%[fx:floor(255*r)],%[fx:floor(255*g)],%[fx:floor(255*b)]" info:
# output is: rgb(146,89,80)
convert -font Times-Bold -pointsize 32 1920-361-increased-brightness-contrast-ig-vancouver-topcolour.jpg -fill white \
-undercolor '#00000080' -gravity southeast -annotate +0+5 'SouthEast' output.jpg
Jan 7 14:49:40 Rolands-iPhone6S-plus SpringBoard[1263] <Warning>: Application 'UIKitApplication:org.mozilla.ios.Firefox[0xbc34]' exited abnormally via signal.
Jan 7 14:49:40 Rolands-iPhone6S-plus UserEventAgent[1228] <Warning>: 2861912788372: id=org.mozilla.ios.Firefox pid=2090, state=0
Jan 7 14:49:40 Rolands-iPhone6S-plus mediaserverd[1230] <Notice>: 'FigPlayer - 1236' (pid = 1236) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jan 7 14:49:40 Rolands-iPhone6S-plus SpringBoard[1263] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 7 14:49:40 Rolands-iPhone6S-plus SpringBoard[1263] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 7 14:49:40 Rolands-iPhone6S-plus SpringBoard[1263] <Warning>: Unable to get short BSD proc info for 1443: No such process
Jan 7 14:49:40 Rolands-iPhone6S-plus SpringBoard[1263] <Warning>: [MPUSystemMediaControls] Updating supported commands fo
@rtanglao
rtanglao / flickr-04-12-barcode-1-HD-ish-graphic.sh
Last active March 11, 2016 19:18
2004-2012 barcode in 1 HDish graphic
1. 2004-2012 flickr 75x75, arrranged chronologically,
take 1x75x slice i.e. https://www.flickr.com/photos/roland/9196187411 call this original.png
2. arrange in as close to an HD size frame as possible 1875x1575
2a) convert original -crop 75x75 TILES/75x75_%04d.png
2b) cd TILES; ls -1 *.png >536pngs.txt
2c) gm montage -verbose -adjoin -tile 25x21 +frame +shadow +label -adjoin -geometry '75x75+0+0<' @536pngs.txt 532pngsIn1.png
convert projection-40170x75px-9199102600_4f9ba053e8_o.png -crop 75x75 TILES/75x75_%04d.png
cd TILES; ls -1 > 536pngs.txt # and then remove the first two lines
gm montage -verbose -adjoin -tile 38x14 +frame +shadow +label -adjoin -geometry '75x75+0+0<' @536pngs.txt 532pngsIn1.png
Rolands-MBP:BIKETOWORKSHOP_COM_SURGE rolandtanglao$ dig @8.8.8.8 t.co
; <<>> DiG 9.8.3-P1 <<>> @8.8.8.8 t.co
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40518
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: