Skip to content

Instantly share code, notes, and snippets.

View joe-oli's full-sized avatar
💭
what the flock? no status to report, i am not a facebook junkie.

joe-oli

💭
what the flock? no status to report, i am not a facebook junkie.
View GitHub Profile
@joe-oli
joe-oli / git-cleanup.md
Created October 30, 2026 06:09
git cleanup or check integrity

You can run below commands in any repository, but keep a couple of performance and safety caveats in mind:

1. git fsck --full (Completely Safe Anytime)

  • What it does: Deep-dives into your entire object database, verifies checksums, checks dangling objects, and ensures tree integrity.
  • Can you run it anytime? Yes. It is strictly read-only and will never alter or destroy your data. It's great for health checks if you suspect disk corruption or after recovering from a crash.

2. git gc --prune=now --aggressive (Use with Care on Large Repos)

  • What it does: Packs loose files into optimized packfiles, strips out unreachable/dangling objects immediately (--prune=now), and aggressively recompresses everything (--aggressive).
@joe-oli
joe-oli / port_blocker.md
Created October 24, 2026 03:17
Find who is listening on a port and kill the process

First identify the listener, then inspect its process. In PowerShell:

Get-NetTCPConnection -State Listen -LocalPort 5173 |
    Select-Object LocalAddress, LocalPort, OwningProcess

Then use the returned PID:

@joe-oli
joe-oli / Vite-CLI-no-prompts.txt
Created September 13, 2026 07:11
Vite CLI with typescript no prompts
PS C:\projects\temp> npm create vite@latest my-app -- --template react-ts --no-interactive
> npx
> create-vite my-app --template react-ts --no-interactive
│
◇ Scaffolding project in C:\PROJECTS\temp\my-app...
│
└ Done. Now run:
@joe-oli
joe-oli / 101-ideation.md
Created September 8, 2026 06:00
Ideation prompt

Q. I don't like GitHub gists interface, it's good as a storage area but search, display is hit and miss, so i thought of designing my curated interface and at the same time learn its api. Let's plan.

A.

Q.

A.

@joe-oli
joe-oli / list-public-repos.md
Last active September 7, 2026 01:57
list public repos
~$ curl -s "https://api.github.com/users/joe-oli/repos?per_page=100" | grep '"name":'
"name": "demo-ReactTable-v6.x",
"name": "dynamic-form-app",
"name": "fakeJson",
  "name": "MIT License",
"name": "hello-world",
"name": "kendra69",

"name": "modal-101",

@joe-oli
joe-oli / ipanema.txt
Created August 20, 2026 12:17
Garota de Ipanema
-Intro-
|4/4 DM9 | EbM9 EbM9 NC | DM9 | EbM9 EbM9 NC |
-Section A-
| DM9 | DM9 | E9 | E9 |
| Em9 | G/A A9 | DM9 | DM9 G/A |
-Section A'-
| DM9 | | E9 | |
@joe-oli
joe-oli / bootstrap5-colors.html
Created March 21, 2026 04:19
Bootstrap named colors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap 5 — Named Theme Colors</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@joe-oli
joe-oli / 2-discovery-results.sh
Last active January 24, 2026 01:43
Proxmox - environment discovery
===== qm list =====
VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
100 debian13-xfce stopped 6144 32.00 0
150 TEMPLATE-debian13-minimal stopped 6144 32.00 0
200 win11-vm running 12288 80.00 348854
250 TEMPLATE-Win11-Baseline-Jan2026 stopped 12288 80.00 0
251 TEMPLATE-Win11-Baseline-WSL2 stopped 12288 80.00 0
@joe-oli
joe-oli / curl-vs-wget.md
Created January 18, 2026 14:41
curl vs wget

wget and curl both fetch data over the network, but they have different design goals. The simplest way to remember it:

wget = download files curl = talk to services

Below is the clean mental model, then details.


@joe-oli
joe-oli / DOTNET_FX_Version.ps1
Created January 13, 2026 07:36
.NET Framework version
Get-ItemProperty `
"HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" `
-Name Release