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 ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strings" | |
) |
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
# -*- mode: shell-script -*- | |
# source this file from your shell's rc file | |
activate_aws_env() { | |
AWS_ENV=$1 | |
ENV_FILE="${HOME}/Dropbox/awsenvs/${AWS_ENV}.gpg" | |
if [ ! -f "$ENV_FILE" ]; then | |
echo "$ENV_FILE" does not exist. | |
return | |
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
#!/usr/bin/python | |
from multiprocessing import Pool | |
from subprocess import call, Popen | |
from tempfile import NamedTemporaryFile | |
import time | |
from boto import ec2 | |
INSTANCE_NAME = 'vegeta-loadtest' |
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
GO_WORKSPACE=${GO_WORKSPACE:-~/Documents/work/goworkspace} | |
mkdir -p $GO_WORKSPACE | |
goworkon() { | |
PROJECT=$1 | |
PROJECT_DIR="${GO_WORKSPACE}/${PROJECT}" | |
if [[ ! -d "$PROJECT_DIR" ]]; then | |
echo "Project does not exist!" | |
return 1 | |
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
%global debug_package %{nil} | |
%global __strip /bin/true | |
Name: golang | |
Version: 1.3 | |
Release: 1%{?dist} | |
Summary: Golang | |
Group: Development/Languages | |
License: BSD |
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
# mtr --report --report-cycles 60 addons.mozilla.org | |
Start: Mon Aug 11 20:55:57 2014 | |
HOST: amo-net-debug Loss% Snt Last Avg Best Wrst StDev | |
1.|-- 104.131.223.254 0.0% 60 0.3 2.3 0.3 14.8 3.2 | |
2.|-- 198.199.99.233 0.0% 60 0.9 1.8 0.2 33.8 5.3 | |
3.|-- nyk-b5-link.telia.net 0.0% 60 0.7 1.9 0.4 57.9 7.6 | |
4.|-- nyk-bb2-link.telia.net 0.0% 60 1.1 8.6 0.8 92.2 20.8 | |
5.|-- dls-bb1-link.telia.net 0.0% 60 45.9 45.9 45.6 50.3 0.5 | |
6.|-- phx-b1-link.telia.net 1.7% 60 84.8 85.5 84.7 113.9 3.8 | |
7.|-- mozilla-ic-140268-phx-b1. 1.7% 60 75.4 78.1 75.2 123.2 9.4 |
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
Name: nodejs-unstable | |
Version: 0.11.13 | |
Release: 1%{?dist} | |
Summary: node.js unstable branch | |
Group: Development/Languages | |
License: MIT and ASL 2.0 and ISC and BSD | |
URL: http://nodejs.org/ | |
Source0: http://nodejs.org/dist/v%{version}/node-v%{version}-linux-x64.tar.gz | |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
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 ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"regexp" | |
) |
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 | |
TMP=$(mktemp -d) | |
cd "$TMP" | |
ssh-keygen -f rsa -t rsa -q -N "" -C "rsa" | |
ssh-keygen -f dsa -t dsa -q -N "" -C "dsa" |
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
<VirtualHost *:80 *:81> | |
ServerName preview.addons.mozilla.org | |
SetEnv HTTPS on | |
DocumentRoot /data/www/addons.mozilla.org-preview/site/app/webroot | |
<Directory /data/www/addons.mozilla.org-preview> | |
AllowOverride All | |
</Directory> | |
<Directory /data/www/addons.mozilla.org-remora/site/app/webroot/ebay/ebay-extension> |
OlderNewer