Skip to content

Instantly share code, notes, and snippets.

View lando2319's full-sized avatar

Mike Land lando2319

View GitHub Profile
{
"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
#!/bin/bash
echo "Updating Release State (.releaseState.json) with version $BACKEND_VERSION, with message $RELEASE_MESSAGE"
echo "$(sed '$d' .releaseState.json),
\"$BACKEND_VERSION\":{
\"message\":\"$RELEASE_MESSAGE\",
\"sandbox\":true,
\"production\":false
}
GITHUB_URL="https://api.github.com/repos/ChangEdApps/changed-javascript/pulls/$PULL_REQUEST"
# echo $GITHUB_URL
PULL_REQUEST_MERGED=$(curl -H "Authorization: Bearer $autoCommitterPAT" $GITHUB_URL 2> /dev/null | grep -oE '"merged": (true|false)' | cut -d " " -f 2 )
GITHUB_URL="https://api.github.com/repos/ChangEdApps/changed-javascript/commits/30af705280793c3acb94f70bc02c6fd0163d357b"
# echo $GITHUB_URL
PULL_REQUEST_MERGED=$(curl -H "Authorization: Bearer $autoCommitterPAT" $GITHUB_URL)
Circle()
.fill(.white)
.frame(height: shelfHeight / 2, alignment: .center)
.opacity(isAnimating ? 1.0 : 0.0)
.animation(Animation.linear(duration: 1).repeatForever(), value: isAnimating)
.onAppear{
isAnimating.toggle()
}
.allowsHitTesting(false)
// .offset(CGSize(width: -metrics.size.width * 0.40, height: -shelfHeight * 9.5)) // Back
@lando2319
lando2319 / build script
Created December 1, 2022 11:15
cp a file, prepend, make readonly... incredible
#!/bin/bash
# build script for savingsCalculator
adminDir=web-apps/changed-admin-app/functions/buildFunctions/
webDir=web-apps/changed-web-app/functions/buildFunctions/
adminFile=web-apps/changed-admin-app/functions/buildFunctions/savingsCalculator.js
webFile=web-apps/changed-web-app/functions/buildFunctions/savingsCalculator.js