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
#!/bin/bash
# Install required packages
sudo apt update
sudo apt install -y \
avahi-daemon \
avahi-discover \
samba \
samba-common-bin \
diff --git a/lib/config.js b/lib/config.js
index 14628a23a32369116a76a512a95cc584315122f9..bca2e1dab978960e2f735306a9b69fffd7215652 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -8,7 +8,7 @@ const resolve_1 = require("./resolve");
const just_task_logger_1 = require("just-task-logger");
const enableTypeScript_1 = require("./enableTypeScript");
function resolveConfigFile(args) {
- for (const entry of [args.config, './just.config.js', './just-task.js', './just.config.ts', args.defaultConfig]) {
+ for (const entry of [args.config, './just.config.js', './just.config.cjs', './just-task.js', './just.config.ts', 'just.config.cts',args.defaultConfig]) {
@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