Skip to content

Instantly share code, notes, and snippets.

View chriszacny's full-sized avatar

Chris Zacny chriszacny

View GitHub Profile
https://sre.google/sre-book/service-best-practices/
https://sre.google/sre-book/launch-checklist/
https://docs.google.com/spreadsheets/d/15Ns1_dv9oHfGZBlrc08KrK3IGVqs9zHWQNIsmwZePuM/edit?usp=sharing
Fowler, Susan J. "Production Ready Microservices."
A Production-Ready Service Is Stable and Reliable
It has a standardized development cycle.
Its code is thoroughly tested through lint, unit, integration, and end-to-end testing.
;; Setup MELPA
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(load-theme 'monokai t)
(custom-set-variables
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# *** Functions
function parse_git_branch {
@chriszacny
chriszacny / squash.md
Last active January 15, 2021 01:31
Git Squash

First, run a git log to see what you are dealing with:

OK zacny 2017.10.10::09:01:18 ~/development/git_repos/github/testrepo (master) > git log
commit 4c11a577e3341467debd047516c39ebc7f0cc959
Author: Chris Zacny <c.zacny@f5.com>
Date:   Tue Oct 10 09:01:17 2017 -0700

    fourth
gsutil -m rsync -r E:\Pictures gs://<your_bucket_here>/E_Drive/Pictures

Recursive grep with color example: grep -E -rin --color 'test' *

@chriszacny
chriszacny / networking.md
Last active December 12, 2019 04:38
Networking

Basic tcpdump

tcpdump -i eth0 -w tcpdump.dmp
Now open and look at it in Wireshark

Send message over TCP:

telnet <host> <port>

Send message over UDP:

@chriszacny
chriszacny / gist:279225dae9621facf6e9090c971ec7f2
Created May 6, 2019 21:03
CSS Trick - Quickly add red borders to everything to find hidden elements, etc.
Add live to Chrome inspector:
* {
border: 1px solid #f00 !important;
}
@chriszacny
chriszacny / gist:bff08e2ef47b92a435df1ee7081e6d83
Created May 1, 2019 16:42
macOS Homebrew Uninstall Node.js
521 brew upgrade npm <-- This failed, and I had to do all of the below to get it to work. Note that some of the commands will fail, as it was me flailing around trying to get it to work.
522 brew link --overwrite node
523 sudo brew link --overwrite node
524 rm '/usr/local/bin/node'
525 brew link --overwrite node
526 brew uninstall node
527 brew uninstall --ignore-dependencies node
528 sudo rm /usr/local/include/node/* && sudo rm -rf /usr/local/include/node/* && sudo rm -rf /usr/local/lib/dtrace
529 sudo rm -rf /usr/local/include/node/
530 brew install node
@chriszacny
chriszacny / basic.css
Last active April 8, 2019 18:19
Setting up a basic css-styled page as of 04.2019
// Per this: https://jrl.ninja/etc/1/
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}