Skip to content

Instantly share code, notes, and snippets.

View carneloot's full-sized avatar

Matheus Carnelutt carneloot

View GitHub Profile
@carneloot
carneloot / compress.ps1
Last active December 30, 2025 20:07
A simple powershell script to compress video
# Requires Windows PowerShell 5.1 or PowerShell Core (pwsh)
param(
[Parameter(Mandatory=$true)]
[Alias("i", "in")] # Aliases for InputFile
[string]$InputFile,
[ValidateSet('default', 'whatsapp', 'gpu-hevc', 'gpu-h264')]
[Alias("p")] # Alias for Preset
[string]$Preset = 'default' # Default compression preset
@carneloot
carneloot / lifeweaver.ahk
Created April 14, 2023 00:32
Lifeweaver QoL improvement
#Requires AutoHotkey v2.0
_dashKey := "L"
_petalKey := "M"
isHealing := true
; Ctrl + Alt + P stops the script
^!P:: ExitApp
@carneloot
carneloot / micid.ahk
Created October 27, 2020 17:19
Mute mic script
; ===================================
;
; Use this file to find out which device channel is your microfone.
;
; Author: Matheus Carnelutt
; based on: https://www.autohotkey.com/boards/viewtopic.php?t=15509
;
; ===================================
SetBatchLines -1
@carneloot
carneloot / sandpile.py
Created February 16, 2017 02:23
A Sandpile class created in Python to simplify the calculations explained in this Numberphile video https://www.youtube.com/watch?v=1MtEUErz7Gg
'''Sandpile class'''
class Sandpile:
'''A mathmatical sandpile.'''
def __init__(self, pile, cols, rows):
self.cols = cols
self.rows = rows
self.pile = pile