Skip to content

Instantly share code, notes, and snippets.

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 / 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:
;;
@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

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

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
@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.

@sysbot
sysbot / 00-README.md
Created March 31, 2018 22:40 — forked from adamgreig/00-README.md
Run embedded Rust code on your STM32F4

Embedded Rust on STM32F4

My notes from implementing Job Vranish's excellent guide.

Follow along with the guide above, getting rustc from rustup or similar:

rustc 1.0.0-nightly (dcaeb6aa2 2015-01-18 11:28:53 +0000)
binary: rustc
commit-hash: dcaeb6aa23ecba2dc2af870668a9239136d20fa3

commit-date: 2015-01-18 11:28:53 +0000

@sysbot
sysbot / join_test.go
Created May 10, 2018 23:12
strings.Join vs fmt.Sprintf vs string concat (+)
package join
import (
"fmt"
"strings"
"testing"
)
var (
testData = []string{"a", "b", "c", "d", "e"}

Keybase proof

I hereby claim:

  • I am sysbot on github.
  • I am sysbot (https://keybase.io/sysbot) on keybase.
  • I have a public key ASAVzKVs633NS414pz-lV1M3gM22eA6PlCQ0mLFrJHdSIAo

To claim this, I am signing this object:

Host bastion-*
ProxyCommand none
User bao
ForwardAgent yes
Tunnel no
SendEnv LANG LC_*
HashKnownHosts no
Compression yes
ServerAliveInterval 600
UserKnownHostsFile ~/.ssh/known_hosts