This file contains hidden or 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
/*-----------------------------------------------------------*\ | |
| THIS IS JUST A BACKUP FOR MY SERVER MIGRATION... | | |
| EVERYTHING MIGHT BE WRONG. IT WORKED FOR ME | | |
| AFTER MUCH FIDDLING I MIGHT HAVE FORGOTTEN SOME DETAILS | | |
\*------------------------------------------------------------*/ | |
//tested with ubuntu 16.04 headless | |
//PIA setup | |
docker network create pia_network |
This file contains hidden or 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
# Kittens-Game-automation-and-tools | |
> ####Hey there my fellow KG addicts. :D | |
> ####I was pretty annoyed with wasting so much resources and all the grind, so that I at first looked for some scripts to automate some game aspects. | |
> ####I started to use the snippets from [this](https://redd.it/2eqlt5) Reddit thread, but then started to write my own Userscript based on the snippets. The Userscript (kittens.user.js) only handles the UI, the rest is done in kittens.js, which gets injected via the userscript. | |
> ####At this time there is nearly nothing of the code snippets left in my script and I integrated a simple UI:  | |
>> I use a modified CSS, the script only adds the stuff above the chat button | |
> #### Also I added a lot of features. | |
> ####I waited before posting the script, so that you get the script with the new UI. Everything *should* work, I use the script daily myself... |
This file contains hidden or 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
#!/bin/bash | |
set -x | |
# curl -L "https://gist.githubusercontent.com/Alistair1231/aaedcf19be1102ae3d1472407f1f380e/raw/.antigen-setup.sh" | bash && zsh | |
# curl -L "https://gist.githubusercontent.com/Alistair1231/aaedcf19be1102ae3d1472407f1f380e/raw/.antigen-setup.sh" | sudo bash && sudo zsh | |
case $(command -v apt pacman dnf zypper 2>/dev/null) in | |
*apt) sudo apt update; sudo apt install build-essential git zsh -y;; | |
*pacman) sudo pacman -Sy; sudo pacman -S --noconfirm --needed base-devel git zsh;; | |
*dnf) sudo dnf install make automake gcc gcc-c++ kernel-devel git zsh;; |
This file contains hidden or 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
version: "2.0" | |
services: | |
neko: | |
image: m1k1o/neko:latest | |
restart: always | |
shm_size: "1gb" | |
ports: | |
- "8080:8080" | |
- "59000-59100:59000-59100/udp" | |
environment: |
This file contains hidden or 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
# path to mkvpropedit | |
$propedit = "mkvpropedit" | |
# path where files are | |
$path="D:\!USENET\!Anime\Hunter X Hunter (2011)" | |
#substring vals | |
$skipCharacters=14 | |
$saveCharacters=28 | |
#example: skip 14, save 28 |
This file contains hidden or 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
# Split MP3/M4A/M4B files into 5 min parts | |
# Known Issues: | |
# recursive folders don't work. seperate files I also screwed up. Just give it 1 folder, or use _splitAll.ps1 for multiple folders. | |
# afterwards you can search in the folder with everything (https://www.voidtools.com/support/everything/) | |
# like this : "D:\!!Downloads\!audiobook\" !_ to find everything without an underscore (_) which should most likely only be the | |
# original files and delete them | |
# if windows refuses to execute the scripts try something like this in an admin powershell (Win+X A): | |
# Set-ExecutionPolicy Unrestricted | |
for ($i = 0; $i -lt $args.Count; $i++) { |
This file contains hidden or 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
$dateShort=$(Get-Date -F "yyyyMMdd") | |
$dateLong=$(Get-Date -F "dd.MM.yyyy") | |
$folderName=$(split-path -leaf $(get-location)) | |
new-item -path . -name "$folderName-$dateShort-notes.md"-ItemType "file" -Value "# $folderName Notes: $dateLong`r`n" |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com] | |
"DefaultPackPath"="D:\\Games\\" |
make bookmark with following content
javascript: (function (s, url = 'https://www.deepl.com/translator#___/___/___') {
let valsRaw = s.split(" ");
let vals = [];
for (let i = 0; i < 2; i++) {
vals.push(valsRaw.shift());
}
vals.push("");
OlderNewer