This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application "Postman" to activate | |
tell application "System Events" | |
keystroke return using command down | |
end tell | |
return input | |
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"plaid": "^9.7.0", | |
"plaidLegacy": "npm:plaid@^8.5.4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} |
NewerOlder