Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Ritiek Malhotra ritiek

🌴
On vacation
View GitHub Profile
@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 Nov 19, 2020
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@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 Nov 4, 2020
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 Nov 19, 2020
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 Dec 3, 2020
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 Dec 5, 2020
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()
View updating-mir-borrowck-tests.md

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
yangxuan8282 / compile-mpv-mmal-rpi.md
Last active Jun 3, 2020
compile mpv with hardware acceleration (mmal) on RPi, no windows borders
View compile-mpv-mmal-rpi.md

mpv

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.