Skip to content

Instantly share code, notes, and snippets.

View kyletravis's full-sized avatar

Kyle Travis kyletravis

  • Overland Park, KS
View GitHub Profile
@kyletravis
kyletravis / delete-from-v2-docker-registry.md
Created June 15, 2019 04:44 — forked from jaytaylor/delete-from-v2-docker-registry.md
One liner for deleting images from a v2 docker registry

One liner for deleting images from a v2 docker registry

Just plug in your own values for registry and repo/image name.

registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
    curl -sSL -I \
        -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
@kyletravis
kyletravis / gist:f2ccece0c03d8da09a2884bc009d85d3
Created November 2, 2016 12:00 — forked from sunggun-yu/gist:4416430
Install NMON - CentOS 64bit
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip
# Install unzip if you don't have
yum install unzip
@kyletravis
kyletravis / gist:77de8785a78714854ae4997bdff453e9
Created October 13, 2016 02:25
The Road Not Taken by Robert frost
Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth;
Then took the other, as just as fair,
And having perhaps the better claim,
Because it was grassy and wanted wear;
Though as for that the passing there
@kyletravis
kyletravis / gist:ab239dd5a324ead8371a874203a4c8cc
Created August 24, 2016 19:38
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@kyletravis
kyletravis / states.json
Created June 15, 2016 21:32
state json
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@kyletravis
kyletravis / test.py
Created June 15, 2016 20:21
Test Blug
name = raw_input('What is your name?\n')
print 'Hi, %s.' % name