Skip to content

Instantly share code, notes, and snippets.

Dan Slimmon danslimmon

Block or report user

Report or block danslimmon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
View gist:1e2ddf7ba9a709f6fed1ee2e4e895c42
dan@george:/tmp/secrets$ blackbox_addadmin dan@danslimmon.com
gpg: /private/tmp/secrets/keyrings/live/trustdb.gpg: trustdb created
gpg: key A9FD8CCF: public key "Dan Slimmon " imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
NEXT STEP: You need to manually check these in:
git commit -m'NEW ADMIN: dan@danslimmon.com' keyrings/live/pubring.gpg keyrings/live/trustdb.gpg keyrings/live/blackbox-admins.txt
dan@george:/tmp/secrets$ git commit -m'NEW ADMIN: dan@danslimmon.com' keyrings/live/pubring.gpg keyrings/live/trustdb.gpg keyrings/live/blackbox-admins.txt
[master (root-commit) 94108f6] NEW ADMIN: dan@danslimmon.com
3 files changed, 2 insertions(+)
You can’t perform that action at this time.