View gist:1638259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(test_env)fmilomacbook:master fmilo$ trial buildbot.test | |
buildbot | |
test ... [ERROR] | |
=============================================================================== | |
[ERROR] | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/twisted/trial/runner.py", line 677, in loadByNames | |
things.append(self.findByName(name)) | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/twisted/trial/runner.py", line 487, in findByName |
View how_to_remove_brew.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to remove brew | |
cd `brew —-prefix` | |
rm -rf Cellar | |
brew prune | |
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew | |
rm -rf ~/Library/Caches/Homebrew |
View gist:2501811
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MetadataResource(ModelResource): | |
class Meta: | |
queryset = MetadataModel.objects.all() | |
resource_name = 'metadata' | |
allowed_methods = ['get', 'post', 'put', 'delete'] | |
filtering = { | |
'adcode': ALL, | |
'status': ALL, | |
'first_run_date': ['exact', 'lt', 'lte', 'gte', 'gt'], | |
} |
View gist:2713776
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
package main | |
import ("flag" | |
"net/http" | |
"net/url" | |
"os" | |
"io" | |
"log" |
View example.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ("flag" | |
"net/http" | |
"net/url" | |
"io" | |
"log" | |
"io/ioutil" | |
"sync" | |
) |
View dump_stack.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Thanks to zeebo on #go-nuts | |
package main | |
import ( | |
"os" | |
"os/signal" | |
"runtime" | |
"syscall" | |
) |
View gist:2911848
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func buffer(in <-chan T) <-chan T { | |
out := make(chan T) | |
go func() { | |
var buf = list.New() | |
for { | |
outc := out | |
var v T | |
if buf.Len() == 0 { | |
// buffer empty: don't try to send on output | |
if in == nil { |
View script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [[ $# -lt 2 ]] | |
then | |
echo "Usage: $0 <filename.p12> <key-name: ie. app-free-dev>" | |
exit | |
fi |
View build_gcc4.7.1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# GCC | |
## Prerequisites for GCC | |
## http://gcc.gnu.org/install/prerequisites.html | |
## Installing GCC: Configuration | |
## http://gcc.gnu.org/install/configure.html | |
GCC_VER=4.7.1 | |
WORK_DIR=$HOME/Builds/GCC |
View tee.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"bufio" | |
"os" | |
"flag" | |
"log" | |
) |
OlderNewer