Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ig0r on github.
  • I am ig0r (https://keybase.io/ig0r) on keybase.
  • I have a public key whose fingerprint is 7198 8DF1 1F6A 3156 CC47 FF6B DC0A B020 CE7E B477

To claim this, I am signing this object:

@ig0r
ig0r / test.sh
Created March 18, 2016 21:28
checking environment variable
#!/bin/bash
if [ -z "$STATE" ]; then
echo "Need to set STATE"
exit 1
else
echo "STATAE is set"
fi
@ig0r
ig0r / test.sh
Created March 18, 2016 21:19
checking environment variable
#!/bin/bash
: "${DISCOVERY_NODE?Need to set DISCOVERY_NODE}"
@ig0r
ig0r / 0_reuse_code.js
Created March 16, 2016 20:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ig0r
ig0r / -
Created January 13, 2016 14:23
HTTP/1.1 200 OK
Server: Apache
ETag: "6082151bd56ea922e1357f5896a90d0a:1425454794"
Last-Modified: Wed, 04 Mar 2015 07:39:54 GMT
Accept-Ranges: bytes
Content-Length: 1020
Content-Type: text/html
Date: Wed, 13 Jan 2016 14:23:30 GMT
Connection: keep-alive
@ig0r
ig0r / sl-ip-win2k8-detect.ps1
Last active August 29, 2015 14:21
Detecting IP address on Windows 2008 R2 64-bit on SoftLayer
$address = (gwmi Win32_NetworkAdapterConfiguration | ? { $_.Description -eq "Citrix PV Ethernet Adapter #0"} | ? { $_.IPAddress}).ipaddress[0]