Copy file contents directly from within vim
:%!tee >(pbcopy)
Alternate options
gg"+yG
Copy file contents directly from within vim
:%!tee >(pbcopy)
Alternate options
gg"+yG
python -m http.server
in directory. Identify the <port>
hostname:port
Assuming pbcopy is installed on Mac.
Follow this blog to setup and launch a pbcopy.plist
After setting up OSX, update ~/.ssh/config
to setup remote port forward RemoteForward 2224 127.0.0.1:2224
On remote host, add an executable shell script in path with
sudo scutil --set HostName ${hostname}
Alex Smola's new book.
find . -type f -print0 | sort -z | xargs -0 shasum -a 256 | shasum -a 256 | awk '{print $1}'
For example, we have the following directory.
test/
├── a
└── b
$▶ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
See https://github.com/justjanne/powerline-go
Add the following. Note, this is customized to my taste.
# Add powerline-go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go \
-newline -cwd-max-depth 5 -mode compatible -colorize-hostname\