_env_init() {
# init version manager without rehash on startup
local SHELL_NAME="zsh"
local init_args=(- --no-rehash zsh)
local zshrc="$HOME/.zshrc"
# For security on Linux
[[ -n $XDG_RUNTIME_DIR ]] && local TMPDIR="$XDG_RUNTIME_DIR"
This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.
Highly recommended things!
This is my five-star list. These are my favorite things in all the world.
A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★
fix_mosh_server() { | |
local fw='/usr/libexec/ApplicationFirewall/socketfilterfw' | |
local mosh_sym="$(which mosh-server)" | |
local mosh_abs="$(greadlink -f $mosh_sym)" | |
sudo "$fw" --setglobalstate off | |
sudo "$fw" --add "$mosh_sym" | |
sudo "$fw" --unblockapp "$mosh_sym" | |
sudo "$fw" --add "$mosh_abs" | |
sudo "$fw" --unblockapp "$mosh_abs" |
set -L | |
set -U fish_color_normal normal | |
set -U fish_color_command 005fd7 | |
set -U fish_color_quote 999900 | |
set -U fish_color_redirection 00afff | |
set -U fish_color_end 009900 | |
set -U fish_color_error ff0000 | |
set -U fish_color_param 00afff | |
set -U fish_color_comment 990000 | |
set -U fish_color_match --background=brblue |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.1.29 | |
pipelines: | |
default: | |
- step: |
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"imagePullSecrets", | |
"hub", | |
"proxy", | |
"singleuser", | |
"ingress", |
{ | |
"$ref": "#/definitions/ClusterConfig", | |
"type": "object", | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"definitions": { | |
"AZSubnetMapping": { | |
"additionalProperties": { | |
"$ref": "#/definitions/AZSubnetSpec" | |
}, | |
"type": "object", |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
sed ':a;N;$!ba;s/\n/\\n/g' my_key.pem | |
or in vi | |
:%s/\n/\\n/ | |
https://tickets.opscode.com/browse/CHEF-3540 |