Skip to content

Instantly share code, notes, and snippets.

View JanKoppe's full-sized avatar
🐧
NOOT NOOT!

Jan Koppe JanKoppe

🐧
NOOT NOOT!
View GitHub Profile
@JanKoppe
JanKoppe / gist:777bbd484be5ba5cfc9ff8a35e0c902c
Created March 4, 2017 08:54
Naming Docker Swarm Services after their respective node name
https://github.com/docker/docker/issues/30966
mostolog commented 19 days ago
As you said, swarm nodes get host's hostname as swarm node name (internally). That's perfectly correct for me.
After deploying some services with default setting, ps shows something like:
37bbf2b56dbf serviceBar.1.ngneetjtxwhm2eijfs1gvt60t
a90e2d59cd77 serviceBar.2.d4lf8h3gqj9e7gyhfi3lgrtdt
ed6d150d7c84 serviceBar.3.iz85bp0sc5t6e3b15w6gtteus
@JanKoppe
JanKoppe / config
Created February 26, 2017 01:17
Exclude Vagrant boxes from Hostkey checks
Host 172.17.8.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
@JanKoppe
JanKoppe / mactab
Created October 12, 2016 20:14
Persistent network device naming with Alpine Linux
#/etc/mactab
---
lan0 00:11:22:33:44:01
wan0 00:11:22:33:44:02
@JanKoppe
JanKoppe / keybase.md
Created September 19, 2016 21:10
keybase.md

Keybase proof

I hereby claim:

  • I am JanKoppe on github.
  • I am jankoppe (https://keybase.io/jankoppe) on keybase.
  • I have a public key whose fingerprint is 7521 FAB1 B9A0 1B22 1DEB 6CE7 BE93 5B07 35A2 129B

To claim this, I am signing this object:

@JanKoppe
JanKoppe / example.js
Created August 4, 2016 10:20
Passport.js and ORCiD.org
/*
* Example for authenticationg against the ORCiD.org Public API with
* passport.js and retrieving the authenticated orcid.
*
* The main difficulty is that ORCiD.org will send the authenticated orcid
* in the accessToken request, which is normally not passed on to the
* passport.js-callback. Without the orcid, properly authenticating with
* ORCiD.org is impossible though.
*
* The trick is to pass on the `passReqToCallback`-option to the
@JanKoppe
JanKoppe / harryPotterAliases
Created June 12, 2016 06:51 — forked from graceavery/harryPotterAliases
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'