Skip to content

Instantly share code, notes, and snippets.

@stgarf
stgarf / foo.test-kitchen-VBoxManage-modifyvm-vagrant-dns-nat.md
Created April 7, 2019 07:25
Make chef test-kitchen, VirtualBox, Vagrant DNS work over VPN with NAT
  • Testing convering before adding any VirtualBox NAT settings:
$ kitchen list                                                                               20 ↵  2582  13:31:22
Instance          Driver   Provisioner  Verifier  Transport  Last Action  Last Error
default-centos-6  Vagrant  ChefZero     Busser    Ssh        Converged    <None>
default-centos-7  Vagrant  ChefZero     Busser    Ssh        Created      Kitchen::ActionFailed
server-centos-6   Vagrant  ChefZero     Busser    Ssh        Created      Kitchen::ActionFailed
server-centos-7   Vagrant  ChefZero     Busser    Ssh        Created      Kitchen::ActionFailed
proxy-centos-6    Vagrant  ChefZero     Busser    Ssh        Converged    <None>
@stgarf
stgarf / unwatch-gh-org.js
Last active April 1, 2019 19:25 — forked from offirgolan/unwatch-gh-org.js
Unwatch All Org Repos
// Navigate to https://github.com/watching and then run:
// Taken from: https://stackoverflow.com/questions/11043374/how-to-unwatch-multiple-repos-easily-on-github
Array.prototype
.slice.apply(document.querySelectorAll('.Box-row'))
.forEach(el => {
const org = el.querySelector('a[href^="/YOUR_ORG"]');
if (org) el.querySelector('button').click()
});
var xpath = "//a[text()='Next']";