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 ## ## ## ## ## ## ## ## ##
plugins {
id 'org.beryx.runtime' version 'CHANGEME' //https://plugins.gradle.org/plugin/org.beryx.runtime
}
sourceSets.main.java.srcDirs = ['src']
mainClassName = 'josephsmendoza.CHANGEME.Cli'
repositories {
jcenter()
mavenCentral()
google()
}
@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

#!/bin/bash
set -e
# wget -qO- https://gist.github.com/sugoidogo/1df06591d9dc4a8852fcbe2dd9757985/raw/ | bash
GIST_USER=sugoidogo
GIST_ID=1df06591d9dc4a8852fcbe2dd9757985
GIST=https://gist.github.com/$GIST_USER/$GIST_ID/raw
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
function download { wget $* || curl -fLO $*; }
#!/bin/bash
set -e
# wget -qO- https://gist.github.com/josephsmendoza/d3eba5c4360548fdabb807f8715a9adf/raw/ | bash
source /etc/os-release
GIST_USER=josephsmendoza
GIST_ID=d3eba5c4360548fdabb807f8715a9adf
wget -qO- https://xpra.org/gpg.asc | apt-key add -
cd /etc/apt/sources.list.d
#!/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