Skip to content

Instantly share code, notes, and snippets.

View michaelcoyote's full-sized avatar
👀
building and learning

Michael michaelcoyote

👀
building and learning
View GitHub Profile
@michaelcoyote
michaelcoyote / pf.conf
Last active June 15, 2017 19:09
An old OpenBSD pf.conf circa 3.1.
# Basic openbsd pf.conf file circa 3.1. (would need updating to use)
#
# Required order: options, normalization, queueing, translation, filtering.
# Macros and tables may be defined and used anywhere.
# Note that translation rules are first match while filter rules are last match.
# Macros: define common values, so they can be referenced and changed easily.
ext_if="xl0" # replace with actual external interface name i.e., dc0
external_addr="52.218.113.29"
# Internal network info if needed
@michaelcoyote
michaelcoyote / Italian_foodwords.txt
Last active June 15, 2017 19:35
Italian food words
Abbacchio - lamb
Acciughe – anchovies
Aceto - vinegar
Affumicato - smoked
Aglio - garlic
Aglio e olio - garlic and oil
Agnello - lamb
Agrodolce - sweet/sour
Al dente - firm (literally to the tooth)
Amaretti - crisp cookies made with bitter almonds
@michaelcoyote
michaelcoyote / keybase.md
Created November 3, 2014 06:39
keybase.io for michaelcoyote

Keybase proof

I hereby claim:

  • I am michaelcoyote on github.
  • I am michaelcoyote (https://keybase.io/michaelcoyote) on keybase.
  • I have a public key whose fingerprint is DA1E 4F70 F783 3621 61A6 8549 67B5 CBC6 37EA A9D1

To claim this, I am signing this object:

@michaelcoyote
michaelcoyote / ck_userupdate.sh
Last active August 29, 2015 14:07
check for user running a program before updating and skip them if they are
#!/bin/bash
#
# Proof of concept
# check for user running a program before updating and skip them if they are
#
PROGRAM="irssi"
# Check ps for users running a process name & compare against list of non-admin users
#
@michaelcoyote
michaelcoyote / tilde_tricks.md
Last active August 29, 2015 14:07
Stupid tilde.club tricks

Generate a list of users with a uid greater than 500

awk -F: '$3 > 500 {print $1}' /etc/passwd

Look for users with a space after the username grep " :x" /etc/passwd

It is possible to set the TZ variable on a per user or even per script basis.

@michaelcoyote
michaelcoyote / mintupgradenotes.md
Last active August 29, 2015 14:06
Mint in place upgrade notes
@michaelcoyote
michaelcoyote / manifest2vm.md
Last active August 29, 2015 14:06
BOSH Manifest to running VM

CF Manifest to running VM

Path

  1. Manifest contains information about a job to start in either the

  2. configuration templates/"spec" (from cf-release/jobs/<jobname>/) + stemcell + packages (from cf-release/packages)

  3. magic from the BOSH Director (prepare) takes the stemcell and starts it and lays over package info and configs in /var/vcap

@michaelcoyote
michaelcoyote / boshhelp.txt
Created September 17, 2014 22:13
bosh help
→ bosh --help
BOSH CLI helps you manage your BOSH deployments and releases.
Usage: bosh [<options>] <command> [<args>]
-c, --config FILE Override configuration file. Also can be overridden by BOSH_CONFIG environment variable. Defaults to $HOME/.bosh_config. Override precedence is command-line option, then environment variable, then home directory.
--[no-]color Toggle colorized output
-v, --verbose Show additional output
-q, --quiet Suppress all output
-n, --non-interactive Don't ask for user input
-N, --no-track Return Task ID and don't track
@michaelcoyote
michaelcoyote / linkdump
Last active August 29, 2015 14:06
Link Dump
PSSH - http://archive09.linux.com/feature/151340?theme=print
bash tests - http://tldp.org/LDP/abs/html/comparison-ops.html http://tldp.org/LDP/abs/html/fto.html
ssh agent - http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
Mac KB shortcuts - http://support.apple.com/kb/ht1343
bosh docs - http://docs.cloudfoundry.org/bosh/
@michaelcoyote
michaelcoyote / basicvimkeys.md
Last active August 29, 2015 14:06
Basic Vim Keys

Basic VIM Keys

Notes

  • a number in front of most movement and edit keys acts as a multiplier to that key
    • e.g. 30j moves the cursor down 30 lines and 3i tora types toratoratora
  • editing can be stacked with movement characters
    • e.g. dw will delete a word