Skip to content

Instantly share code, notes, and snippets.

View armanddp's full-sized avatar

Armand du Plessis armanddp

View GitHub Profile
EvUEAM5TBCx99555XTLtNb-2oVxgD
<?xml version="1.0"?>
<gpx version="1.1" creator="gpxgenerator.com">
<wpt lat="30.262362134327038" lon="-97.74042029076713">
<ele>139.35</ele>
<time>2019-03-08T16:35:46Z</time>
</wpt>
<wpt lat="30.262816205651045" lon="-97.73978728943962">
<ele>141.71</ele>
<time>2019-03-08T16:36:42Z</time>
</wpt>
POEM IN O̶C̶T̶O̶B̶E̶R̶ JULY…
It was my thirty-first year to heaven
Woke to my hearing from harbour and neighbour wood
And the mussel pooled and the heron
Priested shore
The morning beckon
With water praying and call of seagull and rook
And the knock of sailing boats on the webbed wall
Myself to set foot
Do you seek to engage in espionage, sabotage, export control violations, or any other illegal activity while in the United States?
Yes No
Do you seek to engage in terrorist activities while in the United States or have you ever engaged in terrorist activities?
Yes No
Have you ever or do you intend to provide financial assistance or other support to terrorists or terrorist organizations?
Yes No
Are you a member or representative of a terrorist organization?
@armanddp
armanddp / ambit2gpx_example
Created December 25, 2014 08:33
ambit2gpx
› python ambit2gpx-1.7.py ~/Library/Application\ Support/Suunto/Moveslink2/AE0BC05009001600-2014-12-24T07_04_36-0.sml
Parsing file /Users/armanddp/Library/Application Support/Suunto/Moveslink2/AE0BC05009001600-2014-12-24T07_04_36-0.sml
Done.
Creating file /Users/armanddp/Library/Application Support/Suunto/Moveslink2/AE0BC05009001600-2014-12-24T07_04_36-0.gpx
................................................................................
.................................
Done.

Keybase proof

I hereby claim:

  • I am armanddp on github.
  • I am armanddp (https://keybase.io/armanddp) on keybase.
  • I have a public key whose fingerprint is 2306 72AF E47F 1B36 9329 463F CEB7 F217 5871 E459

To claim this, I am signing this object:

Types of index scans

Indexes

Sequential Scan:

  • Read every row in the table
  • No reading of index. Reading from indexes is also expensive.
@armanddp
armanddp / postgis.sh
Created April 20, 2013 16:54
Setting up PostGIS
# Get source
wget http://postgis.net/stuff/postgis-2.0.4SVN.tar.gz
tar -xvzf postgis-2.0.4SVN.tar.gz
cd postgis-2.0.4SVN
@armanddp
armanddp / raid0.sh
Last active December 15, 2015 04:39
RAID-0 on EBS
# Create volumes
for x in {1..6}; do \
ec2-create-volume --size 100 -z us-east-1c --type io1 --iops 1000; \
done > volumes.txt
# Tag volumes for easy reference
VOLUME_LIST=$(ec2-describe-volumes \
| grep "2013-03-20" | awk '{print $2}')
@armanddp
armanddp / hotel224.txt
Created November 9, 2012 13:33
Hotel 224 Original Ad Transcript
[sing]
"We are marching to Pretoria, Pretoria..."
Damestem:“Verskoon my, meneer, kan jy tog vir my sê waar is die uniegebou?”
Manstem:“Ja sekerlik, daar naby die 224.”
Damestem:“En Loftus Versfeld?”
Manstem:“Ook naby die 224.”
Damestem:“W-w-w-w-wat is die 224?”
Manstem:“'n Bekostigbare hotel met 224 gerieflike kamers.”
Damestem:“Waar is die 224?”