Skip to content

Instantly share code, notes, and snippets.

View dxrcy's full-sized avatar
👁️

darcy dxrcy

👁️
View GitHub Profile
@dxrcy
dxrcy / pptx-audio.sh
Created May 25, 2023 02:05
Extract audio from every Powerpoint file in a folder.
#!/bin/sh
# === PPTX Audio ===
# Extract audio from every Powerpoint file in a folder, and concatenates into one file.
# Requires `ffmpeg` to be installed.
# See config below for directories configuration.
# Only compatible with `m4a` MPEG format for output, as that is what Powerpoint uses
# Biggest speed loss is using the `unzip` command
# =============== CONFIG =================
@dxrcy
dxrcy / KillCringe.bat
Last active October 11, 2022 23:54
Kill cringe programs with batch (Windows), kills Adobe processes and misc. Windows things
@ECHO OFF
:: Elevate self to admin
ECHO Elevating self...
IF _%1_==_payload_ GOTO :PAYLOAD
:ELEVATE
SET vbs=%temp%\getadmin.vbs
ECHO Set UAC = CreateObject^("Shell.Application"^) >> "%vbs%"
ECHO UAC.ShellExecute "%~s0", "payload %~sdp0 %*", "", "runas", 1 >> "%vbs%"
"%temp%\getadmin.vbs"
@dxrcy
dxrcy / IPAChars.ahk
Last active June 13, 2022 01:34
Convert IPA Characters with CTRL+Insert
; List of many IPA characters
allChars := ["aɑæɐ", "bβɓʙᵝ", "cçɕ", "dðɖɗ", "eəɚɵɘᵊ", "3ɛɜɝɞ", "fʩ", "gɠɢʛɡ", "hħɦɥɧʜʰʱ", "iɪɨ", "jʝɟʄʲ", "lɫɭɬʟɮʪʫꞎˡ", "mɱ", "nŋɲɳɴⁿ", "oɔœɒɶø", "pɸ", "rɾɹʁʀɻɽɺʳʶ", "sʃʂ", "tθʈᵗ", "uʊʉ", "vʌʋⱱ", "wɯʍɰʬʷ", "xχ", "yɣʎʏɤˠ", "zʒʐʑ", "?ʔʕʡʢˤˀ", "|ǀǁǃǂ", "0ʘ", "'ˈˌʼ", ">→←↘↗↓↑͢ꜜꜛ▲", "(͡", ")͜", "=⁼", "/˩˨˧˦˥", ".·", "[ʭ", "8ↀ", "*̆̚", "~̃", ":ː̈", ",̩̯"]
; CTRL+Insert
^Insert::
; Copy character
prevClipboard := Clipboard ; Save clipboard
Clipboard := ; Clear clipboard
SendInput {ShiftDown}{Left}{ShiftUp}^c{Right} ; Copy previous character
ClipWait ; Wait for clipboard to register
@dxrcy
dxrcy / taskfind.bat
Created June 4, 2021 04:14
Command to output running tasks to file and open
echo @echo off ^& tasklist ^> tasklist.txt ^& start /max notepad tasklist.txt > taskfind.bat
@dxrcy
dxrcy / hack.bat
Created December 15, 2020 12:43
How to HACK computer!!! (Paste this into command prompt and then call `hack` command from anywhere)
@ECHO OFF & ECHO @echo OFF^&title Software^&color 0c^&(for /l %%i in (5,-1,1)do (cls^&echo Are you sure you want to delete system32...? Press ALT to abort!^&echo:^&(if %%i==5(timeout 2 ^>nul))^&(if %%i==1 (echo Proceeding in 1 second... ^& timeout 3 ^>nul)else (echo Proceeding in %%i seconds...^&timeout 1 ^>nul)))^&echo:^&echo Deletion of system32 aborted.^&color 0f^&echo Press ENTER to continue^&pause ^>nul^&echo:^&echo Made by Darcy^&@echo ON > "C:/Users/%USERNAME%/hack.bat" & @ECHO ON
@dxrcy
dxrcy / sleep.js
Created November 12, 2020 03:40
Sleep function for async javascript
function sleep(time) {
return new Promise(resolve => {
setTimeout(resolve, time * 1000);
});
}
(async()=>{
console.log("Start");
await sleep(1);
console.log("1 second later");