Skip to content

Instantly share code, notes, and snippets.

View guihkx's full-sized avatar
🐧

Guilherme Silva guihkx

🐧
View GitHub Profile
/**
* Compile it: gcc monitors.c -lX11 -lXrandr -Wall -Wextra -Werror -std=c89 -O3 -pedantic-errors -o monitors
* Run it: ./monitors
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <X11/Xlib.h>
/*
* 1. Compile it: gcc spam.c -lX11 -lXrandr -Wall -Wextra -Werror -std=c89 -O3 -pedantic-errors -o spam
* 2. Start monitoring the journal: journalctl -f
* 3. Run the program in a loop: while true; do ./spam && sleep 1; done
* 4. Observe the journal being spammed (GNOME-only)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#Requires -Version 5.0
# If you, for some odd reason, have a lot of different Firefox profiles (like I do),
# this script will create a shortcut for each one of them so you can use them easily
# Keep in mind that this script was made by a guy who didn't knew absolutely nothing about PowerShell
#----------------------------------------------------------------#
# This script will only work if you have Windows 7 SP1 or newer. #
# #