Skip to content

Instantly share code, notes, and snippets.

@sdwfrost
sdwfrost / counties.geojson
Created September 23, 2019 17:54
US Counties data in geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active January 19, 2025 22:52
set -e, -u, -o, -x pipefail explanation
@natrim
natrim / convert.sh
Last active January 19, 2025 22:50
Simple conversion script that converts Godot html5 export to gzipped version, with decompressing wasm and pck files using pako
#!/bin/bash
### usage ./convert.sh game
## where game is baseName of the export
if [ ! "$1" ]; then
read -p 'Game name: ' game
else
game="$1"
fi
@Zekfad
Zekfad / conventional-commits.md
Last active January 19, 2025 22:50
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@notnotrobby
notnotrobby / cgp.md
Last active January 19, 2025 22:47
List of free resources to study computer graphics programming.
@acarril
acarril / bootable-win-on-mac.md
Created November 18, 2022 17:49
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@obfusk
obfusk / apkrepotool-cert.py
Last active January 19, 2025 22:42
get APK cert fingerprint using apkrepotool
#!/usr/bin/env python3
import hashlib
import sys
import apkrepotool
from pathlib import Path
for apk in sys.argv[1:]:
certs, _ = apkrepotool.get_signing_certs(Path(apk))
@zacs
zacs / tars-lines.txt
Last active January 19, 2025 22:40
Every line spoken by TARS in Interstellar. Not many, but in case you want to train a NN or Markov chain.
How did you find this place?
You had the coordinates for this facility marked on your map. Where did you get them?
How did you find us?
All here, Mr Cooper. Plenty of slaves for my robot colony.
I have a cue light I can turn on when I’m joking, if you like.
You can use it to find your way back to the ship after I blow you out the airlock.
One hundred percent.
Ninety percent.
Absolute honesty isn’t always the most diplomatic, or safe form of communication with emotional beings.
Eight months to Mars, then counter-orbital slingshot around.
@natmchugh
natmchugh / copying-Paxton-fobs.md
Last active January 19, 2025 22:38
How to copy, read and write Paxton fobs and cards with an RFIDler

How to copy, read and write Paxton fobs and cards with an RFIDler

A newer version of this info is available at https://badcfe.org/how-to-paxton-with-rfidler/

Paxton fobs and readers are popular in the UK especially the Net2 system where the fobs look like this with a blue ring: Paxton Fob

Paxton readers often look like this:

Paxton Reader

@xrandox
xrandox / palworldlua.md
Last active January 19, 2025 22:35
Teh's Lua Modding in Palworld Tutorial

DISCLAIMER: I am not an expert on UE4SS or lua modding. In fact, Palworld is the first game I've done any UE4SS modding. I self-taught myself from the UE4 docs, discord convos and brute force. I might not always do things the best way. But I have made a handful of mods and I think I have at least a decent understanding of the basics and overall process, and that's what I'm going to try and cover in this guide.


Prologue | Ground Rules

Hi, so I'm Teh, as some of you might know me from Nexus, or also im.null on Discord.

Lets set some ground rules so you don't complain about me wasting your time:

  • This is a Lua-only tutorial. I will not be covering BPs, BP interoperability, asset swapping or anything of the like. This will be pure, untainted Lua 😎. Some concepts will definitely transfer over, but if you want BP stuff, this aint it
  • I'm not going to cover Lua basics, like syntax or