Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Slimmon danslimmon

View GitHub Profile
View gist:154064c8aae90b2d187c1d40a9331d4a
Brieonce
Celine Dijon
Cheeses & Mary Chain
Lil Kimchi
Iggy Popsicle
Modest Mousse
Rigatoni Toni Tone
S'Morrissey
Jay Ziti
Sonny and Pear
View gist:f34f606329a1d9c40f6e2864af18d936
$ dig happy.newyear
; <<>> DiG 9.8.3-P1 <<>> happy.newyear
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59466
View roll.py
#!/usr/bin/python
import random
import re
import sys
options = {}
class RollSpec:
def __init__(self, spec):
View pillar.yaml
#!yaml|gpg
myapp:
username: app_user
password: |
-----BEGIN PGP MESSAGE-----
...
-----END PGP MESSAGE-----
View pillar.yaml
myapp:
username: app_user
password: hunter2
View blah.ini
[myapp]
username = {{ pillar['myapp']['username'] }}
password = {{ pillar['myapp']['password'] }}
View blah.ini
[myapp]
username = app_user
password = hunter2
View gist:1f23e983c358010c4a2c8a735b8a8b44
dan@george:/tmp/secrets$ echo "nuclear launch code: SashaMalia44" > launchcode.txt
dan@george:/tmp/secrets$ blackbox_register_new_file launchcode.txt
========== PLAINFILE launchcode.txt
========== ENCRYPTED launchcode.txt.gpg
========== Importing keychain: START
gpg: Total number processed: 1
gpg: unchanged: 1
========== Importing keychain: DONE
========== Encrypting: launchcode.txt
========== Encrypting: DONE