Skip to content

Instantly share code, notes, and snippets.

View spookyuser's full-sized avatar
🌎
reading and writing

spookyuser

🌎
reading and writing
View GitHub Profile
@spookyuser
spookyuser / 2010.html
Created December 31, 2023 13:11
I asked chatgpt to make me a website with a 2010 aesthetic and showed it a picture of the stripe website in 2010
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2010 Style Web Page</title>
<style>
body {
font-family: Arial, sans-serif;
diff --git a/package.json b/package.json
index 18c05781ac63bb3a47e799309756e65ea88f8332..fd1fe26cc803844c4d6684e393a1099b7a04a5f0 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"engines": {
"node": ">=14.8.0"
},
- "types": "/types/mod.d.ts",
+ "types": "../types/mod.d.ts",
#! /bin/bash
# Manual stuff
# Install gcloud sdk: https://cloud.google.com/sdk/docs/install
# Install firebase tools: https://firebase.google.com/docs/cli#install_the_firebase_cli
# Login to firebase: firebase login
# Login to gcloud: gcloud auth login
# Global variables
DATE=$(date +%Y-%m-%d)
BACKUP_FOLDER=firebase-backup-$DATE
@spookyuser
spookyuser / big_firebase_backup.sh
Last active October 10, 2023 17:21
Big firebase backup
#! /bin/bash
# Manual stuff
# Install gcloud sdk: https://cloud.google.com/sdk/docs/install
# Install firebase tools: https://firebase.google.com/docs/cli#install_the_firebase_cli
# Login to firebase: firebase login
# Login to gcloud: gcloud auth login
GCLOUD_PROJECT_ID=xxxx
BACKUP_BUCKET=gs://backups-$GCLOUD_PROJECT_ID-firebase
@spookyuser
spookyuser / NEXT_TYPESCRIPT.json
Created October 9, 2023 09:17 — forked from anandmt/NEXT_TYPESCRIPT.json
VSCODE_SNIPPETS
{
"Next Typescript React Functional Component": {
"prefix": "fc",
"body": [
"import { FC } from 'react';",
"",
"interface ${TM_FILENAME_BASE}Props {",
" $1",
"}",
"",
@spookyuser
spookyuser / yt.fish
Created September 19, 2023 09:24
i love this
function mp4
set video_url $argv[1]
yt-dlp mp4 $video_url
end
function mp3
set video_url $argv[1]
yt-dlp -x --audio-format mp3 --audio-quality 0 $video_url
end
@spookyuser
spookyuser / detele_vercel_envs.sh
Last active September 14, 2023 14:51
kinda delete all vercel envs.sh
# Step 1: List all environment variables and store them in a variable
env_vars=$(vercel env ls)
# Step 2: Parse the output to get variable names (assuming the names are in the first column)
# This step can vary based on the actual output format of `vercel env ls`
env_var_names=$(echo "$env_vars" | awk '{if(NR>2) print $1}')
# Step 3: Loop through each environment variable name and remove it
for name in $env_var_names
do
@spookyuser
spookyuser / brew_uninstall.fish
Created July 27, 2023 08:54
Brew uninstall !! for fish !! yay !!
function brew
if test (count $argv) -gt 0
if test $argv[1] = "install"
/opt/homebrew/bin/brew $argv
if test $status -eq 0
echo $argv[2..-1] > /tmp/.brew_last_installed
end
return
else if test $argv[1] = "uninstall" -a $argv[2] = "!!"
if test -f /tmp/.brew_last_installed
@spookyuser
spookyuser / Dockerfile
Created October 3, 2022 10:06
Baking sentence transformers into docker
FROM python:3.10.7-slim as base
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
PIPENV_NOSPIN=true \
NUMBA_CACHE_DIR=/tmp \