Skip to content

Instantly share code, notes, and snippets.

@TangentFoxy
TangentFoxy / file_size_stats.lua
Last active January 12, 2025 13:44
Generate statistics on file sizes within a directory. (Lua, using LuaFilesystem.)
#!/usr/bin/env luajit
-- THIS IS BEING MAINTAINED AT https://github.com/TangentFoxy/.lua-files
-- GO THERE INSTEAD OF DOWNLOADING THIS FILE DIRECTLY.
-- Primarily written by ChatGPT using GPT-3.5, with corrections and modifications by me.
-- Do whatever the hell you want with it.
local lfs = require "lfs"
@KokoseiJ
KokoseiJ / snowflake.py
Last active December 20, 2023 19:38
Customizable and portable Snowflake generator
import os
import time
from math import floor
class SnowflakeGenerator:
def __init__(self, mid=None, time_start=1288834974657):
self.time_start = time_start
self.mid = mid if mid else os.getpid()
@xero
xero / miasma.Xcolors
Created June 5, 2023 19:10
miasma “fall” colorscheme
// ┏┏┓o┳━┓┓━┓┏┏┓┳━┓
// ┃┃┃┃┃━┫┗━┓┃┃┃┃━┫
// ┛ ┇┇┛ ┇━━┛┛ ┇┛ ┇
// miasma by xero (https://x-e.ro)
*.foreground: #c2c2b0
*.background: #222222
*.cursorColor: #5f875f
! black
*.color0: #222222
@chsami
chsami / Mouse.java
Created May 20, 2023 21:21
VirtualMouse java
package net.runelite.client;
import lombok.Setter;
import net.runelite.api.Client;
import java.awt.*;
import java.awt.event.MouseEvent;
public class Mouse {
@TameemS
TameemS / debloatNox.md
Last active June 6, 2025 00:24 — forked from Log1x/debloatNox.md
Debloating & Optimizing Nox (Updated)

More of my guides: Debloating MEMu - Debloating LDPlayer

Log1x's guide is pretty outdated, so I have made an updated version

Debloating Nox (Updated)

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

This guide is mainly targeted at Android 12. It may work on Android 5, 7 and 9 inst

@80sVectorz
80sVectorz / rscan.js
Last active August 3, 2023 11:07
Recursive scan terminal command for outputing an ascii tree representation of the network.
/*
-- RSCAN --
VERSION 2.5
Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/
Recursive scan terminal command for displaying an ascii art tree representation of the full network:
rscan --detailed
-------------------Network Tree-------------------|-|Balance|-|Hack Chance|-|Security LVL|-|Hacking LVL|-|Root?|
home----------------------------------------------| $701.293m 100% 1% 1 [X]
├─n00dles | $2.984k 18% 83% 1 [X]
@stuaxo
stuaxo / download_file.sh
Last active July 16, 2023 00:56
Download a file using intermediate .part file and automatically resume.
#!/bin/bash
# Function to handle the download
download_file() {
local delete_flag="${1:-false}"
local url="$2"
local filename="$3"
# Extract filename from URL if not provided
if [ -z "$filename" ]; then
@stuaxo
stuaxo / download-ow1.9.sh
Last active July 16, 2023 00:57
Install openwatcom-1.9 on Linux
#!/bin/bash
#
# Download open watcom 1.9 from sourceforge.
#
# Requires curl or wget
FILENAME="open-watcom-c-linux-1.9"
URL="https://master.dl.sourceforge.net/project/openwatcom/open-watcom-1.9/$FILENAME"
# Check if curl is available
if command -v curl >/dev/null 2>&1; then
@hyperupcall
hyperupcall / settings.jsonc
Last active June 26, 2025 09:47
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@JoeBlakeB
JoeBlakeB / kotlinRun.sh
Created May 10, 2023 10:19
A simple bash script to build and run a single kotlin file with build cache to only re compile if source file changes.
#!/bin/bash
#
# A simple bash script to build and run a single kotlin file
# with build cache to only re compile if source file changes
#
# Copyright (C) 2023 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
if [[ $1 == "-h" || $1 == "--help" ]]; then