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
12 17 26 43 48 24 | |
5 7 24 31 39 7 | |
2 3 13 16 35 27 | |
44 45 47 50 51 8 | |
10 16 18 29 45 19 | |
17 22 30 46 56 16 | |
18 21 25 28 29 16 | |
2 22 32 45 56 12 | |
4 12 14 21 55 7 | |
6 8 43 48 50 7 |
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 |
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 |
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'], | |
} |
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" |
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" | |
) |
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" | |
) |
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 { |
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 |
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 |