Skip to content

Instantly share code, notes, and snippets.

View grantm's full-sized avatar

Grant McLean grantm

View GitHub Profile
@grantm
grantm / console.log
Created December 22, 2015 06:03
DNS queries against Slingshot nameservers
~$ host www.lighthousepetone.co.nz 202.180.64.10
Using domain server:
Name: 202.180.64.10
Address: 202.180.64.10#53
Aliases:
Host www.lighthousepetone.co.nz not found: 2(SERVFAIL)
~$ host www.lighthousepetone.co.nz 202.180.64.11
Using domain server:
Name: 202.180.64.11
@grantm
grantm / metacpan-v1-fields.md
Created November 13, 2016 20:43
Metacpan API /v1 fields
### Keybase proof
I hereby claim:
* I am grantm on github.
* I am grantmnz (https://keybase.io/grantmnz) on keybase.
* I have a public key ASCDS3p9-PMlPFwXwLZqwrGgF5c2zAE8XKb0aEODSMQNBQo
To claim this, I am signing this object:
@grantm
grantm / start-es.sh
Created August 1, 2012 21:31
Launch ES with ulimit raise for more filehandles
#!/bin/bash
ES_BINARY=/home/grant/elasticsearch-0.18.7/bin/elasticsearch
if [ -z "$1" ]
then
sudo $0 as-root $USER
stty sane
elif [ "$1" = "as-root" ]
then
$the_cow = <<EOC;
$thoughts
$thoughts __
/ \\
| |
@ @
|| ||
|| ||
|\\_/|
\\___/
@grantm
grantm / no-more-f-s-git-log.txt
Last active April 1, 2022 19:57
git log for the repo with no more f***s to give
$ git clone https://github.com/grantm/no-more-f-s-repo.git
Cloning into 'no-more-f-s-repo'...
remote: Enumerating objects: 279, done.
remote: Counting objects: 100% (279/279), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 279 (delta 87), reused 279 (delta 87), pack-reused 0
Receiving objects: 100% (279/279), 22.66 KiB | 2.83 MiB/s, done.
Resolving deltas: 100% (87/87), done.
$ cd no-more-f-s-repo/
$ git --no-pager log