Skip to content

Instantly share code, notes, and snippets.

View peelman's full-sized avatar

Nick Peelman peelman

View GitHub Profile
@peelman
peelman / README.md
Last active November 11, 2015 21:11 — forked from bitflingr/README.md
Dashing widget for puppetdb

##Description Simple Dashing widget (and associated job) to display general puppetdb status. Pulled the API calls from Puppetboard.

WARNING: This only works if puppetdb is listening on HTTP. I have not gotten around to getting this to work with SSL client certificates yet. If you know how, please leave them at the comments below.

##Screenshot

##Dependencies None

@peelman
peelman / README.md
Created November 4, 2015 17:59 — forked from roelentless/README.md
Countdown widget for Dashing

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

##Usage

To use this widget, copy countdown.html, countdown.coffee, and countdown.scss into the /widgets/countdown directory.

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

@peelman
peelman / ping.rb
Created October 30, 2015 20:59 — forked from DiogoAndre/ping.rb
Simple ICMP Ping script in Ruby. Using the Net-Ping gem https://github.com/djberg96/net-ping
require 'net/ping'
@icmp = Net::Ping::ICMP.new('142.40.81.34')
rtary = []
pingfails = 0
repeat = 5
puts 'starting to ping'
(1..repeat).each do
if @icmp.ping
@peelman
peelman / ubuntu-rails-setup.md
Last active November 9, 2015 14:26
Ruby Setup on Ubuntu...

Ubuntu + Apache + Passenger + Ruby

  • Ubuntu 14.04.3
  • Apache 2.4
  • Passenger 5.x
  • Ruby 2.2.3

Install some Prereqs

apt-get install apache2 libcurl4-openssl-dev apache2-threaded-dev libapr1-dev libaprutil1-dev libncurses5-dev

#!/usr/bin/perl
#
# Update the path to your lease file below
use strict;
use File::Copy;
#use DateTime;
#always parse a copy not the live file
#my $leasefile = '/var/lib/dhcpd/dhcpd.leases';
my $leasefile = '/var/lib/dhcp/db/dhcpd.leases';
@peelman
peelman / index.html
Last active October 31, 2015 15:52 — forked from dgs700/index.html
<!doctype html>
<html lang=en>
<head>
<meta charset="utf-8" />
<meta name="verify-v1" content="91yIG+EaOdwKuPX+R9ChHEWVXJ6wdQsq0gqD1c1sbaY="/>
<title>David Shapiro, Resume- Web Developer</title>
<style type="text/css">
body{font-family:Geneva, Arial, Helvetica, sans-serif;font-size:12px;font-weight:normal;color:#000000;text-align:center;margin:0;padding:0;line-height:1.5em;}
header, section, article{display:block;}
header{text-align:center;position:relative;z-index:1;}
@peelman
peelman / keybase.md
Created January 12, 2015 18:35
Keybase Verification

Keybase proof

I hereby claim:

  • I am peelman on github.
  • I am peelman (https://keybase.io/peelman) on keybase.
  • I have a public key whose fingerprint is 65CC 9AC0 C9E1 4163 2FD3 EE5F 8B7B CDAF 7166 2480

To claim this, I am signing this object:

@peelman
peelman / sed.txt
Created January 5, 2015 15:57
one-line SED Scripts
Source: http://www.pement.org/sed/sed1line.txt
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5
Latest version of this file (in English) is usually at:
http://sed.sourceforge.net/sed1line.txt
http://www.pement.org/sed/sed1line.txt
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 4.0 of October 23, 2014
@peelman
peelman / Mnemonic Wordlist.md
Last active March 15, 2021 05:45
Mnemonic encoding wordlist

I don't own this. But the original source is no longer online (insofar as I can tell) and the Wayback machine is currently the only source.

Given that, I wanted to post this here where it could exist in perpetuity, for my use and everybody else's, as well as being fork-able and helpful.

Credit where its due, I was originally introduced to the list via this post on server naming schemes. Also, apparently I'm not the first guy to have this idea.