Skip to content

Instantly share code, notes, and snippets.

View stahnma's full-sized avatar

Michael Stahnke stahnma

View GitHub Profile
@stahnma
stahnma / -
Created February 5, 2016 22:29
Loading puppet
Loading facter
Loading hiera
Loading marionette-collective
Loading cpp-pcp-client
Loading pxp-agent
Loading augeas
Loading ruby
Loading ruby-stomp
Loading rubygem-deep-merge
@stahnma
stahnma / -
Created February 5, 2016 22:28
Loading puppet
Loading facter
Loading hiera
Loading marionette-collective
Loading cpp-pcp-client
Loading pxp-agent
Loading augeas
Loading ruby
Loading ruby-stomp
Loading rubygem-deep-merge
@stahnma
stahnma / -
Created February 5, 2016 22:28
Loading puppet
Loading facter
Loading hiera
Loading marionette-collective
Loading cpp-pcp-client
Loading pxp-agent
Loading augeas
Loading ruby
Loading ruby-stomp
Loading rubygem-deep-merge
@stahnma
stahnma / -
Created January 19, 2016 18:08
Inspecting 81 files
C.....................................................C.......CC....C............
Offenses:
bin/build-windows.rb:11:1: C: Use the return of the conditional for variable assignment and comparison.
if build_target && /win\-(?<build_arch>x86|x64)/ =~ build_target
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bin/build-windows.rb:163:10: C: Freeze mutable objects assigned to constants.
CONFIG = {
@stahnma
stahnma / -
Created January 16, 2016 04:10
Factoid Metrics: 65003
Factoids Total: 925
by <a href="https://tickets.puppetlabs.com/secure/ViewProfile.jspa => 3812
by <a href="https://tickets.puppetlabs.com/secure/ViewProfile.jspa => 867
<img src="https://tickets.puppetlabs.com/servicedesk/issue-type-icons => 742
https://www.youtube.com/watch => 721
by <a href="https://jira1-test.ops.puppetlabs.net/secure/ViewProfile.jspa => 298
everything => 157
right => 69
magic => 50
@stahnma
stahnma / -
Last active January 6, 2016 05:31
Search request
ldapsearch -LLL -H ldaps://ldap.puppetlabs.com:636 -x -b 'dc=puppetlabs,dc=com' -D 'uid=stahnma,ou=users,dc=puppetlabs,dc=com'\
-w "$LDAP_PASSWORD" manager=uid=stahnma,ou=users,dc=puppetlabs,dc=com uid
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
@stahnma
stahnma / -
Created December 22, 2015 05:36
#!/bin/bash
OUTDIR=thehubs
n=`ls -1 /usr/bin | wc -l`
echo "/usr/bin contains $n files"
function findhubs() {
for file in `ls -1 /usr/bin`
do
@stahnma
stahnma / -
Created December 22, 2015 05:13
achub.com - parked
ackhub.com - web dev site
aliashub.com - parked
analoghub.com - default site
archhub.com - apache index of a cgi-bin
arhub.com - blank
ashub.com - parked
*bashhub.com - bash history in the cloud
bchub.com - parked
bodhihub.com - default site
@stahnma
stahnma / -
Created December 22, 2015 04:00
achub.com:10
analoghub.com:5
ashub.com:8
cdhub.com:46
commhub.com:9
csslint-0.6hub.com:9
cuthub.com:60
fchub.com:9
fingerhub.com:5
joinhub.com:60
@stahnma
stahnma / parked.sh
Last active December 22, 2015 03:52
Is it parked?
$ grep -c -i domain * | awk -F: '{if ($2 > 4) print }'
achub.com:10
analoghub.com:5
ashub.com:8
cdhub.com:46
commhub.com:9
csslint-0.6hub.com:9
cuthub.com:60
fchub.com:9
fingerhub.com:5