Skip to content

Instantly share code, notes, and snippets.

View nhalstead's full-sized avatar
👨‍💻
Something. Maybe cool

Noah Halstead nhalstead

👨‍💻
Something. Maybe cool
View GitHub Profile
@lukepighetti
lukepighetti / README.md
Last active July 9, 2024 00:40
pocketbase systemd
vim /lib/systemd/system/pocketbase.service
systemctl enable pocketbase
systemctl start pocketbase
systemctl status pocketbase
systemctl stop pocketbase
systemctl restart pocketbase
@MarvinJWendt
MarvinJWendt / Go Module Count by Domain
Created April 8, 2024 23:35
Count of all Go modules by domain as of 2024.04.09
Total go modules: 1288407
github.com: 1218651
gitlab.com: 12372
gitee.com: 8497
gopkg.in: 5746
go-micro.dev: 3494
github.hscsec.cn: 3209
github.phpd.cn: 2487
bitbucket.org: 2347
@bikram20
bikram20 / gist:4f4dbbaf5fcc874d5daee2e3b780d919
Last active November 3, 2023 23:46
Self-install kubernetes dashboard on DOKS using helm3
# Requires that you have helm3 installed on your local machine and cluster is accessible (kubeconfig).
# You do NOT need the following instructions, if you are comfortable using helm!!
# Reference: https://github.com/kubernetes/dashboard/releases/tag/v3.0.0-alpha0
# Helm Instructions: https://artifacthub.io/packages/helm/k8s-dashboard/kubernetes-dashboard
# Dashboard 3.0 alpha version is supported on k8s 1.27 only. However we will go ahead and install on 1.28.
# Verify your DOKS k8s version
@amandabot
amandabot / playwright-attach-to-browser-example.ts
Created March 9, 2023 02:08
Demonstrates how to attach playwright to a browser instance
// First run this to start your instance of Chromium. This could be done for Firefox or Edge as well.
// I use the ones that Playwright installs to "<user>\AppData\Local\ms-playwright" since I normally use Chrome, and
// I don't want the script to mess with my regular profile. The debug port is important to include.
// > cd "path\to\chromium\install"
// > .\chrome.exe --remote-debugging-port=9222
// Once the browser is running, use NodeJS or whatever flavor of Playwright (python, C#, etc) you are using to run the script and connect:
// > node your-compiled-script.js
// your-pre-compiled-script.ts
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@nidhi-canopas
nidhi-canopas / utility_functions.go
Last active November 11, 2022 02:27
A bunch of commonly used function with slice, string and time using Golang
package main
import (
"fmt"
"math/rand"
"regexp"
"strconv"
"strings"
"time"
)
@DarkGhostHunter
DarkGhostHunter / log-levels.csv
Last active March 12, 2022 04:38
Log levels table
Property / Log Level Debug Info Notice Warning Error Critical Alert Emergency
Disposable X
Statistical X X X X X X X
Relevant X X X X X X
Undersired X X X X X
Unstable X X X X
Stateful X X X
Unsecure X X
Unfixable X
@shuding
shuding / swr-suspense-journey.md
Created September 14, 2021 12:18
The Journey of SWR and Suspense

The Journey of SWR and Suspense

We are trying to combine the idea of SWR ("stale-while-revalidate") and React Suspense together, and this write-up covers all our findings from this journey.

Background

When React Hooks launched, people started to rely on useEffect to initiate data fetching:

function User () {
@davidfowl
davidfowl / MinimalAPIs.md
Last active June 28, 2024 17:42
Minimal APIs at a glance
@akhildevelops
akhildevelops / PokemonData.csv
Created June 22, 2021 16:42
PokemonData.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
Name,Type,Total,HP,Attack,Defense,Sp. Atk,Sp. Def,Speed,url,icon
Bulbasaur,"['Grass', 'Poison']",318,45,49,49,65,65,45,https://pokemondb.net/pokedex/bulbasaur,https://img.pokemondb.net/sprites/sword-shield/icon/bulbasaur.png
Ivysaur,"['Grass', 'Poison']",405,60,62,63,80,80,60,https://pokemondb.net/pokedex/ivysaur,https://img.pokemondb.net/sprites/sword-shield/icon/ivysaur.png
Venusaur,"['Grass', 'Poison']",525,80,82,83,100,100,80,https://pokemondb.net/pokedex/venusaur,https://img.pokemondb.net/sprites/sword-shield/icon/venusaur.png
Charmander,"['Fire', '']",309,39,52,43,60,50,65,https://pokemondb.net/pokedex/charmander,https://img.pokemondb.net/sprites/sword-shield/icon/charmander.png
Charmeleon,"['Fire', '']",405,58,64,58,80,65,80,https://pokemondb.net/pokedex/charmeleon,https://img.pokemondb.net/sprites/sword-shield/icon/charmeleon.png
Charizard,"['Fire', 'Flying']",534,78,84,78,109,85,100,https://pokemondb.net/pokedex/charizard,https://img.pokemondb.net/sprites/sword-shield/icon/charizard.png
Squirtle,"['W