Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🌿
imagine being mad, touch grass

netop://ウィビ NetOpWibby

🌿
imagine being mad, touch grass
View GitHub Profile
@ugjka
ugjka / routerhosts.go
Last active November 2, 2025 18:32
routerhosts.go
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"net/http"
"os"
"os/exec"
- name: Overprovision like the pros'
hosts: all
tasks:
- name: Install early OOM killer and zram
ansible.builtin.apt:
pkg:
- earlyoom
- zram-tools
- name: Configure early OOM killer
ansible.builtin.lineinfile:
console.log.toString() // Returns 'function log() { [native code] }'
const consoleHandler = {
get(target, property, receiver) {
if (property === 'log') {
return function(...args) {
const newArgs = ['[LOG]:', ...args];
return Reflect.apply(target[property], target, newArgs);
};
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active November 3, 2025 16:30
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@avestura
avestura / delete-from-users-where-location-iran.md
Last active October 30, 2025 10:23
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.

You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@rebane2001
rebane2001 / glass-with-controls.html
Last active October 31, 2025 17:19
glass effect test css/svg thing (messy) - demo: https://codepen.io/rebane2001/details/OPVQXMv
<div style="position:absolute;top:-999px;left:-999px">
<svg
id="effectSvg"
width="200"
height="200"
viewBox="0 0 200 200"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">
@jasonsnell
jasonsnell / jobs.txt
Last active June 3, 2025 01:13
Steve Jobs memo regarding Mac clones
Subject: Apple Acquires Power Computing
Sent: 9/2/97 7:34 AM
From: Steve Jobs, sjobs@apple.com
Reply-To: response@apple.com
To: apple_employees$@group.apple.com
Today Apple is acquiring Power Computing for Apple common stock valued
at $100 million.
Let me explain why we are doing this:
@Maxiviper117
Maxiviper117 / CSRFProtectionSveltekit.md
Last active October 31, 2025 10:35
Guide: Implementing CSRF Protection in SvelteKit

Guide: CSRF Protection in SvelteKit

Cross Site Request Forgery (CSRF) is when a browser sends a state changing request to your app without the user intending to do so. SvelteKit already ships with CSRF checks based on the request origin. In most cases you should keep that. Use a custom hook only when you need finer control.


1. Configure SvelteKit CSRF

📂 svelte.config.ts

@Maxiviper117
Maxiviper117 / Sveltekit_CRSF_Token_Setup.md
Created February 28, 2025 08:58
CSRF Token setup in Sveltekit

CSRF Token Setup Using Root Layout’s Server Load Function

This guide shows you how to generate a CSRF token once in your root layout so that every page automatically receives the token, reducing duplication and ensuring consistency across your SvelteKit app.


1. Generate and Store the CSRF Token in +layout.server.ts

Create (or update) your root layout server file (+layout.server.ts) to check for an existing CSRF token in cookies. If not present, generate a new token using Node’s crypto module and set it in a cookie: