Skip to content

Instantly share code, notes, and snippets.

View joshk's full-sized avatar
🥸

Josh Kalderimis joshk

🥸
  • Valued
  • Wellington, NZ
  • 05:09 (UTC +02:00)
View GitHub Profile
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
- - 199.182.120.10
- - 199.182.120.9
- - 199.182.120.11
- - 199.182.120.8
- 199.182.120.16
- - 199.182.120.13
- - 199.182.120.17
- - 199.182.120.14
- - 199.182.120.146
- 199.182.120.19
Ashburn v4
================
199.91.168.0/22
199.182.120.0/22
173.247.96.0/21
Ashburn v6
===================
2607:F700:8000::/33
@croaky
croaky / .travis.yml
Created July 31, 2013 18:25
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 bundle_install.sh files from http://randomerrata.com/post/45827813818/travis-s3 to cache gem bundles for much faster test suite setup time.
---
rvm:
- 2.0.0
before_install:
- "echo 'gem: --no-document' > ~/.gemrc"
- "echo '--colour' > ~/.rspec"
- gem install fog
- "./script/travis/bundle_install.sh"
- export DISPLAY=:99.0
@sandfox
sandfox / .travis.yml
Last active December 18, 2015 16:58
Latest / custom nodejs versions for travis.
before_install:
- rm -rf ~/.nvm
- curl https://raw.github.com/creationix/nvm/master/install.sh | sh
- source ~/.nvm/nvm.sh
- nvm install ${TRAVIS_NODE_VERSION}
@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:
body {
background-color: white !important; }
#upload_target {
display: none !important; }
div.bottom {
padding: 0px !important;
margin: 0px !important;
background-image: none !important; }
@ebi
ebi / travis.sh
Created January 15, 2013 08:53
Using multiple saucelabs accounts on travis
echo "Connecting to Saucelabs..."
case "$((${TRAVIS_BUILD_NUMBER:(-1):1}/2))" in
"1")
TRAVIS_SAUCE_CREDENTIALS="sauce-subaccount1,access-key"
echo "Using sauce-subaccount1"
;;
"2")
TRAVIS_SAUCE_CREDENTIALS="sauce-subaccount2,access-key"
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