This file contains hidden or 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
npm init -y | |
npm install -D eslint prettier husky lint-staged | |
npx eslint --init | |
npx husky install | |
npm pkg set scripts.prepare="husky install" | |
npx husky add .husky/pre-commit "npx lint-staged" | |
echo '{ | |
"*.js": ["prettier --write", "eslint --fix"] |
This file contains hidden or 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 ( | |
"fmt" | |
"github.com/shirou/gopsutil/v3/cpu" | |
"github.com/shirou/gopsutil/v3/mem" | |
"time" | |
) | |
func main() { |
This file contains hidden or 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 | |
echo "Cleaning up existing Docker Compose instances..." | |
# stop and remove all containers, networks, and volumes | |
docker compose down --remove-orphans --volumes | |
echo "Removing Docker images..." | |
# remove images built by docker-compose |
This file contains hidden or 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 | |
# Usage: ./run_c.sh <source_file.c> [optimization_flag] | |
# Example: ./run_c.sh main.c -O3 | |
# Check if source file is provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <source_file.c> [optimization_flag]" | |
exit 1 | |
fi |
This file contains hidden or 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
import os | |
import firebase_admin | |
from firebase_admin import credentials, firestore | |
import csv | |
cred = credentials.Certificate("key.json") | |
firebase_admin.initialize_app(cred) | |
db = firestore.client() |