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
.env | |
service-account.json | |
/deployments/temp.yaml | |
.DS_Store | |
.vscode | |
service-account.json | |
*secret.yaml | |
.env.local |
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
{ | |
"timestamp": [ | |
"2021-10-21T13:30:00.000Z", | |
"2021-10-22T13:30:00.000Z", | |
"2021-10-25T13:30:00.000Z", | |
"2021-10-26T13:30:00.000Z", | |
"2021-10-27T13:30:00.000Z", | |
"2021-10-28T13:30:00.000Z", | |
"2021-10-29T13:30:00.000Z", | |
"2021-11-01T13:30:00.000Z", |
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
{ | |
"userId": "user123456789", | |
"data": [ | |
{ | |
"timebasedId": 1652712554, | |
"weight": 78, | |
"bloodpressure": { | |
"lower": 80, | |
"upper": 120 | |
} |
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
#!/bin/bash | |
PUBLIC_IP=<PUBLIC_IP> | |
PUBLIC_PORT=<PUBLIC_PORT> | |
AUTH="<USER_NAME>:<PASSWORD>" | |
PORTS=( 2222 3333 ) | |
LOCAL_PORTS=( 22 3000 ) | |
logdir="/home/ubuntu/chisel/log" | |
mkdir -p $logdir |
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
# Google Sheet Cell Formula for sluggify | |
=REGEXREPLACE(LOWER(REGEXREPLACE(A2, "[^\w\s-]", "")), "\s+", "-") |
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
#!/bin/bash | |
# sc for running scrcpy | |
# sc +3 to increase volume 3 times | |
# sc -3 to decresse volume 3 times | |
# sc p to send play/pause | |
# sc yt <youtube_link> to play youtube video | |
if [ -z $1 ]; then | |
scrcpy -m 1024 -b 2M |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
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
/** | |
* Defensively program to split the batch in to chunks | |
*/ | |
export async function handleBatchChunkDelete( | |
chatRooms: FirebaseFirestore.QuerySnapshot, | |
chunkSize: number, | |
firestore: FirebaseFirestore.Firestore | |
) { | |
const chatRoomDeleteBatchs: FirebaseFirestore.WriteBatch[] = []; | |
let chatRoomIndex = 0; |
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
#compdef gitcmd | |
args="--help --oneline" | |
emojis="hammer sparkles bug books clipboard white_check_mark zap boom truck art" | |
_arguments "1: :(${args} ${emojis})" |
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
#!/bin/bash | |
sed -e "s/:hammer:/🔨/g" $1 \ | |
| sed "s/:sparkles:/✨/g" \ | |
| sed "s/:bug:/🐛/g" \ | |
| sed "s/:books:/📚/g" \ | |
| sed "s/:clipboard:/📋/g" \ | |
| sed "s/:white_check_mark:/✅/g" \ | |
| sed "s/:zap:/⚡️/g" \ | |
| sed "s/:boom:/💥/g" \ |
NewerOlder