Skip to content

Instantly share code, notes, and snippets.

View rdeknijf's full-sized avatar

Rutger de Knijf rdeknijf

View GitHub Profile
@rdeknijf
rdeknijf / keybase.md
Created August 5, 2021 08:15
keybase.md

Keybase proof

I hereby claim:

  • I am rdeknijf on github.
  • I am rdeknijf (https://keybase.io/rdeknijf) on keybase.
  • I have a public key whose fingerprint is A3C7 5B85 6C8A BF51 E762 A0FE C957 9456 375E 704F

To claim this, I am signing this object:

@rdeknijf
rdeknijf / Jenkinsfile
Created August 19, 2019 15:20
Check Git changes in `admin` dir
stage('Init') {
steps {
script {
GIT_CHANGED_ADMIN = sh(returnStdout: true, script: "git diff-tree --name-only ${env.GIT_COMMIT} | grep admin | wc -l").trim().toBoolean()
echo "GIT_CHANGED_ADMIN = ${GIT_CHANGED_ADMIN}"
}
@rdeknijf
rdeknijf / gist:f6d847dc88c217129415c3d2e5372cdc
Created September 25, 2017 09:07
Ansible iptables expected result (2.3)
TASK [rdeknijf.openvpn : iptables - Allow VPN forwarding] ************************************************ [1518/3663]
task path: /home/rdeknijf/projects/kieskeurig/openvpn/deploy/ansible/roles-vendor/rdeknijf.openvpn/tasks/iptables.yml:7
Monday 25 September 2017 10:37:55 +0200 (0:00:00.312) 0:00:02.561 ******
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/iptables.py
<main-001.openvpn.prd.main.aws.kieskeurighost.nl> ESTABLISH SSH CONNECTION FOR USER: None
<main-001.openvpn.prd.main.aws.kieskeurighost.nl> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-wit
h-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/rdeknijf/.ansible/cp/8a8191f72f main-001.openvpn.prd.main.aws.kieskeurighost.nl '/bin/sh -c '"'"'sudo
-H
@rdeknijf
rdeknijf / vagrant_box_add_fail
Created April 9, 2013 11:50
Attempt to add vagrant box fails. Changed homedir to make sure that wasn't the problem, no difference. Win8x64
H:\>vagrant box add precise64 precise64.box
INFO global: Vagrant version: 1.1.5
DEBUG global: Loading core plugin: C:/vagrant/vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: C:/vagrant/vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: C:/vagrant/vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: C:/vagrant/vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command