Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Duncan eduncan911

View GitHub Profile
@eduncan911
eduncan911 / MyBB\web.config
Last active Aug 29, 2015
web.config configuration for redirects for MyBB w/Google SEO plugin on IIS 8 and Windows Azure Web Sites
View MyBB\web.config
<?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/".
@eduncan911
eduncan911 / Octopress\blogml.rb
Last active Aug 29, 2015
Octopress (and Jekyll) BlogML importer. See revision history for my changes.
View Octopress\blogml.rb
# BlogML import script originally sourced from:
# https://github.com/philippkueng/philippkueng.github.com/tree/30ef1570f06d33938b18d5eee7767d6641b9a779/source/_import
# Best post I could find about how to use it was here:
# http://philippkueng.ch/migrate-from-blogengine-dot-net-to-jekyll.html
#
# how to install
# --------------
# mkdir source/_importer
# cp blogml.rb to the source/_importer/ you created above
# cp your BlogML.xml to the same source/_importer/ directory
@eduncan911
eduncan911 / Octopress\Rakefile
Last active Aug 29, 2015
Isolate all posts so you can work on the styling and other pages.
View Octopress\Rakefile
# 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:
#
View lenovo-helix-end-insert-key-swap.reg
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 / gist:cd250bc78a4465c3b719
Created Oct 10, 2014
'git rebase' instead of 'git pull'
View gist:cd250bc78a4465c3b719
View 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"
}
View gist:e325fc05b891691999be
# 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")
View 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 / godoc2md-all
Last active Jun 20, 2018
Godoc2md for current and all sub-directories
View godoc2md-all
#!/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 / gnome-install-extensions
Last active Jul 25, 2019
Gnome: Manually add several Extensions (or, for those that don't trust browser extensions)
View gnome-install-extensions
#!/bin/bash -e
# A script to mass install Gnome extensions from a single folder.
#
# for global extensions, use /usr/share/gnome-shell/extensions/
EXTENSIONS_DIR=~/.local/share/gnome-shell/extensions
TMP_DIR="/tmp/gnome-install-extensions"
DIR=$1