Skip to content

Instantly share code, notes, and snippets.

View Naaach's full-sized avatar

Nacho Diaz Perez Naaach

View GitHub Profile
@Naaach
Naaach / SpotifyToYoubeMusic.py
Last active October 13, 2025 09:04
Transfer Spotify playlist to YoutubeMusic
# ---------- IMPORTANT -----------
# !pip install ytmusicapi spotipy
# --------------------------------
from ytmusicapi import YTMusic
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
import json, time, traceback
# === CONFIGURA TUS DATOS ===
@MightyPork
MightyPork / usb_hid_keys.h
Last active October 15, 2025 22:31
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@GaspardP
GaspardP / sha256.js
Created June 4, 2015 15:21
SHA-256 with Javascript and Web Crypto
// Computes the SHA-256 digest of a string with Web Crypto
// Source: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
function sha256(str) {
// Get the string as arraybuffer.
var buffer = new TextEncoder("utf-8").encode(str)
return crypto.subtle.digest("SHA-256", buffer).then(function(hash) {
return hex(hash)
})
}