Skip to content

Instantly share code, notes, and snippets.

On vacation

Ritiek Malhotra ritiek

On vacation
View GitHub Profile
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 Nov 19, 2020
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
prochor666 /
Last active Oct 14, 2020
Mount Google drive under Debian Linux (Jessie and later)
nzec / README.MD
Last active Nov 4, 2020
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 Nov 19, 2020
Edit and repack .iso bootable image

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

fasiha /
Last active Dec 3, 2020
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 Dec 5, 2020
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

How to update a borrowck test for MIR borrowck

When we fix a bug in MIR borrowck, we often want to update an existing test and show that it does the same thing for MIR and AST borrowck. This gist describes the steps to do it.

compile-fail tests

An example of a test that has been updated to test both MIR and AST borrowck is borrowck-match-already-borrowed.

yangxuan8282 /
Last active Jun 3, 2020
compile mpv with hardware acceleration (mmal) on RPi, no windows borders


The latest working mpv version for this guides is 0.27.2, tested on 2018-03-13-raspbian-stretch.

sudo apt-get update && sudo apt-get upgrade -y && 
sudo apt-get install -y git devscripts equivs &&
sudo apt-get install -y libgles2-mesa-dev
You can’t perform that action at this time.