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
[ | |
{ | |
"search": { | |
"track": null, | |
"artist": null, | |
"album": "(.*) - Single", | |
"albumArtist": null | |
}, | |
"replace": { | |
"track": null, |
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
#Include export.ahk | |
#Include %A_ScriptDir% | |
#Include graphics.ahk | |
CoordMode, Mouse | |
global timeout := 10 | |
global oGraphicSearch := new graphicsearch() | |
global g_clipDeAjuste := clipDeAjuste |
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
-- Based on https://github.com/stonetoad/obs-lua-httpd | |
local obs = obslua | |
-- From https://github.com/stonetoad/obs-lua-httpd/blob/e1c167f6c5231e605cf8531750153e728765f587/ljsocket.lua | |
local socket = require("ljsocket") | |
-- From https://gist.githubusercontent.com/PedroAlvesV/872a108f187f57c2a5b7b5bc34398496/raw/4ee8e36c9ee4b55a3d6bef768258ec8f9c6c3bc2/sha1.lua | |
local sha1 = require("sha1") | |
local bit = require("bit") | |
-- From https://devforum.roblox.com/t/base64-encoding-and-decoding-in-lua/1719860 |
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 net from 'net'; | |
import crypto from 'crypto'; | |
const port = 5000; | |
const sha1 = function(str) { | |
const shasum = crypto.createHash('sha1') | |
shasum.update(str) | |
return shasum.digest().toString("base64") | |
} | |
const STATUS = { | |
WAITING: 0, |
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
local StateMachine = {} | |
export type StateMachine = typeof(StateMachine.new()) | |
export type StateMachineEnterCallback = (previousState: string|nil) -> () | |
export type StateMachineState = { | |
Enter: StateMachineEnterCallback?, | |
Exit: ((nextState: string|nil) -> ())?, | |
Name: string? | |
} |
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 Better titles for FFmpeg doxygen | |
// @namespace Violentmonkey Scripts | |
// @match https://ffmpeg.org/doxygen/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 12/30/2023, 2:32:16 AM | |
// ==/UserScript== | |
(() => { |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod1 |
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
doas pacman --needed -S terminus-font ttf-croscore ttf-dejavu gnu-free-fonts ttf-liberation libertinus-font noto-fonts adobe-source-code-pro-fonts cantarell-fonts ttf-opensans noto-fonts-cjk noto-fonts-emoji ttf-jetbrains-mono | |
# Terminal: JetBrains Mono Regular 14.0 |
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 fs from 'fs'; | |
import fetch from 'node-fetch'; | |
// urls.txt should be a text file containing the urls separated by a new line | |
const file = fs.readFileSync('./urls.txt', {'encoding': 'utf8'}).split('\n'); | |
file.forEach(url => { | |
fetch(url).then(res => { | |
// modify to whichever format the downloads are | |
let write = fs.createWriteStream(`./urls/${Date.now()}.webp`); |
NewerOlder