Skip to content

Instantly share code, notes, and snippets.

View twoism-dev's full-sized avatar

Ben Sales twoism-dev

View GitHub Profile

Keybase proof

I hereby claim:

  • I am twoism-dev on github.
  • I am bensales (https://keybase.io/bensales) on keybase.
  • I have a public key whose fingerprint is CC6F 3C33 DC86 EF85 F5D2 03F6 BE41 0A6A D3B0 20B8

To claim this, I am signing this object:

@twoism-dev
twoism-dev / gist:1183437
Created August 31, 2011 12:38
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@twoism-dev
twoism-dev / casino.md
Last active April 10, 2024 19:14
How spam helped me win big at the casino

I was clearing out spam from my inbox, and one email caught my eye:

yo mate, ok I`ll give you my trick...
you know in roulette you can bet on blacks or reds. If you bet $1 on black and it goes black you win $1 but
if it goes red you lose your $1.
So I found a way you can win everytime:

bet $1 on black if it goes black you win $1

now again bet $1 on black, if it goes red bet $3 on black, if it goes red again bet $8 on black,
if red again bet $20 on black, red again bet $52 on black (always multiple you previous lost bet around 2.5)
if now is black you win $52 so you have $104 and you bet:

$1 + $3 + $8 + $20 + $52 = $84 So you just won $20 :)

now when you won you start with $1 on blacks again etc etc.  its always bound to go black
eventually (it`s 50/50) so that way you eventually always win. But there`s a catch. If you
start winning too much (like $1000 a day) casino will finally notice something and ca