Skip to content

Instantly share code, notes, and snippets.

View lando2319's full-sized avatar

Mike Land lando2319

View GitHub Profile
# See action
sudo du -hd1 /var 2>/dev/null | sort -h
# clear
sudo bash -lc 'export TMPDIR=/dev/shm; apt-get clean; rm -rf /var/cache/apt/archives/* /var/cache/apt/archives/partial/*; df -hT /'
I ran this to get rid of the accent marks when holding a key
```
mikeland@mac ~ % defaults write -g ApplePressAndHoldEnabled -bool false
```
git config --global credential.helper store
~/.git-credentials
// put in an async env, try catch
const transResponse = await fetch('https://api.ipify.org', {});
var transferBody = await transResponse.text();
console.log("IP from ipify", transferBody);
# TO Make a new Deployable user
# - google console > IAM > Service Account
# - Create Service account
# - go to 'manage details'
# - click on Keys
# - create a Key
# - Go back to IAM
# - click 'grant access'
# - enter same email address as service account
# to tar a dir
tar -czvf name-of-archive.tar.gz /path/to/directory
# to untar
tar -xzvf name-of-archive.tar.gz -C /path/to/destination/directory
If you do lots of UITests you'll need to periodically clear this out
~/Library/Developer/XCode/DerivedData/*
These are all the screenshots and other info from UI tests.
Clear this out every once in a while
Also DaisyDisk will show what's taking up so much space
on run {input, parameters}
tell application "Postman" to activate
tell application "System Events"
keystroke return using command down
end tell
return input
end run
open Shortcuts
in search type, "script editor"
should see, "run apple script"
select, make apple script, test
then to add quick key
click on info icon, tap keyboard shortcut and add combination
"plaid": "^9.7.0",
"plaidLegacy": "npm:plaid@^8.5.4",