Skip to content

Instantly share code, notes, and snippets.

View rpappalax's full-sized avatar

Richard Pappalardo rpappalax

  • Mozilla
  • Valencia, Spain
View GitHub Profile
{
"name": "Push Testing",
"plans": [
{
"name": "Single Server",
"description": "10 Server cluster with 1.6 million clients",
"steps": [
{
"name": "Test Cluster",
"instance_count": 10,
@rpappalax
rpappalax / .gitconfig
Created March 28, 2016 03:41
gitconfig example
[alias]
st = status
ci = commit
cl = clone
br = branch
co = checkout
df = diff
dc = diff --cached
who = shortlog -s --
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
#---------------------------
# INSTALL AUTOPUSH
#---------------------------
# read this and weep bitter tears of ANGST:
http://autopush.readthedocs.org/en/latest/
# OSX only
export ARCHFLAGS="-arch x86_64"
"demo-app-01_e2e-test_stage": {
"owner": "rpappalax",
"repo": "dummy-app-01",
"test_env": "stage",
"triggers": "* 0 * * *",
"dir": "tests"
},
"demo-app-01_stack-check_stage": {
"owner": "rpappalax",
"repo": "dummy-app-01",
@rpappalax
rpappalax / vbox_mount_host_dir.sh
Created February 19, 2016 05:15
vbox_mount_host_dir
DIR_HOST=/tmp
DIR_LOCAL=/tmp
sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) $DIR_HOST ~/$DIR_LOCAL
git cl https://github.com/mozilla-services/autopush autopush-osx
cd autopush-osx
virtualenv .
cd bin
./python --version
ln -s ./python pypy
cd ..
mkdir ddb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
cd ddb && tar xzvf ../dynamodb_local_latest.tar.gz && cd ..
{
"name": "Push Testing",
"strategies": [
{
"name": "Single Server",
"description": "Single PushGo server, 2 sets of testers for peak of 200k connections.",
"container_sets": [
{
"name": "Test Cluster",
"instance_count": 1,

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
@rpappalax
rpappalax / demo_simplepush.md
Created January 13, 2015 18:28
Demo - SimplePush