Skip to content

Instantly share code, notes, and snippets.

@vurdalakov
vurdalakov / R36sCheatsheet.md
Last active January 12, 2026 16:54
R36S, ArkOS and PICO-8 cheatsheet

R36S, ArkOS and PICO-8 cheatsheet

ArkOS

  • Exit a game and return to ArkOS main menu: Select + Start
@vurdalakov
vurdalakov / RpiCheatsheet.md
Last active January 12, 2026 16:53
Raspebbry Pi cheatsheet

Raspebbry Pi cheatsheet

Update Raspberry Pi OS

sudo apt update
sudo apt full-upgrade
sudo reboot
@vurdalakov
vurdalakov / GitCheatsheet.md
Last active October 9, 2025 04:35
Git cheatsheet

Remove last commit from local Git repository

git reset HEAD^

Remove last commit from remote Git repository

# remove commit locally
@vurdalakov
vurdalakov / i2c_scanner.py
Last active August 14, 2025 06:14
A MicroPython program that scans all available I2C bus configurations on the Raspberry Pi Pico (RP2040 and RP2350), cycling through high, standard, and low frequencies to detect and list connected I2C devices.
# A MicroPython program that scans all available I2C bus configurations on the Raspberry Pi Pico (RP2040 and RP2350),
# cycling through high, standard, and low frequencies to detect and list connected I2C devices.
# https://gist.github.com/vurdalakov/7e2aca81c067b879b906513838cf9af9
from machine import Pin, I2C
count = 0
# RP2040 and RP2350A have 30 GPIOs; RP2350B has 48 GPIOs
for i in range(0, 48, 2):
@vurdalakov
vurdalakov / increment.bat
Last active April 5, 2025 04:40
Automatically increment version number in Arduino IDE
@echo off
echo ----------------------------------------------- increment.bat script -----------------------------------------------
rem ========================================================================================
rem == This script automatically increments build number in "version.h" file.
rem == Instructions and more information:
rem == http://codeblog.vurdalakov.net/2017/04/autoincrement-build-number-in-arduino-ide.html
rem ========================================================================================
setlocal
@vurdalakov
vurdalakov / Info.lua
Created March 8, 2018 09:27
Lightroom plugin template
return {
LrSdkVersion = 6.0,
LrSdkMinimumVersion = 6.0,
LrToolkitIdentifier = 'net.vurdalakov.lightroomplugintemplate',
LrPluginName = 'Lightroom Plugin Template',
LrExportMenuItems = {
title = "Show Lightroom &version",
file = "LightroomPluginTemplate.lua",
enabledWhen = "photosSelected"
}
@vurdalakov
vurdalakov / KeyboardLayouts.cs
Created March 14, 2018 14:27
Working with keyboard layouts on Windows in C# (ActivateKeyboardLayout/GetKeyboardLayout/GetKeyboardLayoutList)
namespace Vurdalakov
{
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
public class KeyboardLayout
@vurdalakov
vurdalakov / IsMsiRunning.cs
Created August 9, 2024 07:15
Check if Windows Installer is running in C#
public static Boolean IsMsiRunning()
{
try
{
return Mutex.TryOpenExisting(@"Global\_MSIExecute", out _);
}
catch
{
return false;
}
@vurdalakov
vurdalakov / StringArrayConverter.cs
Created July 31, 2024 06:27
String array converter for YamlDotNet
namespace Vurdalakov.YamlDotNetStringArrayConverter
{
using System;
using YamlDotNet.Core;
using YamlDotNet.Core.Events;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
internal class Program
@vurdalakov
vurdalakov / Nucleo_F767_blink.cpp
Last active June 25, 2024 08:27
Blinks all 3 user LEDs on STM32 NUCLEO-F767ZI board using libopencm3