Skip to content

Instantly share code, notes, and snippets.

@marcpinet
marcpinet / README.md
Last active September 3, 2025 07:18
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

#!/usr/bin/bash
menu=" Minimize\n Floating Toggle\n Window Shot\n Move Workspace\n Close"
swspc () {
wspc=$(wofi -d -W 15% --prompt="Move To Worspace" --lines=2); swaymsg move window to workspace $wspc
}
active=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?, .floating_nodes[]?) | select(.focused) | .rect | "\(.x),\(.y)"')
@b0o
b0o / popup-detect.js
Last active July 27, 2025 09:07
Sway browser pop-up window float hack
// ==UserScript==
// @name Sway Popup Window Detector
// @namespace https://maddison.io/
// @version 0.1
// @description Detect "pop-up" windows because for some reason Wayland doesn't have a built-in way to do it??!
// @author Maddison Hellstrom <github.com/b0o>
// @include /^.*$/
// @grant none
// @run-at document-start
// ==/UserScript==
@AlecsFerra
AlecsFerra / animated_wallpaper.c
Last active September 27, 2025 02:50
POC for simple animated wallpapers in Xorg
#define _POSIX_C_SOURCE 199309L
//#define DEBUG
#include <Imlib2.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@torresashjian
torresashjian / linux-kali-install-wifi-drivers.sh
Last active October 12, 2025 12:17
How to install Broadcom BCM43142 Drivers on Kali Linux
apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active October 2, 2025 13:18
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@raidzero
raidzero / divvy.sh
Last active February 15, 2023 09:35
OS X Divvy emulation for EWMH-compliant (Unix-like) Window Managers
#!/bin/sh
DEST="$1"
if [ -z "$DEST" ]; then
echo "USAGE: $0 [location]"
echo -e "\nsupported locations: "
echo -e "\thalf-left, half-right"
echo -e "\tthird-left, third-middle, third-right"
echo -e "\tquarter-top-left, quarter-rop-right, quarter-bottom-left, quarter-bottom-right"