-
iTerm2
-
Command Line Tools
xcode-select –install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # (c) miraculixx, licensed as by the terms of WTFPL, http://www.wtfpl.net/txt/copying/ | |
| # License: DO WHATEVER YOU WANT TO with this code. | |
| # | |
| # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
| # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
| # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
| # | |
| from io import StringIO | |
| from contextlib import contextmanager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| OS=${OS:-`uname`} | |
| if [ "$OS" = 'Darwin' ]; then | |
| get_touch_time() { | |
| date -r ${unixtime} +'%Y%m%d%H%M.%S' | |
| } | |
| else | |
| # default Linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/sh | |
| # | |
| # Don't change the following lines unless you know what you are doing | |
| # They execute the config options starting with 'do_' below | |
| grep -E -v -e '^\s*#' -e '^\s*$' <<END | \ | |
| sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x - | |
| # | |
| ############# INSTRUCTIONS ########### | |
| # | |
| # Change following options starting with 'do_' to suit your configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install caddy mkcert nss dnsmasq | |
| mkcert -install | |
| mkcert '*.app.test' '*.cdn.test' | |
| # rename the certs and move them under /usr/local/etc/caddy/certs | |
| cat <<EOF > /usr/local/etc/caddy/Caddyfile | |
| *.app.test:443, *.cdn.test:443 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parallel_fread <- function(path, mc.cores = parallel::detectCores(), header = TRUE, ...) { | |
| stopifnot(file.exists(path)) | |
| dots <- list(...) | |
| fread_args <- dots[intersect(names(formals(fread)), names(dots))] | |
| if (any(c("skip", "nrows") %in% fread_args)) { | |
| stop(paste(intersect(c("skip", "nrows"), fread_args), collapse = " & "), " cannot be provided") | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sensible, short .zshrc | |
| # Gist page: git.io/vSBRk | |
| # Raw file: curl -L git.io/sensible-zshrc | |
| # GNU and BSD (macOS) ls flags aren't compatible | |
| ls --version &>/dev/null | |
| if [ $? -eq 0 ]; then | |
| lsflags="--color --group-directories-first -F" | |
| else | |
| lsflags="-GF" |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
I like (love ?) Keynote because it
- is a simple to use presentation software,
- is vector based (when zooming it just looks gorgeous)
- exports to powerpoint
If I could remove that last argument, I would, but the fact is that, as a consultant, the final document is almost always expected to be a powerpoint document. Don't ask me why, it is just so. I am fighting against it but I did not win the battle so far ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Makefile for transpiling with Babel in a Node app, or in a client- or | |
| # server-side shared library. | |
| .PHONY: all clean | |
| # Install `babel-cli` in a project to get the transpiler. | |
| babel := node_modules/.bin/babel | |
| # Identify modules to be transpiled by recursively searching the `src/` | |
| # directory. |
NewerOlder