Skip to content

Instantly share code, notes, and snippets.

View trchopan's full-sized avatar
🎯
Focusing Langchain framework and building infrastructure for running Local LLMs

Chop Tr trchopan

🎯
Focusing Langchain framework and building infrastructure for running Local LLMs
View GitHub Profile
@trchopan
trchopan / .gitignore
Created February 7, 2024 01:58
py-gitignore
.env
service-account.json
/deployments/temp.yaml
.DS_Store
.vscode
service-account.json
*secret.yaml
.env.local
@trchopan
trchopan / Sample tradingview TSLA.json
Last active April 15, 2023 02:14
Sample tradingview TSLA.json
{
"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",
{
"userId": "user123456789",
"data": [
{
"timebasedId": 1652712554,
"weight": 78,
"bloodpressure": {
"lower": 80,
"upper": 120
}
#!/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
# Google Sheet Cell Formula for sluggify
=REGEXREPLACE(LOWER(REGEXREPLACE(A2, "[^\w\s-]", "")), "\s+", "-")
@trchopan
trchopan / sc
Last active April 4, 2020 14:40
#!/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
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"time"
)
@trchopan
trchopan / handleBatchChunkDelete.ts
Last active February 9, 2019 05:48
Delete batch in small chunks firestore
/**
* 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;
@trchopan
trchopan / _gitcmd
Last active March 14, 2019 06:15
My git custom commands for shorthand use with zsh autocomplete file
#compdef gitcmd
args="--help --oneline"
emojis="hammer sparkles bug books clipboard white_check_mark zap boom truck art"
_arguments "1: :(${args} ${emojis})"
@trchopan
trchopan / emojify
Created January 25, 2019 10:47
sed my git with emojis :D
#!/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" \