Skip to content

Instantly share code, notes, and snippets.

##
## Complete end to end mTLS in Cloudflare with a Vault-based CA.. and signing client certs with that
##
# This assumes you have a CA already setup in vault - I recommend a root and an intermediate
#
# We assume that you have an existing vault state that incorporates these outputs like these:
# output "prod_ca_cert" {
# value = "${vault_pki_secret_backend_root_sign_intermediate.intermediate.certificate}\n${tls_self_signed_cert.root_ca.cert_pem}"
# }
# output "prod_ca_int_path" {
# Read more about setting it up
# https://medium.com/@ljmocic/make-telegram-bot-for-notifying-about-new-rss-feed-items-4cfbcc37f4fd
from datetime import timedelta, datetime
from dateutil import parser
from pprint import pprint
from time import sleep
import requests
import feedparser
@atrull
atrull / flac2mp3
Last active June 4, 2020 10:12
A little utility to turn directories of flacs into mp3s, ideal for phones and other limited storage devices
#!/bin/bash
# a little utility to turn flacs into mp3s - helpful for getting more music on phones etc
# run this in the top level of directories you want to convert content to
# this does files AND directories and removes the flacs too - remove the "rm" if you don't want that function
# by alex (ataroba) trull (dottydotness) org
# turn all the flacs into v0 mp3s and deletes the flac files
# requires the ffmpeg utility
find . -type f -name "*.flac" -execdir sh -c 'ffmpeg -i "$1" -aq 0 -c:a libmp3lame -q:a 0 -map_metadata 0 "${1%.flac}.mp3" && rm "$1"' Cvt {} \;
foo fooo fooooo
a little test contents
@atrull
atrull / elite dangerous rare run notes
Last active August 29, 2015 14:12
elite dangerous rare run notes
rare run: from rares clustered to rares clustered in two runs each way - with a cobra mk3 and about 24-28 cargo slots.
based on clusters seen in this : https://www.elitedangeroustrader.co.uk/rares-systems-3d-map/
and a mid-point route from : https://cmdr.club/routes/
we need a cluster of rares to fill the ship
we need 150K or so LY between the clusters of rares.

Keybase proof

I hereby claim:

  • I am atrull on github.
  • I am atrull (https://keybase.io/atrull) on keybase.
  • I have a public key whose fingerprint is 4104 BB9C A39E 1250 8BF2 28E5 7B2E 26EB F796 C534

To claim this, I am signing this object:

* ITSM / Ticketing - ServiceNow
* AAA Directory - AD/K5
* Rights Mngt. on the box
* Build Servers - Jenkins
* Test Frameworks - Unit etc.
* Monitoring / Full Stack etc. - New Relic, CA etc.
* 3rd Party DC API’s - e.g. HP, Centurylink
* Network topology designs - Multiple Firewall layers / Proxy etc.
* Storage Layer and Distributed Filesystems
* Physical/Virtual/Cloud
goodcooking:myface alextrull$ rspec .
myface::default
should create a service account for the myface daemon (FAILED - 1)
should install the sudo package (FAILED - 2)
Failures:
1) myface::default should create a service account for the myface daemon
Failure/Error: let (:chef_run) { ChefSpec::ChefRunner.new.converge 'myface::default' }