Skip to content

Instantly share code, notes, and snippets.

View guihkx's full-sized avatar
🐧

Guilherme Silva guihkx

🐧
View GitHub Profile
#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. #
# #
/*
* 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>
/**
* 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>
@guihkx
guihkx / warsaw.sh
Created October 7, 2024 05:39
Sets up Warsaw (internet banking crap) and Firefox using systemd-nspawn
#!/usr/bin/env bash
# Script options that can be overriden via environment variables.
SUDO=${SUDO:-'sudo'}
CONTAINER_NAME=${CONTAINER_NAME:-'debian-warsaw'}
TARGET_DIR=${TARGET_DIR:-"/tmp/${CONTAINER_NAME}"}
NORMAL_USER=${NORMAL_USER:-'user'}
BANK_TEST_PAGE=${BANK_TEST_PAGE:-'https://seg.bb.com.br/home.html'}
##### Do not touch anything below this #####