Skip to content

Instantly share code, notes, and snippets.

@Xeyler
Xeyler / gist:8e9256653150af0c9d9921a6af09563b
Created March 8, 2024 23:38
pipenv install -r requirements error
Creating a Pipfile for this project...
Requirements file provided! Importing into Pipfile...
/usr/lib/python3.11/site-packages/pipenv/patched/pip/_vendor/urllib3/_collections.py:63: ResourceWarning: unclosed file <_io.FileIO name='/tmp/tmpdc3r3ud3' mode='rb+' closefd=True>
with self.lock:
ResourceWarning: Enable tracemalloc to get the object allocation traceback
WARNING:pipenv.patched.pip._vendor.urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=0.3)")': /pypi/attrs/json
WARNING:pipenv.patched.pip._vendor.urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=0.3)")': /pypi/certifi/json
WARNING:pipenv.patched.pip._vendor.urllib3.connectionpool:Retrying (Retry(total=0
@Xeyler
Xeyler / modify-level-dat.py
Created February 27, 2024 07:11
A python script for converting Minecraft survival multiplayer worlds to singleplayer
#!/usr/bin/python3
import sys
import amulet_nbt
from amulet_nbt import load, ListTag, DoubleTag
if len(sys.argv) < 2:
print(f"Usage: {sys.argv[0]} <level.dat> [playerdata/UUID.dat]")
print("If no playerdata file is specified, the player's position is set to the spawn location.")
exit(0)

WHY SHOULD I USE GIT?

As with many great things in life, Git began with a bit of creative destruction and fiery controversy.

The Linux kernel is an open source software project of fairly large scope. During the early years of the Linux kernel maintenance (1991–2002), changes to the software were passed around as patches and archived files. In 2002, the Linux kernel project began using a proprietary DVCS called BitKeeper.

In 2005, the relationship between the community that developed the Linux kernel and the commercial company that developed BitKeeper broke down, and the tool’s free-of-charge status was revoked. This prompted the Linux development community (and in particular Linus Torvalds, the creator of Linux) to develop their own tool based on some of the lessons they learned while using BitKeeper. Some of the goals of the new system were as follows:

  • Speed >
@admin = xeyler
repo [a-zA-Z0-9].*
C = @admin
RW+ = CREATOR
R = @all
# These git config settings help cgit render correctly
config cgit.owner = CREATOR
config cgit.defbranch = main
@Xeyler
Xeyler / kanji.txt
Last active December 6, 2023 13:20
Pokemon Mystery Dungeon DX Vocabulary + Kanji Dump
use std::io;
use std::io::Write;
static mut FIB_CACHE: Vec<(i128, i128)> = Vec::new();
fn main() {
unsafe {
FIB_CACHE.push((0, 0));
FIB_CACHE.push((1, 1));
}
@Xeyler
Xeyler / .config
Last active October 7, 2020 07:39
WM8650 Kernel .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.8.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-none-eabi-gcc (Arch Repository) 10.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100200
CONFIG_LD_VERSION=235000000
CONFIG_CLANG_VERSION=0
CONFIG_CC_HAS_ASM_GOTO=y
,CR1000 ,CR1000X ,CR200 ,CR3000 ,CR300 ,CR5000 ,CR6 ,CR800 ,CR9000 ,CR9000X ,GRANITE10 ,GRANITE6 ,GRANITE9
- ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,*
* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,*
/ ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,*
^ ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,*
+ ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,* ,*
< ,* ,* ,*
const int clkPin = 22;
const int wrPin = 23;
const int rdPin = 24;
const int csPin = 25;
const int addressPins[] = { 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45 };
const int dataPins[] = { 46, 47, 48, 49, 50, 51, 52, 53 };
void setup() {
for(int i = 0; i < 16; i++) {
pinMode(addressPins[i], OUTPUT);
@Xeyler
Xeyler / gbinput.txt
Created May 12, 2018 17:15
Sample data from Gameboy Printer connection
0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 252, 1, 253, 1, 253, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255, 255, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 2