Skip to content

Instantly share code, notes, and snippets.

View lando2319's full-sized avatar

Mike Land lando2319

View GitHub Profile
@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
{
"type": "chrome",
"request": "launch",
"name": "chrome lookup url",
"url": "http://localhost:3000/#/lookup",
"webRoot": "${workspaceFolder}/src/components"
}
,
export VERSIONS=$(git tag -l *-prerelease* | sed 's/-prerelease//')
#!/usr/bin/osascript
on run argv
tell application "This" to activate
tell application "System Events"
keystroke "/"
delay 1.2
keystroke "m"
tell application "this" to activate
tell application "System Events"
keystroke "/"
delay 1.2
keystroke "m"
delay 0.3
keystroke "e"
delay 1.1
keystroke space
lsof -i :5000
mikes-imac:~ mikeland$ lsof -i :5000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Google <num> mikeland 33u IPv4 0xcb550ff... 0t0 TCP localhost:60632->localhost:commplex-main (ESTABLISHED)
Google <num> mikeland 45u IPv4 0xcb550ff... 0t0 TCP localhost:60610->localhost:commplex-main (CLOSED)
node <num> mikeland 29u IPv4 0xcb550ff... 0t0 TCP localhost:commplex-main (LISTEN)
node <num> mikeland 44u IPv4 0xcb550ff... 0t0 TCP localhost:commplex-main->localhost:60632 (ESTABLISHED)
ls -l /media/lando2319/76E8-CACF/ | wc -l