This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Version 1.1.1 | |
set picturePath="%UserProfile%\Pictures\GTA Snapmatic" | |
set convertScript="%UserProfile%\Pictures\GTA Snapmatic\ConvertSnapmaticToJpg.ps1" | |
md %picturePath% | |
echo Copying Snapmatic Pictures to Pictures Folder | |
echo --------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Elearning Notification Hider | |
// @namespace Piepmatz | |
// @version 1.0.1 | |
// @description Hide the notification bell on the elearning platform | |
// @author Tim 'Piepmatz' Hesse | |
// @grant none | |
// @include https://elearning.uni-oldenburg.de/* | |
// @run-at document-end | |
// @downloadURL https://gist.github.com/derPiepmatz/7fd138358c215cb57c657bbad3273bc5/raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document url-prefix("https://www.overleaf.com/") { | |
.pdf { | |
background-color: #151515; | |
} | |
.pdfjs-viewer { | |
filter: invert(0.89); | |
} | |
.pdf-viewer .pdfjs-viewer canvas { | |
box-shadow: 0 0 10px rgba(255,255,255,.5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ESC = [char]27 | |
switch ($env:ComputerName) { | |
"TIMSYOGA" {$computerName = "TY"} | |
"TIMSTOWER" {$computerName = "TT"} | |
default {$computerName = $env:ComputerName} | |
} | |
function ExitCode { | |
if (-not($?)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {createServer, AddressInfo} from "net"; | |
/** | |
* Utility function to return a free port. | |
* | |
* Uses dummy server that listens to port 0 to let the OS assign the server a | |
* port. | |
* Then the server will be closed and the now open port will be returned. | |
* | |
* @return by OS assigned, free port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"emojis": { | |
"100": "💯", | |
"1234": "🔢", | |
">:(": "😠", | |
">:-(": "😠", | |
">=(": "😠", | |
">=-(": "😠", | |
":\")": "😊", | |
":-\")": "😊", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Nexus Mods - right/left arrow pagination | |
// @match https://www.nexusmods.com/* | |
// @grant none | |
// @version 1.0 | |
// @author Tim 'Piepmatz' Hesse | |
// @description Add event listeners to the right and left buttons for the pagination to allow to page with the arrow keys | |
// ==/UserScript== | |
const ARROW_KEYS = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nu | |
# Constants | |
const STEAM_DIR = 'steam/dir' | |
const USER_ID = 'userid' | |
const TARGET_DIR = 'target/dir' | |
# Function to get the current date | |
def get-date [] { | |
date now | format date '%Y-%m-%d' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Append to config.nu | |
# Config Updates | |
$env.config.buffer_editor = "micro" | |
# Aliases | |
alias clip = clip.exe | |
# Starship | |
source ~/.cache/starship/init.nu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance Force | |
#HotIf WinActive("Pal") | |
; Clone Right Modifier to Left Ones | |
RCtrl::LCtrl | |
RShift::LShift | |
; Remap Numpad Numbers (0-9) to Their Top-Row Counterparts | |
Numpad0::0 | |
Numpad1::1 |
OlderNewer