Skip to content

Instantly share code, notes, and snippets.

View sour-dani's full-sized avatar
🤡
there are 1,000 gigglebytes in a ticklebyte.

Sour Dani sour-dani

🤡
there are 1,000 gigglebytes in a ticklebyte.
View GitHub Profile
@echo off
net session >nul 2>&1
if %errorlevel% equ 0 (
echo Administrator Privileges Detected!
) else (
echo Administrator Priviledges Not Detected!
echo Right click this script and press "Run as Administrator".
pause
exit
@sour-dani
sour-dani / extract_assets.py
Created August 31, 2024 07:21
A simple script for finding unique assets in an decompiled asset file generated by Source 2 Viewer
filename = "portal2 readonly_tools_asset_info.txt"
destination = "maps.txt"
filters = [" ", "\"", "\n", "Filename"]
extension = ".vmap"
directory = "portal2_imported"
with open(filename, "r") as old, open(destination, "w") as new:
line = old.readline()
while line != "":
@sour-dani
sour-dani / ReadMe.md
Created February 17, 2024 16:26
Read Only Inspector Decorator

Read Only Inspector Decorator

Allows you to view data or GameObjects in the editor.

It's best practice to place it in it's folder, I.e. Utilities.

# Uses
[ReadOnlyInspector] public GameObject currentSoldier;
[ReadOnlyInspector] [SerializeField] MeshFilter currentModel, assembledModel;
@sour-dani
sour-dani / bareable_windows_software.md
Last active February 13, 2024 00:36
Software that makes Windows bearable

List of Software that replaces existing Windows Software or other functionality or extends Windows services

One-Time Payment

StartAllBack

  • https://www.startallback.com/
    • First Machine is $5.
    • Removes awful UI implementations in W11 and W10.
    • Restores useful form and functionality of Windows 7 era environment.
  • Removes terrible web search features.
@sour-dani
sour-dani / flash_chromebook_rom.sh
Last active November 2, 2023 21:04
flash chromebook rom by John Lewis
#!/bin/bash
#
# Script to flash custom firmware to Intel chipset based Chromebooks
#
readonly URL_PREFIX=https://johnlewis.ie/Chromebook-ROMs
readonly MAINTENANCE=no
declare FLASHROM_CMD MODEL AREA R_OR_W LEGACY_FILE
readonly OPTION_1="
1. Modify my Chromebook's RW_LEGACY slot.
@sour-dani
sour-dani / docker-compose.yml
Created October 27, 2023 02:32
docker compose for basic nginx file server
---
version: '3'
services:
nginx-autoindex:
container_name: nginx-autoindex
image: dceoy/nginx-autoindex:latest
ports:
- 80:80
volumes:
@sour-dani
sour-dani / twitter-actually-good-chrome.md
Last active February 12, 2024 05:52
List of my GreasyFork and ViolentMonkey Scripts
@sour-dani
sour-dani / pf2wserver16core.md
Last active March 30, 2025 20:39
PF2 on Windows Server 2016 (No Desktop Environment)

Windows Server 2016 Core

Install the OS

Make sure to select without a Desktop Environment! - Don't fear the command line!

Set admin password

Make sure the password has a capitol letter and number

Install prerequisites

You will need to open powershell to get this working.

@sour-dani
sour-dani / index.html
Last active September 2, 2024 02:10
Website template for using GitHub pages as a FastDL server.
<!doctype html>
<html>
<body>
<p>This is a blank webpage.</p>
</body>
</html>
@sour-dani
sour-dani / update_tf2v.bat
Created November 8, 2022 20:38
Batch Script to update TF2Vintage
@echo off
rem This is the location of the script
SET scriptdir=%~dp0
rem This checks to see if 7-Zip is installed
FOR /F "tokens=2* skip=2" %%a in ('reg query "HKEY_CURRENT_USER\Software\7-Zip" /v "Path"') do set zippath=%%b
reg query HKEY_CURRENT_USER\Software\7-Zip /v Path
if %ERRORLEVEL% EQU 0 (goto INSTALL) else (goto ERRORNOZIP)