Skip to content

Instantly share code, notes, and snippets.

egore / rumble.cpp
Last active Dec 30, 2020
SDL 2 based rumble tester I use for PS3 controllers
View rumble.cpp
#include <SDL2/SDL.h>
#include <cstdio>
#include <list>
#include <signal.h>
std::list<std::pair<SDL_Joystick*, SDL_Haptic*>> joysticks;
void shutdown_joysticks() {
SDL_Log("Closing joysticks");
for (std::pair<SDL_Joystick*, SDL_Haptic*> joystick : joysticks) {
kefir- /
Created Feb 26, 2019
Screen capture with webcam overlay using ffmpeg
ffmpeg -f x11grab -thread_queue_size 64 -video_size 1920x1080 -framerate 30 -i :1 \
-f v4l2 -thread_queue_size 64 -video_size 320x180 -framerate 30 -i /dev/video0 \
-filter_complex 'overlay=main_w-overlay_w:main_h-overlay_h:format=yuv444' \
-vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p \
MIvanchev /
Last active Feb 28, 2021
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
scragly /
Last active Mar 3, 2021
Emoji for Discord Bots

On Discord, there's two different emoji types:

  • Unicode Emoji
  • Custom Emoji

Unicode emoji are received as a normal unicode character(s) so can be treated as plain text. You send the character's as-is, and receive them as-is. You can write unicode emoji in python strings a number of ways:
The official unicode character name: \N{NAME}
The unicode codepoint: \u0000 or \U00000000
The raw unicode character itself.

prochor666 /
Last active Oct 14, 2020
Mount Google drive under Debian Linux (Jessie and later)
nzec / README.MD
Last active Mar 1, 2021
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!



Available for Windows, macOS, Linux, Android, ARMs.
SMLoadr is a program for downloading music from streaming music services.

AkdM /
Last active Jan 28, 2021
Edit and repack .iso bootable image

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

fasiha /
Last active Feb 22, 2021
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Well, that was unexpected. In the following, I’m trying to follow Jon Evans’ advice from “The Terrible Technical Interview”.

From: Ahmed Fasih
Subject: Re: Programming Test Invitation

Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.

jarun /
Last active Mar 1, 2021
Guide to disassemble


  • Compile the program in gcc with debug symbols enabled (-g)
  • Do NOT strip the binary
  • To generate assembly code using gcc use the -S option: gcc -S hello.c



lifepillar /
Created Nov 20, 2017
Test 24 bit colors in terminals
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default