Skip to content

Instantly share code, notes, and snippets.

View A248's full-sized avatar
💭
Nonblocking is worth the effort

A248 🇵🇸🇪🇭 A248

💭
Nonblocking is worth the effort
  • Washington, D.C.
View GitHub Profile
#Content is from a csv file which is in the format ID,buy-price,sell-price for items and just the name for a category
import csv
counter = 0
completed = ""
categories = 0
items = 0
filename = input("Enter .csv filename: ") + ".csv"
with open(filename) as csvfile:
creader = csv.reader(csvfile)
@bmaupin
bmaupin / free-database-hosting.md
Last active May 13, 2025 10:49
Free database hosting
@ffledgling
ffledgling / libvirt-install.md
Created March 4, 2018 20:52
Compile a custom libvirt+libvirt-python+virt-manager stack

Download and install a custom version of libvirt/virsh

CUSTOM_ROOT=/home/ajaisingh/n4/nested-vm/

mkdir -p $CUSTOM_ROOT/src
wget https://libvirt.org/sources/libvirt-4.0.0.tar.xz

# Compiling a new version of libvirt (v4.0.0), requires libnl-devel, libnl-route, libyajl-devel, libdevmapper-devel

sudo apt-get install libnl-route-3-dev
@gregkrsak
gregkrsak / update-submodules
Created February 4, 2014 20:49
A small Bash script to update git submodules.
#!/bin/bash
#
# update-submodules
#
# Updates all submodules of a git project.
# by Greg Krsak <[email protected]>, Feb. 4, 2014
#
read -r -d '' USAGE << EOF
Usage: update-submodules [<options>]
@aadnk
aadnk / EntityHider.java
Last active April 14, 2025 06:07
Hide or show entities
package com.comphenix.example;
import static com.comphenix.protocol.PacketType.Play.Server.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Map;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;