Skip to content

Instantly share code, notes, and snippets.

@jamesWalker55
jamesWalker55 / config.json
Last active December 13, 2022 03:19
Default config files generated after installing Automatic1111's WebUI, obtained at 2022-12-13 02:02 UTC
{
"samples_save": true,
"samples_format": "png",
"samples_filename_pattern": "",
"save_images_add_number": true,
"grid_save": true,
"grid_format": "png",
"grid_extended_filename": false,
"grid_only_if_multiple": true,
"grid_prevent_empty_spots": false,
@jamesWalker55
jamesWalker55 / Remove_Keyboard_Layout_en-US.ps1
Created July 24, 2022 16:01
This is a powershell script that automatically adds then removes "en-US" from the keyboard input methods list.
# This script solves the issue in this stackoverflow question:
# https://superuser.com/questions/1092246/how-to-prevent-windows-10-from-automatically-adding-keyboard-layouts-i-e-us-ke
# This method adds the en-US layout then removes it, ensuring that the layout is always removed from the taskbar
# I don't have a high enough reputation so I can't post this there, so here is the script:
# define the language to be removed
$LanguageToRemove = "en-US"
# get the current language list
$LangList = Get-WinUserLanguageList
@jamesWalker55
jamesWalker55 / autoeditor.js
Last active April 6, 2022 22:25 — forked from ishitatsuyuki/autoeditor.js
This script loads a JSON file produced by auto-editor, and skips regions of the video based on the JSON output. Place this script in your mpv scripts folder.
var timeObserver;
/** seek playback to the given second */
function seek_to(time) {
mp.set_property_number("time-pos", time);
}
function get_json_path() {
var video_path = mp.get_property("path");
return video_path.replace(/\.[^.]+$/, ".json");