Skip to content

Instantly share code, notes, and snippets.


Josh Kalderimis joshk

View GitHub Profile
View Debug Metrics in Swarm
Check the application's processor service and the statsd service are both in the same overlay network.
docker service inspect processor
Then look under the `Networks` section to see all the networks each service is attached to.
If both services are in the same network, check for DNS or network issues.
docker exec -it processor bash
apt-get update
View gist:8724729
- -
- -
- -
- -
- -
- -
- -
- -
View gist:8723597
Ashburn v4
Ashburn v6
croaky / .travis.yml
Created Jul 31, 2013
This is our current Travis configuration for our standard Rails 4 + Ruby 2 projects that have Capybara Webkit test suites and Postgres databases. It relies on the bundle_cache.rb and files from to cache gem bundles for much faster test suite setup time.
View .travis.yml
- 2.0.0
- "echo 'gem: --no-document' > ~/.gemrc"
- "echo '--colour' > ~/.rspec"
- gem install fog
- "./script/travis/"
- export DISPLAY=:99.0
sandfox / .travis.yml
Last active Dec 18, 2015
Latest / custom nodejs versions for travis.
View .travis.yml
- rm -rf ~/.nvm
- curl | sh
- source ~/.nvm/
- nvm install ${TRAVIS_NODE_VERSION}
johanneswuerbach / .travis.yml
Last active Jun 29, 2020
Deploy an iOS app to testflight using Travis CI
View .travis.yml
language: objective-c
- ./scripts/travis/
- ./scripts/travis/
- ./scripts/travis/
View cf_chat.css
body {
background-color: white !important; }
#upload_target {
display: none !important; }
div.bottom {
padding: 0px !important;
margin: 0px !important;
background-image: none !important; }
ebi /
Created Jan 15, 2013
Using multiple saucelabs accounts on travis
echo "Connecting to Saucelabs..."
case "$((${TRAVIS_BUILD_NUMBER:(-1):1}/2))" in
echo "Using sauce-subaccount1"
echo "Using sauce-subaccount2"

This is a distillation of a technique we use internally at Basho to reduce the pain of cloning some of our larger repos. It relies a bit on shell scripts and environment variables, but it can be run more directly, as I show below.

  1. Create a bare git repository in some directory, e.g. /var/lib/gitcache.

    git init --bare /var/lib/gitcache
  2. Add all repositories you want to cache as remotes to the git repository, e.g.


This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
  • NBC
You can’t perform that action at this time.