Skip to content

Instantly share code, notes, and snippets.

@sysbot
sysbot / docker-macos-terraform.md
Created March 31, 2018 00:05 — forked from brianshumate/docker-macos-terraform.md
The Simplest Terraform with Docker on macOS

If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

Disabling tailspind and spindump on macOS High Sierra
macOS High Sierra2 includes System Integrity Protection, which means that certain files are untouchable and uneditable. This has the benefit of helping keep your system files pure and malware-free, with the cost of flexibility.
To disable tailspind and spindump means temporarily disabling System Integrity Protection (SIP). To disable SIP:
Boot your Mac into Recovery Mode by restarting with Command-R held down until the Apple logo appears.
Once your Mac is in Recovery Mode, go to Utilities > Terminal.
In the Recovery Mode Terminal, issue csrutil disable and press return.
Reboot your Mac.
Once SIP is disabled, the steps to disable tailspind and spindump are pretty straightforward

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@sysbot
sysbot / Makefile
Created January 28, 2018 17:40 — forked from prwhite/Makefile
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing
@sysbot
sysbot / init-org.el
Created January 14, 2018 07:15 — forked from webbj74/init-org.el
org-mode file+function capture template example
;; I am not a regular emacs user and haven't played with lisp for many years.
;; I struggled for a couple of days trying to tweak org-capture-templates to
;; get my desired behavior for journal entries. I hope this helps someone!
;;
;; I have been following the excellent guide http://doc.norang.ca/org-mode.html
;; The "journal" template was the one I wanted to tweak. I use a date-based
;; journal filename, e.g. "2015-09-22-Journal-Entry.org". The contents of the
;; file consist of a top-level headline with a human-friendly date, followed
;; by second-level headline with the time and brief journal note. For example:
;;

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@sysbot
sysbot / darktable-workflow.md
Created December 10, 2017 06:23 — forked from eimajtrebor/darktable-workflow.md
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
@sysbot
sysbot / init.yml
Created November 18, 2017 00:02 — forked from renoirb/init.yml
Salt stack, context and Jinja template
#
# Some state file...
#
{% for site, args in pillar.get('sites', {}).items() %}
/etc/nginx/sites-available/{{ site }}:
file.managed:
- source: salt://nginx/files/site.conf.jinja
- template: jinja
- context:
site: {{ site }}
@sysbot
sysbot / tmux.md
Created October 30, 2017 17:40 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a