Skip to content

Instantly share code, notes, and snippets.

@orhun
orhun / arch_linux_installation.md
Last active March 15, 2025 04:07
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@habdenscrimen
habdenscrimen / obsidian.css
Last active April 8, 2025 04:11
Set custom font sizes for Obsidian default theme
:root
{
--font-size-normal: 19px;
--font-size-code: 15px;
--font-size-side-dock: 15px;
--font-size-side-dock-title: 18px;
--font-size-status-bar: 12px;
--font-size-h1: 38px;
--font-size-h2: 30px;
--font-size-h3: 24px;
@AveYo
AveYo / !BlackLess.md
Last active February 22, 2025 17:38
A High Contrast based neutral / less blues tone Windows Dark / Light Theme by AveYo

Blackless.theme

how to install:
hit download ZIP button top right corner
then unzip somewhere

in a windows explorer enter in the location bar:
%LOCALAPPDATA%\Microsoft\Windows\Themes

then copy those unzipped .theme files there

@ek-db
ek-db / switcher_ahk
Created September 14, 2017 04:28
ahk_db
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Menu, Tray, Icon, shell32.dll, 16 ;this changes the icon into a little laptop thingy. just useful for making it distinct from the others.
;#######THIS IS THE BEST SCRIPT I'VE EVER WRITTEN.#########
;And also one of the simplest. Basically, If you press the "explorer" key (F1) it will instantly:
@mariotacke
mariotacke / README.md
Last active February 4, 2025 06:43
Spotify AutoHotkey Script

Spotify AutoHotkey Script

This script makes use of the Numpad to control media players and volume on your system.

Usage

  • Install AutoHotkey
  • Right-click .ahk script
  • Compile Script
  • Start executable

Hotkeys

@DonnchaC
DonnchaC / huaiwei-unlock.py
Created September 24, 2016 19:27
Huaiwei unlock code generator - Based on the disassembler generated C code in https://github.com/forth32/huaweicalc
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import hashlib
import argparse
import binascii
import struct
def encrypt_v1(imei, key):
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FileInstall, VirtualDesktopAccessor.dll, %A_ScriptDir%\VirtualDesktopAccessor.dll, 1
SetTitleMatchMode 2
DetectHiddenWindows, On
hVirtualDesktopAccessor := DllCall("LoadLibrary", Str, "VirtualDesktopAccessor.dll", "Ptr")
GoToDesktopNumberProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "GoToDesktopNumber", "Ptr")
@bladeSk
bladeSk / mouse cursor follows focus.ahk
Last active September 29, 2024 04:50
AutoHotKey: Make mouse cursor follow window focus
; Makes the mouse cursor follow window focus, but ONLY if the focus change
; wasn't caused by the mouse - e.g. Alt-Tab, Win+<Number>, hotkeys, ...
; Saves a lot of mousing around on multi-monitor setups!
Gui +LastFound
lastMouseClickTime := 0
hWnd := WinExist()
DllCall("RegisterShellHookWindow", UInt, hWnd)
@hoppfrosch
hoppfrosch / WinGetPosEx - Example.ahk
Last active November 20, 2018 12:33
With the introduction of the Desktop Window Manager (DWM) and Aero themes in Windows Vista, the size and position of windows has never been the same. The OS says that the window is one size but when displayed, the window can be another (usually larger) size. The WinGetPosEx function is an attempt to help the developer to identify the correct pos…
; Credits: jballi - https://autohotkey.com/boards/viewtopic.php?f=6&t=3392
#NoEnv
#SingleInstance Force
;;;;;ListLines Off
;-- Initialize
Caption :=True
ToolWindow :=False
Resize :=False
Theme :=True
@niun
niun / find-raspberry.sh
Last active June 27, 2024 14:00
Find Raspberry Pi in network (looking for MAC address vendor prefix of Raspberry Pi Foundation using nmap, awk for ipv4 / ping6, ip, grep for ipv6 neighbour discovery)
sudo nmap -sP 192.168.0.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'