Skip to content

Instantly share code, notes, and snippets.

View sugoidogo's full-sized avatar

SugoiDogo sugoidogo

View GitHub Profile
@sugoidogo
sugoidogo / DisableUpdatePopup.cmd
Last active July 23, 2018 01:27
Disable Windows 10 Update Notification Popup
@echo off
@REM [This code block detects if the script is running with ADMIN PRIVILEGES. If it isn't it pauses, and then quits.]echo OFF
cls
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
ECHO Administrator PRIVILEGES Detected!
) ELSE (
echo ######## ######## ######## ####### ########
echo ## ## ## ## ## ## ## ## ##
echo ## ## ## ## ## ## ## ## ##
@sugoidogo
sugoidogo / DisableSuperPreFetch.reg
Created August 8, 2018 23:04
Disable Superfetch and Prefetch on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000000
"EnableSuperfetcher"=dword:00000000
@sugoidogo
sugoidogo / EnableSuperPreFetch.reg
Created August 8, 2018 23:05
Enable Superfetch and Prefetch on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003
"EnableSuperfetcher"=dword:00000003
[Unit]
Description=%i Screen Daemon
[Service]
ExecStart=screen -DmS %i %i
[Unit]
Description=%i Xpra HTML5 Daemon
[Service]
ExecStart=xpra start --bind-tcp=0.0.0.0:8080 --start=%i

UMF Installer

UMF (Universal Mod Format) is the format used by UMM (Universal Mod Manager) for mods to be shipped in and installed from. "Mods" in this case aren't neccesarily just game mods, but can also be plugins for any other program which has a well known mod/plugin system, whether that be developer or community made. UMF specifies the location of metadata files in an archive, but does not specify the type of archive itself. UMM uses libname to mount all archives and so supports any archive which is also supported by libname.

Terminology

Mod (plugin, shader, loader): A file which changes the behavior or appearance of a program when installed.
Program (prog, game): The program which is changed by the mod. Games are programs too.
Archive (zip, 7zip, rar): A file which contains other files. A zip file is an example of an archive.
Root (top folder, root dir): The top level of a directory tree. This is the folder that contains all other folders. For example, when you open a zip file, the firs

@sugoidogo
sugoidogo / interfaces
Created August 19, 2020 06:57
basic bridge for kvm
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
iface bro inet6 dhcp
#!/bin/bash -e
# wget -qO- https://gist.github.com/josephsmendoza/c9edc65c1b0b9d8423992d0531825a65/raw/ | sudo bash
GIST_USER=josephsmendoza
GIST_ID=c9edc65c1b0b9d8423992d0531825a65
wget -qO- https://packages.openmediavault.org/public/archive.key | apt-key add -
cd /etc/apt/sources.list.d
#!/usr/bin/env sh
set -e
# wget -qO- https://gist.github.com/josephsmendoza/ee7bf2c66a36e2baf40c87046b74501d/raw/ | sudo sh
GIST_USER=josephsmendoza
GIST_ID=ee7bf2c66a36e2baf40c87046b74501d
cd /opt
wget -qO- https://api.github.com/repos/HaxeFoundation/haxe/releases/latest \
| grep browser_download_url \
| grep linux64 \
#!/usr/bin/env sh
set -e
# wget -qO- https://gist.github.com/josephsmendoza/f6b2c9f4bee531a18dded383bbf16eef/raw/ | sudo sh
GIST_USER=josephsmendoza
GIST_ID=f6b2c9f4bee531a18dded383bbf16eef
cd /etc/apt/sources.list.d/
echo "deb https://download.webmin.com/download/repository sarge contrib" > webmin.list
wget -qO- https://download.webmin.com/jcameron-key.asc | apt-key add -
apt update