Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tommodore on github.
  • I am tommodore (https://keybase.io/tommodore) on keybase.
  • I have a public key ASB0a1H98OJACuUWrXGo7XhDfhxguVJMwvSu5Lvz_OOlNgo

To claim this, I am signing this object:

apiVersion: v1
kind: Service
metadata:
name: markdownrender
labels:
app: markdownrender
spec:
type: NodePort
ports:
- port: 8080

Keybase proof

I hereby claim:

  • I am tommodore on github.
  • I am tommodore (https://keybase.io/tommodore) on keybase.
  • I have a public key whose fingerprint is E302 D4AD CFB7 579C 7D21 8FB6 F162 EA45 1E23 4025

To claim this, I am signing this object:

@tommodore
tommodore / rsync.md
Created August 9, 2017 12:50
Fast rsync transfer

RSync a directory via ssh:

rsync

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
  • X: preserves extended attributes
  • x: don't cross file-system boundaries
  • v: increase verbosity
List open network files:
$ sudo lsof -Pni
List contents of various network-related data structures:
$ sudo netstat -atln
Monitor DNS queries and replies:
$ tshark -Y "dns.flags.response == 1" -Tfields \
@tommodore
tommodore / yamlsyntax.rb
Created May 26, 2014 09:33
Yaml Syntax Check
#!/usr/bin/env ruby
require 'yaml'
status=0
ARGV.each do |file|
begin
r = YAML.load_file(file)
rescue Errno::ENOENT => ex
$stderr.print "#{file}:ERROR:0:File does not exist!\n"
status=2