Skip to content

Instantly share code, notes, and snippets.


Eric Duncan eduncan911

View GitHub Profile
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 "" with the actual url of your site. Such
as "" or "".
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:
# Best post I could find about how to use it was here:
# 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 / 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 / main.go
Created Jul 27, 2014
Go/Reading Console Inputs
View main.go
package main
import (
func main() {
eduncan911 / gist:cd250bc78a4465c3b719
Created Oct 10, 2014
'git rebase' instead of 'git pull'
View gist:cd250bc78a4465c3b719
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 ddd-in-golang.markdown

This is my response to an email asking about Domain-Driven Design in golang project.

Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.

That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.

Conclusions could be very different, if there was a different project, team or a story-teller.

Short story

eduncan911 / godoc2md-all
Last active Jun 20, 2018
Godoc2md for current and all sub-directories
View godoc2md-all
# bash script to create a GoLang 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.
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"