Skip to content

Instantly share code, notes, and snippets.

@cherrysushi
cherrysushi / README.md
Created March 22, 2025 13:43
RPi3B+ and 1080p H265 files - LibreELEC

Want H265 decoding ability on you RPi 3B+?

Flash Raspberry Pi 3 LibreELEC 9.2.8 release on your SD card.

"@chewitt advised that 9.2.8 is the last build with the legacy support for the hardware accelerated HEVC decode on the Pi 3 series. (That's why LE are still hosting it)"

source

You'll have Kodi Leia, where you can add NFS, FTP, SMB servers, to your liking.

Wifi not connecting?

@cherrysushi
cherrysushi / termux.properties
Created March 22, 2025 12:48
Termux top bars .termux/termux.properties
extra-keys = [['ESC','DEL','CTRL','ALT','\','HOME','UP','END','PGUP'],['TAB','$','/','|','-','LEFT','DOWN','RIGHT','PGDN']]
allow-external-apps=true
@cherrysushi
cherrysushi / code.py
Created March 22, 2025 09:07
Send WoL through Wi-Fi with Maker Feather AIoT S3
import board
import digitalio
import neopixel
import simpleio
from rainbowio import colorwheel
import time
import wifi
import socketpool
import gc
from config import SSID, PASSWORD, MAC_ADDRESS
@cherrysushi
cherrysushi / Changer_la_casse.vba
Created March 3, 2025 07:01
Excel VBA Macros + Boutons - Changer casse + Formater IP (virgules --> points)
'Permet de changer la casse des cellules sélectionnées
Sub Majuscules()
Traite_casse ("Maj")
End Sub
Sub minuscules()
Traite_casse ("Min")
End Sub
Sub Prem_lettre()
Traite_casse ("Preum")
@cherrysushi
cherrysushi / vscode_install_extensions_from_file.ps1
Created August 11, 2024 05:13
VS Code extensions - Backup and install from file
Get-Content extensions.txt | ForEach-Object {code --install-extension $_}
@cherrysushi
cherrysushi / post_to_pastebin.ps1
Created December 4, 2023 10:57
PS1 script to post the content of a file to Pastebin
$Uri = 'https://pastebin.com/api/api_post.php'
$FilePath = 'C:\your_file_path.txt'
$api_dev_key = 'Your Unique Developer API Key'
$FileContent = Get-Content -Path $FilePath -Raw
$Content = @{
api_dev_key = $api_dev_key
api_option = 'paste'
api_paste_code = $FileContent
}
@cherrysushi
cherrysushi / HOWTO.md
Last active October 2, 2025 13:25
Vault Hunters 3rd Edition with Complementary Shaders using curseforge

How to run Vault Hunters 3rd Edition with Complementary Shaders using curseforge

Why this gist?

  • You need either OptiFine or Sodium/Iris to use Complementary Shaders.
  • Sodium/Iris supports Fabric, not Forge.
  • Vault Hunters uses Forge and is incompatible with Optifine.

How to do it?

  1. Download and install Java
  2. Install curseforge
@cherrysushi
cherrysushi / vcenter_rest_api.yml
Created September 6, 2023 06:46
Ansible sample vCenter REST API
---
# vCenter REST APIs: https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/
# Ansible URI module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html
- name: Use vcenter REST API
hosts: localhost
become: false
gather_facts: false
vars_files:
- global-vars.yml
@cherrysushi
cherrysushi / README.md
Created December 26, 2022 05:27
Excel: Import XML

Excel: Import XML

Developer tab/Import (on the right) (source)

Required: Add Developer tab

File/Options/Personalize ribbon and, in the right column, check the Developer box (source)

@cherrysushi
cherrysushi / hashpass.py
Created December 26, 2022 04:48
Python: Generate salted sha-512 hash for cloud-init or shadow. Windows-compatible
#!/python
## Python script to generate pass hash for cloud-init or shadow, Windows-compatible
# gen expected with Linux if you want to test:
# mkpasswd -s --salt=iamsalty --round=4096 --method=sha-512
password = 'password'
salt = 'iamsalty' # 8 chars min