Skip to content

Instantly share code, notes, and snippets.

Bill Anderson therealbill

Block or report user

Report or block therealbill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fixing-ctd-om-macos-stellaris
In Terminal go to "~/Library/Application Support/Steam/steamapps/workshop/content/281990/". From there you'll need to identify the mod you want to modify by looking in "~/Documents/Paradox Interactive/Stellaris/mod" files. I look through them in Finder using preview. Get the "remote_file_id" value and go to the subdirectory in Terminal.
Then unzip the zipfle using 'unzip FILENAME' where FILENAME is the name of the zipfile there, ending in ".zip". Next you need to determine the localisation directory. Some mods use a subdirectory of "localisation/LANGUAGE/" some just put them in localisation. For this example, I'll assume "localisation/english/". The files in there need to have their BOM added.
So from the mod's directory (where the zipfile is) enter this in Terminal:
for f in $(ls localisation/english/*.yml); do echo $f
cp $f $f.sav
sed -i .presed '1s/^/\\xef\\xbb\\xbf/' $f
View key

Keybase proof

I hereby claim:

  • I am therealbill on github.
  • I am therealbill ( on keybase.
  • I have a public key ASAOnS0_40SI6GCzzFPqdUx6tr1JW4Ypn8oas6fHH9jnxgo

To claim this, I am signing this object:

View sre-song-lyrics
Do you want to read a git diff?
Or write an ansible play?
I never see you anymore
Come out the door
It's like you've gone away...
We used to be system admins
And now we're not
I wish you would tell me why!
Do you want to build a container?
It doesn't have to be with docker
View makefile-for-go-codes
go build
godep save
godep restore
therealbill / proxy_copy.go
Created Nov 17, 2015 — forked from jbardin/proxy_copy.go
Go TCP Proxy pattern
View proxy_copy.go
package proxy
import (
func Proxy(srvConn, cliConn *net.TCPConn) {
// channels to wait on the close event for each connection
therealbill /
Created May 23, 2015
Recover Sentinel Config From Red Skull
#!/usr/bin/env python
import requests
for pod in requests.get("http://localhost:8000/api/knownpods").json()['Data']:
print "sentinel monitor {Name} {Info[IP]}:{Info[Port]} 2\nsentinel set {Name} auth-pass {AuthToken}".format(**pod)
View sts.go
package main
import (
const (
therealbill /
Created Jul 25, 2014
A simple means for replication a sentinel's in-memory config to a new sentinel.
#!/usr/bin/env python
import redis
import sys
origin_ip,origin_port = sys.argv[1].split(":")
target_ip,target_port = sys.argv[2].split(":")
origin = redis.Redis(origin_ip,origin_port)
target = redis.Redis(target_ip,target_port)
therealbill / salt traceback on TAGPARTER build
Last active Dec 24, 2015
Gettign this error on salt 0.17.0-438-gbbd35e7 during a highstate run. worked fine on 0.17.0-34-gb19c17c
View salt traceback on TAGPARTER build
[INFO ] Executing state pkg.installed for python-pip
[INFO ] Package python-pip is already installed
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: sequence item 1: expected string, int found
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
File "/usr/lib/python2.7/dist-packages/salt/", line 77, in salt_call
File "/usr/lib/python2.7/dist-packages/salt/cli/", line 303, in run
View gist:6105634
- source: salt://core/files/clock
- target: /usr/share/zoninfo/America/Los_Angeles
- force: true
You can’t perform that action at this time.