Skip to content

Instantly share code, notes, and snippets.

View lando2319's full-sized avatar

Mike Land lando2319

View GitHub Profile
# 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",
@lando2319
lando2319 / gist:dfa3a81adaa14c0ad982e15dbadbec95
Created December 26, 2023 03:02
crontab backup macMini
# Backed up 2023-12-25
######
# CRONTAB
######
# also see `sudo crontab -e`
# In order to get the full screen to work
# crontab is doing screen opening while `sudo crontab` is doing everything else
# I could move everything from sudo crontab to crontab is I wanted
// Go to edit scheme, then Build > Post-actions
// Change 'Build From' from 'None' to <App Name>
// Add this to the text area
cd "${PROJECT_DIR}" ; agvtool next-version
@lando2319
lando2319 / firebaseFunctionsV2HTTPSEndpointWithoutExpress.js
Last active October 2, 2023 13:50
using hyphens/dashes in firebase-functions V2 HTTPS routes without express
const { onRequest } = require('firebase-functions/v2/https');
function say() {
return { hello : sayHello }
}
var sayHello = onRequest(
(req, res) => {
res.status(200).send("Hello, is it me you're looking for");
}
Setting for the auto import injection
javascript.suggest.autoImports