Skip to content

Instantly share code, notes, and snippets.

@kelby
kelby / Bulletproofs.go
Created October 22, 2018 16:46
This project implements Bulletproofs in Go.
package bp
import (
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"encoding/binary"
"math/big"
"fmt"
@trandaison
trandaison / starUML.md
Last active December 8, 2025 21:14
Get full version of StarUML
@andrewrk
andrewrk / 1-brute-force.c
Created May 1, 2019 21:58
cleanup code techniques
int main(int argc, char **argv) {
struct SoundIo *soundio = soundio_create();
if (!soundio) {
fprintf(stderr, "out of memory\n");
return 1;
}
int err;
if ((err = soundio_connect(soundio))) {
fprintf(stderr, "unable to connect: %s\n", soundio_strerror(err));
soundio_destroy(soundio);
@Webreaper
Webreaper / docker-compose.yml
Last active December 8, 2025 21:10
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
#!/usr/bin/env python3
"""
Git Open - Extract and display Git remote URLs, open in browser
Author: Juan BC
Email: jbcabral@unc.edu.ar
License: BSD-3-Clause
Installation:
1. Copy this script to a directory in your PATH (e.g., ~/.local/bin/)
@Prakash4844
Prakash4844 / How to Setup endeavourOS for Gaming.md
Last active December 8, 2025 21:08
how to set up EndeavourOS for gaming on Linux.

How to set up EndeavourOS for gaming on Linux.

EndeavourOS

EndeavourOS styles itself as Terminal-centric Arch based Linux distribution, which means that you will be expected to use the Terminal for installation of everything from drivers, software, and kernels.

Step 1. Update The System.

Since EndeavourOS is classed as a rolling release distribution, this does mean that your system will be frequently updated, and from a gaming perspective, this will give you access to drivers and bug fixes faster than other distributions such as Ubuntu.

@detain
detain / response1.md
Created May 12, 2023 16:42
adding keyboard movement to three.js

To add WASD keyboard movement support to the webgl_loader_fbx.html file from the Three.js GitHub repository, you can make the following changes:

  1. First, add a controls variable to the JavaScript code near the top of the file, to store the instance of the THREE.OrbitControls object:
var camera, controls;
  1. Next, locate the init() function and add the following code after the camera variable is defined, to instantiate the OrbitControls object and set some initial values:
@meowabyte
meowabyte / 1-PATCH-README.md
Last active December 8, 2025 21:06
(PYLANCE/C++/...) Patch Microsoft extensions not working on VSCode Forks (VSCodium / Cursor / etc.)

Patcher for Microsoft Extensions

This script works for patching any Microsoft VSCode extension so it will work on it's forks including:

  • VSCodium
  • Cursor
  • Windsurf

This discussion motivated me to make this simple script: VSCodium#1641
Currently tested only on Pylance/VSCodium but as long as it's Microsoft's extension that blocks VSCode forks, it should be fine. The code uses fairly generic patterns to ensure it's cross-compatible with other extensions than the one I tested!

@nicolasdao
nicolasdao / terminal_emojis.md
Last active December 8, 2025 21:05
Terminal emojis. Keywords: terminal console symbol emoji emoticon icon
Emoji Name Text example
πŸš€ Rocket You're up
πŸ“¦ Package Installing additional dependencies...
βš“ Hook Running completion hooks...
πŸ“„ Document Generating README.md...
πŸŽ‰ Party Successfully created project hello-vue.
πŸ‘‰ Next Get started with the following commands:
βœ” Tick Task completed
✨ Magic Assembling project...
@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active December 8, 2025 21:02
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!