Skip to content

Instantly share code, notes, and snippets.

@mark05e
mark05e / Execute-FFmpeg.ps1
Last active July 26, 2025 19:26
Audio Conversion script for low-bandwidth, telephony-related audio conversions
<#
.SYNOPSIS
Executes the FFmpeg command to convert an input file to a specified audio format.
.DESCRIPTION
This function converts a given input file to the specified audio format using the FFmpeg command-line tool.
It allows customization of audio parameters such as sampling rate, channels, bitrate, and codec.
.PARAMETER InputFile
The path to the input file.
@ChuckieChen945
ChuckieChen945 / Sophia.ps1
Last active December 24, 2024 21:20
个人重装系统所用的脚本
<#
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)"
Version: v6.1.3
Date: 26.07.2022
Copyright (c) 2014—2022 farag
Copyright (c) 2019—2022 farag & Inestic
// ==UserScript==
// @name Google AI Studio: Full-width reasoning
// @namespace http://tampermonkey.net/
// @version 2024-09-24
// @description try to take over the world!
// @author You
// @match https://aistudio.google.com/*
// @icon https://www.gstatic.com/aistudio/watermark/watermark.png
// @grant none
// ==/UserScript==
@milouri23
milouri23 / PowerToolkit.psm1
Last active November 26, 2025 12:06
Módulo multipropósito para configuraciones varias en Windows y análisis y tratamiento de archivos de audio
using namespace System.IO;
function Get-GistContent {
param (
[Parameter(Position = 0, Mandatory = $true)]
[string] $gistId
)
# Define the Gist API URL using the provided gistId
$apiUrl = "https://api.github.com/gists/$gistId"
variables() {
NSAPP=$(echo ${APP,,} | tr -d ' ') # This function sets the NSAPP variable by converting the value of the APP variable to lowercase and removing any spaces.
var_install="${NSAPP}-install" # sets the var_install variable by appending "-install" to the value of NSAPP.
INTEGER='^[0-9]+([.][0-9]+)?$' # it defines the INTEGER regular expression pattern.
}
# This function sets various color variables using ANSI escape codes for formatting text in the terminal.
color() {
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
rem ---------------------------------------------------------------------------
rem MY ULTIMATE WINDOWS 11 CUSTOMIZATION SCRIPT
rem ---------------------------------------------------------------------------
rem Tested on Windows 11 IoT Enterprise LTSC 24H2 Build 26100.2033
rem Most of these hacks require signing out and in again.
rem ___
rem Explanation of registry flags:
rem /f = Overwrite
rem /d = Assigns the specified data to the registry value.
@Hackiri
Hackiri / proxmox_template_builder.sh
Last active October 26, 2025 23:11
create cloud init template proxmox
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
# Disabled to allow script to continue on individual image failures
# set -e
# Function to check for required utilities
function check_utilities() {
local utilities=("qm" "wget" "xz" "sha256sum" "ssh-keygen")
for util in "${utilities[@]}"; do
@olegsych
olegsych / WinDbg.cmd
Last active March 27, 2026 23:54
Windows 11 cleanup
rem Make the folder tree
md C:\Symbols
md C:\Symbols\Src
md C:\Symbols\Sym
md C:\Symbols\SymCache
rem Create the 'Tier 2' Symbol cache Marker Files
echo Index2 > C:\Symbols\Sym\index2.txt
echo PingMe > C:\Symbols\Sym\pingme.txt
@almahmudbd
almahmudbd / browser-userscript-list.md
Last active March 18, 2026 04:04
some useful Userscript collection, can be used with a browser and tamper/violent monkey extension
#!/bin/bash
set -e # Exit on any command failure
# Variables
STORAGE="local-lvm"
MEMORY=1024
DISK_SIZE="5G" # You can adjust this if needed
BRIDGE="vmbr0"
IMAGES_DIR="/var/lib/vz/template/iso" # Common image directory