This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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'], | |
} |
This file contains hidden or 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" |
This file contains hidden or 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" | |
) |
This file contains hidden or 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" | |
) |
This file contains hidden or 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 { |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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