Skip to content

Instantly share code, notes, and snippets.

View downthecrop's full-sized avatar

downthecrop downthecrop

View GitHub Profile
@downthecrop
downthecrop / readme.md
Last active March 2, 2019 05:49
League of Legends Game Page and Home Updates
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@downthecrop
downthecrop / poolside.fm tracks
Created July 2, 2019 04:27 — forked from brotime/poolside.fm tracks
poolside.fm tracks as of 01.03.16
https://soundcloud.com/braxe1/3-voices
https://nextpreview.soundcloud.com/futureclassic/touch-sensitive-pizza-guy-3
https://soundcloud.com/foolsgoldrecs/grown-up-explicit
https://soundcloud.com/bondax/no-diggity
https://soundcloud.com/lordrecollectif/vanderway-early
https://soundcloud.com/electrocookie/metric-help-im-alive-the-twelves-remix
https://soundcloud.com/timsweeney/paradisbisrecords
https://soundcloud.com/itsindoorsoutdoors/cruiser-kidnap-me
https://soundcloud.com/greatgoodfineok/youre-the-one-for-me
https://soundcloud.com/oxfordsounds/goldroom-feat-chela-fifteen
@downthecrop
downthecrop / rc.xml
Created August 23, 2019 02:54
A Better Aero Snap with Openbox
<!-- Window Tiling: Emulates Windows 7 Snap feature JASON CAVETT -->
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Right">
@downthecrop
downthecrop / dtc.openbox.conf
Last active October 23, 2023 17:46
Useful links for openbox/tint2/urxvt
Openbox
Tint2
Urxvt
lxappearance
breeze dark
for system-wide mouse configuration, one can edit /usr/share/icons/default/index.theme
tint2conf is the customizer
sudo xbps-query -Rs rxvt
@downthecrop
downthecrop / QEMUV2 not runnable
Created November 12, 2019 04:34
Some improvements
### Install packages.
sudo apt-get update
sudo apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-bin qemu-system qemu-utils python3 python3-pip git qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager ovmf
##Get macOS
git clone https://github.com/foxlet/macOS-Simple-KVM.git
cd macOS-Simple-KVM
git clone https://gitlab.com/driverctl/driverctl
./jumpstart.sh --high-sierra
@downthecrop
downthecrop / start-macOS.sh
Created November 12, 2019 21:23
Handoff the PCI to VM
cd ~/macOS-Simple-KVM/
sudo ./driverctl/driverctl --nosave set-override 0000:00:14.0 vfio-pci
sudo ./basic.sh
@downthecrop
downthecrop / LockBackground.html
Last active March 4, 2020 09:41
AndroidLeopard 12 Hour Clock LockHTML
<html>
<head>
<title>Android Leopard</title>
<link rel="stylesheet" href="css/style.css">
<script src="https://kit.fontawesome.com/c94c624931.js"></script>
<script src="config.js"></script>
</head>
<body id="body" onload="updateTime();">
<div id="container" class="container">
<div id="mainTime"><span id="time" class="time">14:58</span></div>
@downthecrop
downthecrop / Client-Server.bat
Last active June 7, 2020 07:38
Run client and server for rs2006ps on Windows
:: Launches both the Client and Server for rs2006sp
:: Place inside your main folder with Client and Server directories
start /min cmd /c "cd %cd%\Client && java -jar Client.jar"
start /min cmd /c "cd %cd%\Server && java -Xmx1024m -jar Server.jar"
@downthecrop
downthecrop / calcHash.kt
Created August 11, 2020 05:07
kotlin md5 to hex
private fun File.calcHash(algorithm: String = "MD5", bufferSize: Int = 1024): String {
this.inputStream().use { input ->
val buffer = ByteArray(bufferSize)
val digest = MessageDigest.getInstance(algorithm)
read@ while (true) {
when (val bytesRead = input.read(buffer)) {
-1 -> break@read
else -> digest.update(buffer, 0, bytesRead)
}