Skip to content

Instantly share code, notes, and snippets.

View jfalava's full-sized avatar

Jorge Fernando Álava Vélez jfalava

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jfalava on github.
* I am jfalava (https://keybase.io/jfalava) on keybase.
* I have a public key ASA17zKYkoOJznwLOP6ZMC3ueSoJI3EgRJ03L_8-5b3J3Qo
To claim this, I am signing this object:
@jfalava
jfalava / mass-hash-calculator.ps1
Last active January 29, 2024 11:46
PowerShell script to calculate the hash of all files with an specific extension in a folder and returns it neatly into a .txt file.
$folderPath = "path\to\folder"
$outputFilePath = "path\to\txt\file\hash.txt"
$scanFiles = Get-ChildItem -Path $folderPath -Filter "*.extension"
$hashes = foreach ($file in $scanFiles) {
$hash = Get-FileHash -Path $file.FullName -Algorithm SHA256
[PSCustomObject]@{
FileName = $file.Name
Hash = $hash.Hash

PowerShell script that creates another script by parsing your winget list output and creating a new script file with all the packages available to be installed with winget and executable as it is.`

Note

If this is your first time using winget you, for the script to work, need to accept its terms of service.
You can do so by executing any winget command before executing this PowerShell script.

# Get the list of installed packages via winget
$installedPackagesOutput = winget list
@jfalava
jfalava / csv-to-markdownTables.md
Last active February 20, 2024 15:05
Python script to convert CSV files to Markdown Tables

Note

This script requires this packages:

 pip3 install pandas tabulate
  • Change foo.csv to your CSV file name.
@jfalava
jfalava / WinReg-FolderTypeNotSpecified.md
Created March 4, 2024 08:40
Registry entry that disables "folder type" auto discovery in Windows Explorer

Original source

Disables "folder type" auto discovery in Windows Explorer, useful for folders with thousands of files.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
@jfalava
jfalava / ssh-chmod.md
Last active May 11, 2024 10:28
chmod 600-like permissions in Windows

chmod 600-like permissions in Windows

  1. Navigate to the folder (like the .ssh\ folder) of your Windows User
  2. Execute in order:
icacls C:\path\to\your\private_key.pem /inheritance:r
@jfalava
jfalava / ffmpeg-convert.md
Created May 11, 2024 10:27
FFmpeg flac to m4a for Apple Music Lossless scripts

Convert music files to .m4a

One file

ffmpeg -i <ogfile> -c:v copy -c:a alac <newfile>.m4a

All the files