Skip to content

Instantly share code, notes, and snippets.

@probonopd
probonopd / Wayland.md
Last active November 2, 2025 10:45
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Feature comparison

@kangchihlun
kangchihlun / 101Alpha_code_1.py
Last active October 22, 2025 02:44
101Alpha_code_1.py
import numpy as np
import pandas as pd
from numpy import abs
from numpy import log
from numpy import sign
from scipy.stats import rankdata
# region Auxiliary functions
def ts_sum(df, window=10):
"""
@dmattera
dmattera / soup_prettify2.py
Last active November 24, 2023 04:21
A simple way set custom indentation levels when using BeautifulSoup's soup.prettify()
# Python == 3.6.2
# bs4 == 4.6.0
# The current version of BeautifulSoup's soup.prettify() function only allows for
# an indentation level = to 1 space. This is a simple, reliable way to allow for the use
# of any indentation level you wish.
import requests
@thosakwe
thosakwe / README.txt
Created March 3, 2018 20:34
Tampermonkey UserScript to auto-click Follow/Unfollow Buttons on Crowdfire
Press CTRL+SHIFT+Y (PC) or COMMAND+SHIFT+Y (Mac) to auto-click all the follow or unfollow buttons on Crowdfire,
with a small delay (200ms) in-between.
Sends a notification when the process completes. Saves a lot of time, and makes it much easier to grow your following
without all the clicking.
@iann0036
iann0036 / auto.py
Last active February 2, 2024 04:06
Python Input Record and Play
import pyautogui, time, sys, os, win32api, win32gui, win32con, datetime, pyHook, pythoncom
from optparse import OptionParser
'''
Python Automated Actions Script by Ian Mckay
Version 0.1 - 20151217
'''
pyautogui.PAUSE = 0
pyautogui.FAILSAFE = True
@andrewmcdonough
andrewmcdonough / swind
Created March 31, 2009 16:02
A bash script to move the focused window in X to different parts of the screen. Most useful when you assign shortcut keys to the various options, e.g. assign '<Super>Up' to run 'swind up'
#!/bin/bash
# Written by Andrew McDonough
# Prerequisites: xdotool must be installed and in your path (http://tinyurl.com/xdotool)
# A simple bash script that uses xdotool to move the window that is currently in focus to different parts of the screen.
# Particularly useful for reading web pages with flexible layouts on wide monitors.
# Assign the various options to keyboard shortcuts e.g. '<Super>Left' assigned to 'swind left'
# See http://tinyurl.com/ubuntukeys for help with assigning keyboard shortcuts.