Making file names lowercase
brew install rename
find ./ -depth -exec rename -n 'y/[A-Z]/[a-z]/' {} ";"

tannertan36
wallacepolsom
KIROKAZE

JBB: An Artblog!

Love Begins

blake kathryn

titsay

Kaledo Art
TVSTRANGERTHINGS
RMH
trying on a metaphor
Jules of Nature
Stranger Things
Peter Solarz
ojovivo
Aqua Utopia|海の底で記憶を紡ぐ
Show & Tell
"I'm Dorothy Gale from Kansas"
dirt enthusiast

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from Iraq
seen from Netherlands

seen from United Kingdom
seen from Ukraine
@k7n4n5t3w4rt-devlog
Making file names lowercase
brew install rename
find ./ -depth -exec rename -n 'y/[A-Z]/[a-z]/' {} ";"

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
launchctl
Permanently disabling a job
TerminalLaunchControlhost:~ user$
launchctl unload -w ~/Library/LaunchAgents/com.example.app.plist
OSX 10.10 Yosemite and later: While you will always be able to switch a job's permanent status between enabled and disabled, you cannot (trivially) remove it from the override database again.
Permanently enabling a job
TerminalLaunchControlhost:~ user$
launchctl load -w ~/Library/LaunchAgents/com.example.app.plist
Bulk change GitHub repos to Private
curl --request GET https://api.github.com/users/k7n4n5t3w4rt/repos | jq --raw-output '.[] .name' | xargs -I % curl -u k7n4n5t3w4rt:TOKEN --data "{\"private\": \"true\"}" --request PATCH https://api.github.com/repos/k7n4n5t3w4rt/% >> output.log
TOKEN: https://github.com/settings/tokens
NOTE: We need to install a jq
Recursively copy one directory structure over another
rsync -a --exclude '.git' path/to/source/ path/to/destination
Note:
The trailing slash on `/path/to/source/` is necessary, otherwise it would copy to `/path/to/destination/source`.
The `--exclude '.git'` will exclude `path/to/source/.git` from the sync, enabling changes to be managed with git after the sync.
git pull -r
use git pull -r to rebase local changes after pulling

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
interactive rebase
https://www.loom.com/share/f87f87e78922458085bce581db60f986
git diff HEAD staged-thing
@k-lord MultiBrowser is particularly useful when clicking links from the terminal. I rarely want those to open in my default browser because they often link to BitBucket or GitHub or to local websites that I'm testing etc.[12:20 PM]discovers 'git diff HEAD staged-thing'(edited)[12:22 PM]I used to always git reset staged-thing thing before I did git diff. Super handy to be able to diff after you've added files to the stage. Especially when there are a lot of files.
VSCode Keybindings for toggling folders open and closed
In "keybindings.json":
{ "key": "enter", "command": "list.toggleExpand", "when": "explorerViewletVisible && filesExplorerFocus !inputFocus" }
Getting one file from another branch in git.
git checkout branch1 # first get back to branch1 git checkout branch2 -- file.js # then copy the version of file.js # from branch "branch2"
Also
git show branch2:path/to/file.js > path/to/file.js
~ https://stackoverflow.com/questions/2364147/how-to-get-just-one-file-from-another-branch
Disk usage
$ df -H / Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 250G 212G 37G 86% 51883301 9095513 85% /
and...
$ du -sh ~/* 3.0M /Users/kynan/Applications 348K /Users/kynan/Creative Cloud Files 348K /Users/kynan/Creative Cloud Files (archived) (1) 116K /Users/kynan/Desktop 12K /Users/kynan/Documents 32K /Users/kynan/Downloads 2.3G /Users/kynan/Dropbox 63G /Users/kynan/Library 63M /Users/kynan/Movies 2.4G /Users/kynan/Music 33G /Users/kynan/Pictures 0B /Users/kynan/Public 134M /Users/kynan/kdots 348K /Users/kynan/[email protected] Creative Cloud Files 4.0K /Users/kynan/master 348K /Users/kynan/[email protected] Creative Cloud Files 13M /Users/kynan/scripts 4.0K /Users/kynan/·

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Some keybindings.json for VSCode
{ "key": "cmd+enter", "command": "renameFile", "when": "explorerViewletVisible && filesExplorerFocus" }, { "key": "enter", "command": "-renameFile", "when": "explorerViewletVisible && filesExplorerFocus" }, { "key": "enter", "command": "list.select", "when": "explorerViewletVisible && filesExplorerFocus" }
~ https://code.visualstudio.com/docs/getstarted/keybindings
“ENFILE: file table overflow”
Turns out, macOS has a harsh limit on number of open files - 256!
https://gist.github.com/abernix/a7619b07b687bb97ab573b0dc30928a0
Force a command to output nothing and exit with status 0
Send the output to /dev/null with “2> /dev/null” and then pipe it to the null command - “:” - which will always exit with status 0. eg.
$ rm -rf ./src/grid-display/.* 2>; /dev/null | :
npm install from a GitHub repo
$ npm install git://github.com/k7n4n5t3w4rt/bubble-sort-v2.git
This seems to put a dependency into package.json but not actually install the package into ./node_modules/. So:
$ npm i
ssh: suppress known_hosts warnings
$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i keys/sshkey [email protected] Warning: Permanently added '192.168.15.31' (ECDSA) to the list of known hosts. Last login: Tue Dec 12 06:44:44 2017 from 192.168.15.35 $

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
SSH: ssh-keygen with no passphrase prompt
This will prevent the passphrase prompt from appearing and set the key-pair to be stored in plaintext (which of course carries all the disadvantages and risks of that):
ssh-keygen -b 2048 -t rsa -f /tmp/sshkey -q -N ""
Enabling SSH on a Raspberry Pi
$ touch /Volumes/boot/ssh
“For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. The content of the file does not matter; it could contain text, or nothing at all.If you have loaded Raspbian onto a blank SD card, you will have two partitions. The first one, which is the smaller one, is the boot partition. Place the file into this one.“ ~ https://www.raspberrypi.org/documentation/remote-access/ssh/README.md