Skip to content

Instantly share code, notes, and snippets.

@egore
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-
kefir- / capture.sh
Created Feb 26, 2019
Screen capture with webcam overlay using ffmpeg
View capture.sh
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 \
video.mkv
@MIvanchev
MIvanchev / article.md
Last active Feb 28, 2021
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@scragly
scragly / discord_emoji.md
Last active Mar 3, 2021
Emoji for Discord Bots
View discord_emoji.md

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
prochor666 / install.md
Last active Oct 14, 2020
Mount Google drive under Debian Linux (Jessie and later)
View install.md
@nzec
nzec / README.MD
Last active Mar 1, 2021
DeezLoader Offical Page
View README.MD

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

SMLoadr

(Recommended)

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

@AkdM
AkdM / Edit_Repack_ISO_tutorial.md
Last active Jan 28, 2021
Edit and repack .iso bootable image
View Edit_Repack_ISO_tutorial.md

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

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

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


To: recruitment@EmployerABC.com
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
jarun / disassemble.md
Last active Mar 1, 2021
Guide to disassemble
View disassemble.md

prerequisites

  • 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

utilities

objdump

@lifepillar
lifepillar / 24-bit-color.sh
Created Nov 20, 2017
Test 24 bit colors in terminals
View 24-bit-color.sh
#!/bin/bash
#
# 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
setBackgroundColor()