Skip to content

Instantly share code, notes, and snippets.

View eduncan911's full-sized avatar

Eric Duncan eduncan911

View GitHub Profile
@eduncan911
eduncan911 / godoc2md-all
Last active June 20, 2018 07:30
Godoc2md for current and all sub-directories
#!/bin/bash
# bash script to create a GoLang README.md in the current and all sub-directories.
#
# installation:
# place this in your ~/bin or similar. make sure to: chmod 755 godoc2md-all
#
# it is recommended to have a doc.go for each package, that allows for samples and
# additional instructions.
#
@eduncan911
eduncan911 / keybase.md
Created February 6, 2018 17:17
keybase.md

Keybase proof

I hereby claim:

  • I am eduncan911 on github.
  • I am eduncan911 (https://keybase.io/eduncan911) on keybase.
  • I have a public key ASCm86SHMqJZdxyA3BUcpZKRZ8FKk7y93384uEKOOA1SZAo

To claim this, I am signing this object:

@eduncan911
eduncan911 / gist:e325fc05b891691999be
Last active March 3, 2016 03:25
Git Pending Repos
# add this code to your .bashrc file
# gitpending() transverses from the current directory to
# inspect 1 directory level deep for any git repos that have
# pending changes to commit.
function gitpending()
{
for d in */ ; do
pushd $d > /dev/null
DIRNAME=$(basename "$d")
@eduncan911
eduncan911 / json_indent.go
Created March 1, 2016 22:25
json_indent.go
/*Package main is a simple test of Json Identing (aka pretty print)
To run:
$ go run main.go
{
"eventId": "xyz",
"articleId": "123"
}
@eduncan911
eduncan911 / gist:cd250bc78a4465c3b719
Created October 10, 2014 15:55
'git rebase' instead of 'git pull'
@eduncan911
eduncan911 / lenovo-helix-end-insert-key-swap.reg
Created July 12, 2014 14:39
Lenovo Helix End/Insert Key Swap
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,52,e0,4f,e0,4f,e0,52,e0,00,00,00,00
@eduncan911
eduncan911 / Octopress\Rakefile
Last active August 29, 2015 14:00
Isolate all posts so you can work on the styling and other pages.
# add this to your Rakefile for your Jekyll or Octopress source.
# you can then call it like this:
#
# $ rake isolate_posts
#
# remember, do NOT 'git add .' because your posts will be deleted (stashed) in
# a git-ignored directory!
#
# when you are ready to commit, the workflow should be like:
#
@eduncan911
eduncan911 / MyBB\web.config
Last active August 29, 2015 13:57
web.config configuration for redirects for MyBB w/Google SEO plugin on IIS 8 and Windows Azure Web Sites
<?xml version="1.0" encoding="UTF-8"?>
<!--
version 1.0
to use, make sure to change the following:
1) replace "www.MyDomain.com/forum/" with the actual url of your site. Such
as "www.acmecorp.com/" or "www.acmecorp.com/forum/".