Skip to content

Instantly share code, notes, and snippets.

@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active April 29, 2025 05:23
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@BinBashBanana
BinBashBanana / detectordetector.js
Created October 31, 2024 06:52
Web proxy detector detector script
/**
* Web proxy detector detector script by OlyB
* Last updated: 2024-10-30
* Currently supports Securly and GoGuardian detection methods
* Paste into browser console to use :)
*
* Securly detects using various query selectors and element content,
* While GoGuardian primarly uses the page's visible text content as well as script/img source attributes, which it checks against a list of terms.
* When detected, the script will log the matching selectors and/or terms.
*/

βš“ Hello, I'm Nathan!

Developer β€’ Adventurer β€’ Modern Pirate in the Making

I'm passionate about technology, sailing, and freedom.
I build open-source tools, contribute to inspiring projects, and chase the dream of living a life of exploration β€” both across the oceans and in the world of code. πŸŒŠπŸ‘¨β€πŸ’»

🌟 Current Focus:

  • Building The Coding Harbor β€” a community where coders and explorers meet
@boristane
boristane / list.ts
Created April 29, 2025 03:07
Hono API
import { createRoute, OpenAPIHono } from "@hono/zod-openapi";
import { openapiGetResponses } from "./openapi";
import { z } from "@hono/zod-openapi";
const app = new OpenAPIHono()
const possibleStatusCodes = [200, 401, 500] as const satisfies readonly number[];
const route = createRoute({
operationId: "resource-name.list",
method: "get",
@yuvadm
yuvadm / ffmpeg-over-ssh.sh
Created February 7, 2016 23:10
Media stream pipe ffmpeg over SSH
ssh [email protected] "ffmpeg -i $URL -c copy -f nut pipe:1" | ffplay -i pipe:0
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active April 29, 2025 04:52
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
@CobaltXII
CobaltXII / cross_compiling_sdl2.md
Last active April 29, 2025 04:51
Cross-Compiling SDL2 Programs for Windows from Linux

Cross-Compiling SDL2 Programs for Windows from Linux using MinGW-w64

I'll explain how to create programs that run on Windows (.exe files) from a Linux machine. I'll explain how to compile C and C++, and how to make 32- and 64-bit programs. I'll also explain how to use third-party libraries (we'll use SDL2 here), and how to distribute the programs. We'll use the MinGW-w64 toolchain to accomplish this.

Note: MinGW-w64 is a fork of its predecessor, MinGW. They are different. If you install MinGW-w64 in a different way than shown in this document, make sure you have MinGW-w64, not just MinGW!

Installing and Using a Cross-Compiler

@djfroofy
djfroofy / performance_results.txt
Created August 4, 2012 17:15
Lists vs. StringIO vs. Regular String Concat for building strings in Python
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [2]: from string_building_perf import *
In [3]: %timeit build_ul_list(100000)
10 loops, best of 3: 77.9 ms per loop
@EmadAdly
EmadAdly / install-android-sdk-in-ubuntu.md
Last active April 29, 2025 04:44
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
@rxaviers
rxaviers / gist:7360908
Last active April 29, 2025 04:41
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: