Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🤦‍♂️

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
- - 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
View gist:8723597
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 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 bundle_install.sh files from http://randomerrata.com/post/45827813818/travis-s3 to cache gem bundles for much faster test suite setup time.
View .travis.yml
---
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 Dec 18, 2015
Latest / custom nodejs versions for travis.
View .travis.yml
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 Jun 29, 2020
Deploy an iOS app to testflight using Travis CI
View .travis.yml
---
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:
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
ebi / travis.sh
Created Jan 15, 2013
Using multiple saucelabs accounts on travis
View travis.sh
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"
;;
View gitcache.md

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.

View a.md

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.