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
| #SingleInstance, force | |
| #NoEnv | |
| #KeyHistory 0 | |
| SendMode Input | |
| ; Menu, Tray, Icon, C:\Program Files\Mozilla Firefox\firefox.exe | |
| GroupAdd, WorkIn , ahk_exe firefox.exe | |
| GroupAdd, WorkIn , ahk_exe chrome.exe | |
| GroupAdd, WorkIn , ahk_exe msedge.exe | |
| GroupAdd, WorkIn , ahk_exe browser.exe |
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
| // ==WindhawkMod== | |
| // @id no-flash-window-fork | |
| // @name NoFlashWindow | |
| // @description Prevent programs from flashing their windows on the taskbar | |
| // @version 1.0 | |
| // @author m417z | |
| // @github https://github.com/m417z | |
| // @twitter https://twitter.com/m417z | |
| // @homepage https://m417z.com/ | |
| // @include * |
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
| CREATE TABLE `wordle_day` ( | |
| `day` INT(11) NOT NULL, | |
| `uid` INT(11) NOT NULL, | |
| `attempts` TINYINT(1) NULL DEFAULT NULL, | |
| `won` TINYINT(1) NULL DEFAULT '0', | |
| PRIMARY KEY (`day`, `uid`) | |
| ) |
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
| export function debugAssert(condition: any, message?: string | (() => string)): asserts condition; |
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
| const std = @import("std"); | |
| // zig build-exe hddnosleep.zig -O ReleaseSmall | |
| // install as service via nssm.exe install hddnosleep | |
| const FILENAME = "D:\\tmp\\hddnosleep.txt"; | |
| pub fn main() anyerror!void { | |
| // const allocator = std.heap.page_allocator; | |
| // const stdout = std.io.getStdOut().writer(); |
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
| from pathlib import Path | |
| from typing import TypeAlias | |
| import ffmpeg # https://github.com/kkroening/ffmpeg-python | |
| FPS: TypeAlias = float | |
| def get_fps(video_path: str | Path) -> FPS | None: | |
| try: |
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
| from typing import Iterator | |
| from pathlib import Path | |
| def get_all_files(root: Path | str, recursive=False) -> Iterator[Path]: | |
| for item in Path(root).iterdir(): | |
| if item.is_file(): | |
| yield item | |
| elif recursive and item.is_dir(): | |
| yield from get_all_files(item, recursive=True) |
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
| scoop list | %{scoop info $_.Name} | Select-Object -Property Name, Website, Description | Export-Csv -Path .\Desktop\scoopp.csv |
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
| // ==UserScript== | |
| // @name Video hotkeys for VK, Rutube, Boosty - fast forward and rewind | |
| // @namespace pongo | |
| // @version 2024-10-30 | |
| // @description Adds hotkeys for fast forwarding (key D) and rewinding (key A) videos by 1 second on VK and Boosty. Press alt+c for copy current timecode. | |
| // @author pongo | |
| // @match https://vk.com/video-* | |
| // @match https://boosty.to/*/posts/* | |
| // @match https://rutube.ru/video/* | |
| // @grant GM_setClipboard |
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
| // <textarea rows="3" v-textarea-autoheight></textarea> | |
| const textareaAutoheight = { | |
| autoHeight(el) { | |
| el.style.height = "auto"; // Revert height | |
| const style = window.getComputedStyle(el); | |
| const borderTop = parseFloat(style.getPropertyValue("border-top-width")); | |
| const borderBottom = parseFloat(style.getPropertyValue("border-bottom-width")); | |
| el.style.height = el.scrollHeight + borderTop + borderBottom + "px"; | |
| }, |