Skip to content

Instantly share code, notes, and snippets.

View johnrigler's full-sized avatar

John Rigler johnrigler

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnrigler on github.
  • I am johnrigler (https://keybase.io/johnrigler) on keybase.
  • I have a public key ASDJ7pypASZbUgzbTdQBwwQhEbhnnmPCBirWU8Q0QOlzawo

To claim this, I am signing this object:

@johnrigler
johnrigler / ansible.bash
Last active August 9, 2019 01:59
bootstrap ansible ubuntu
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt update
sudo apt install ansible
https://ipfs.io/ipfs/QmbR9zejrFt3WxTnLBwjh4GXBgz9eut2wyXWMQfab2p5Mh/alp.bash
<script src="https://ipfs.io/ipfs/QmXrwZC7E6dweXepYXkZ8T5bY2jiHbatYyHR2BKrbbf5qj"></script>
<script>
Stack = new Array();
function evalStack(x) { eval(`${JSON.parse(Stack[x]).name} = ${JSON.parse(Stack[x]).value}`); }
const urlParams = new URLSearchParams(document.location.search);
id = urlParams.get('id');
@johnrigler
johnrigler / monty.js
Last active December 16, 2023 17:55
Monty Hall problem solved (this is stupid)
monty = function()
{
/*
Assumptions:
1. The host will always give you a second choice.
2. The host will never open the door with the prize
because that would end the mystery.
Hypothesis:
Most people are right and this is math foolishness. This is not
the prisoner's dilemma. This is liar's paradox which is solved