Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am johanneswuerbach on github.
  • I am johanneswuerbach (https://keybase.io/johanneswuerbach) on keybase.
  • I have a public key whose fingerprint is 4B18 6527 5920 FB9F 0723 ED74 74DB 0F4D 956C CCE3

To claim this, I am signing this object:

@johanneswuerbach
johanneswuerbach / sauce-connect.sh
Last active August 29, 2015 14:16
connect test
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
@johanneswuerbach
johanneswuerbach / sauce_connect_setup.sh
Last active August 29, 2015 14:13 — forked from santiycr/sauce_connect_setup.sh
Setup a Sauce Connect 3 tunnel
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
@johanneswuerbach
johanneswuerbach / gist:a0de3f5fced04ea545c4
Created October 28, 2014 22:12
fleetctl journal -f deis-builder.service
-- Logs begin at Mon 2014-10-20 19:00:49 UTC. --
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] -job acceptconnections() = OK (0)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [info] GET /v1.15/images/progrium/cedarish/history
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] +job history(progrium/cedarish)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] -job history(progrium/cedarish) = ERR (1)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [error] server.go:1207 Handler for GET /images/{name:.*}/history returned error: No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [error] server.go:110 HTTP Error: statusCode=404 No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: Loading cedarish...
Oct 28 22:02:12 ip-10-21-2-187.ec2.internal sh[3649]: [info] POST /v1.15/images/load
package main
import (
"os"
"os/exec"
"fmt"
"net"
"io"
"time"
@johanneswuerbach
johanneswuerbach / rails-vagrant-provision.sh
Last active June 29, 2020 19:24
Provision a vagrant box with ruby stable (using rvm), postgres, redis and node (using nvm)
#!/usr/bin/env bash
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8
sudo apt-get update
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev
# postgres
2013-07-14 15:04:59,164 - sauce_connect:558 - INFO - / Starting \
2013-07-14 15:04:59,167 - sauce_connect:559 - INFO - Please wait for "You may start your tests" to start your tests.
2013-07-14 15:04:59,176 - sauce_connect:571 - DEBUG - System is 2.0 hours off UTC
2013-07-14 15:04:59,177 - sauce_connect:573 - DEBUG - options: {'user': 'sixdoors_robot', 'ports': ['59497'], 'domains': None, 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'ssh': False, 'se_port': '4445', 'readyfile': None, 'shared_tunnel': False, 'boost_mode': True, 'tunnel_identifier': 'karma1373807085', 'ssh_port': 443, 'fast_fail_regexps': '', 'direct_domains': '', 'host': '127.0.0.1', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False}
2013-07-14 15:04:59,178 - sauce_connect:574 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r28', 'OwnerPorts': ['59497'], 'Ports': ['80'], '
@johanneswuerbach
johanneswuerbach / .travis.yml
Last active April 14, 2023 20:31
Deploy an iOS app to testflight using Travis CI
---
language: objective-c
before_script:
- ./scripts/travis/add-key.sh
after_script:
- ./scripts/travis/remove-key.sh
after_success:
- ./scripts/travis/testflight.sh
env:
global:
@johanneswuerbach
johanneswuerbach / .bash_profile
Last active December 13, 2015 17:38
Faster Rails
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000