Skip to content

Instantly share code, notes, and snippets.

View peelman's full-sized avatar

Nick Peelman peelman

View GitHub Profile
@peelman
peelman / 0_reuse_code.js
Created January 20, 2014 13:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
namespace :assets do
desc "Display asset path"
task :paths => :environment do
Rails.application.config.assets.paths.each do |path|
puts path
end
end
end
#!/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.

#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 4.0 of October 23, 2014
@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
@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 / 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;}
#!/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 / 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