Skip to content

Instantly share code, notes, and snippets.

View arigesher's full-sized avatar

Ari Gesher arigesher

View GitHub Profile
@arigesher
arigesher / keybase.md
Created April 12, 2016 21:03
Keybase identity verification

Keybase proof

I hereby claim:

  • I am arigesher on github.
  • I am arigesher (https://keybase.io/arigesher) on keybase.
  • I have a public key whose fingerprint is 4C71 6357 7C2A FE86 63AC 6776 6BA7 2DF9 8E5E 3182

To claim this, I am signing this object:

@arigesher
arigesher / sparklage vecnav data.ipynb
Created October 19, 2016 00:48
Loading vecnav data from sparklage keys
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arigesher
arigesher / sparklage vecnav data.ipynb
Created October 19, 2016 00:48
Loading vecnav data from sparklage keys
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arigesher
arigesher / yamlprint.ipynb
Created January 26, 2018 17:39
YAML for better output formatting
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arigesher
arigesher / gdal1-json-c-013.patch
Created May 24, 2018 22:07
GDAL 1.11.5 patch for dealing with json-c lib 0.13
diff --git a/frmts/arg/argdataset.cpp b/frmts/arg/argdataset.cpp
index 5a7e646..c40101a 100644
--- a/frmts/arg/argdataset.cpp
+++ b/frmts/arg/argdataset.cpp
@@ -55,6 +55,10 @@ static float CPLNaN(void)
# endif
#endif
+#ifndef error_ptr
+#define error_ptr(error) ((void*)error)
@arigesher
arigesher / trigger_build.bash
Created May 22, 2019 18:42
CircleCI manual trigger
#!/bin/bash -e
# Usage:
#
# 1. set $CIRCLE_API_TOKEN
# 2. run `./trigger-build <account> <oroject> [<branch>]`
#
# For https://github.com/iambob/myfirstproject:
#
# trigger_build iambob myfirstproject
@arigesher
arigesher / aws_instance_metadata.bash
Created January 30, 2020 19:47
bash-fu to set AWS instance metadata as environment variables
#!/bin/bash -x
_JQ_FILTER='.ds | .dynamic | .["instance-identity"] | .document'
_INSTANCE_DATA=/var/run/cloud-init/instance-data.json
export _instance_doc=$(jq "$_JQ_FILTER" $_INSTANCE_DATA)
for key in $(echo $_instance_doc | jq -r 'keys|.[]'); do
value=$(echo $_instance_doc | jq -r .$key)
declare -x _AWS_${key^^}=${value}
done