Skip to content

Instantly share code, notes, and snippets.

View llowder's full-sized avatar

Lee Lowder llowder

View GitHub Profile
if [[ jq '.source | test("github")' metadata.json ]] && [[ ! git remote -v | grep -F 'upstream' ]]; then
git remote add upstream $(jq -r .source metadata.json | sed -e 's#git@\|git://\|http://#https://#' | sed -e 's#m:#m/#')
fi
somekey: &REFERENCE
subkey: value
otherkey:
thing:
<<: *REFERENCE
stuff: value
[20:05.44] -irc.freenode.net- *** Attempting to connect to irc.freenode.net (94.125.182.252) on port 6667
[20:05.44] -irc.freenode.net- Sending User Registration Information
[20:05.45] --adams.freenode.net-- *** Looking up your hostname...
[20:05.45] --adams.freenode.net-- *** Checking Ident
[20:05.45] --adams.freenode.net-- *** No Ident response
[20:05.45] --adams.freenode.net-- *** Couldn't look up your hostname
[20:05.45] -irc.freenode.net- Capabilities supported: account-notify extended-join identify-msg multi-prefix sasl
[20:05.45] -irc.freenode.net- Capabilities requested: account-notify extended-join multi-prefix
[20:05.45] -irc.freenode.net- Capabilities acknowledged: account-notify extended-join multi-prefix
[20:05.45] -adams.freenode.net- Welcome to the freenode Internet Relay Chat Network FriedBob
@llowder
llowder / error.txt
Created February 22, 2018 13:52
problematic puppetdb query attempt on pdb/query/v4/nodes
No implemntation of method: :-plan-sql of protocol: #'puppetlabs.puppetdb.query-eng.engine/SQLGen found for class: nil
@llowder
llowder / hash_foo.pp
Last active February 9, 2018 13:39
Describing some issues with puppet strings.
# This class foos a hash.
#
# @param foo The hash to be food.
# Example format:
# acquaintance_name:
# command: /path/to/command
# frequency: rarely
# oneoff: true
# @param bar Where to meet.
#
# This class manages foo
#
# @summary Some summary text
#
# @param foo_1 Descxription
#
# **NOTE** This is an important note!
#
# @note This is an important note!
#
@llowder
llowder / foo.pp
Last active January 5, 2018 16:18
# <snip>
# @param install_dirs
# * [Stdlib::Absolutepath] staging
# * [Stdlib::Absolutepath] home
# * [Stdlib::Absolutepath] install
# * [Stdlib::Absolutepath] log
# @param param_foo
# * [Stdlib::Absolutepath] install_dirs
# <snip>
#
---
heroes:
Trickster:
Grade: Gold
Level: 58
Rank: 7
Prima Donna:
Grade: Gold
Level: 58
Rank: 7
@llowder
llowder / letter.txt
Last active November 14, 2017 13:50
Secuity complaint
I was trying to sign up, and when I went to enter a password it complained it wasn't valid. I had entered a mixed case alphanumeric
password with 100 bits of entropy (this is near impossible to brute force) , but it seems to be forcing me to use a mixed cased
alphabetic password that has to be exactly 8 characters long (this winds up being a very weak password with only 40 bits of entropy,
can be brute forced in as little as 5 hours with modern hardware).
How do you expect me to trust you with my medical and personal information when you security is so lax?
# Class for managing local users
class base::user_locals (
hash $users = {},
){
$users.each | $user_name, $attrs | {
user {
$user_name:
* => $attrs
}