Skip to content

Instantly share code, notes, and snippets.

View leonmavr's full-sized avatar
🎯
Focusing

Leo Mav leonmavr

🎯
Focusing
View GitHub Profile
#!/bin/bash
## This gist contains instructions about cuda v10.2 and cudnn 8.1.1 installation in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@psyburr
psyburr / ffmpeg_examples.md
Last active April 4, 2025 23:15
ffmpeg options/examples difficult to remember

both audio and video filters option may be expressed as eitber -filter:{a|v} or the short versions used througout this gist

  • Increase/decrease audio tempo/speed this is represented as a percentage. ie: 1.5=1½× normal speed

-af atempo={0.5-100}

  • Remove logo in bottom right-hand corner coordinates are measuring from top left corner of delogo region set
@maky-hnou
maky-hnou / install_cuda10.1_ubuntu18.04.sh
Last active April 21, 2023 10:31
A bash script to install CUDA 10.1 on Ubuntu 18.04.
#!/bin/bash
# 1- Download the script: wget https://gist.githubusercontent.com/maky-hnou/bbb936857a67a614e9fba0dbe2c87233/raw/889b2cf637a6c1af8dc886a996276e7878ed4187/install_cuda10.1_ubuntu18.04.sh
# 2- sudo chmod +x install_cuda10.1_ubuntu18.04.sh
# 3- sudo ./install_cuda10.1_ubuntu18.04.sh
# 4- Restart your computer.
if [[ $EUID -ne 0 ]];then echo "Please run as root";exit 1;fi
if [ ! -n "$BASH" ];then echo Please run this script $0 with bash;exit 1;fi
@Collin-Emerson-Miller
Collin-Emerson-Miller / gist:8b4630c767aeb4a0b324ea4070c3db9d
Last active July 22, 2025 07:29
How to Install XBOX Kinect freenect / libfreenect / python

Install Libfreenect

Most of the instructions from this section originate from this aricle. Feel free to follow along with this gist or use the article.

Let's start by making sure our machine is up to date.

sudo apt-get update
sudo apt-get upgrade
@sliceofbytes
sliceofbytes / txt-to-google-keep-notes.py
Created February 14, 2018 22:16
Add Text Files as Google Keep Notes
#Import a directory of text files as google keep notes.
#Text Filename is used for the title of the note.
import gkeepapi, os
username = 'username@gmail.com'
password = 'your app password'
keep = gkeepapi.Keep()
success = keep.login(username,password)
@heroheman
heroheman / ranger-cheatsheet.md
Last active November 1, 2025 09:37
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@rdleon
rdleon / queue.c
Last active May 4, 2023 11:50
A simple queue implementation in C
#include <stdlib.h>
#include "queue.h"
static struct Node {
void *value;
struct Node *next;
};
struct Queue {
int size;
@omaraflak
omaraflak / main.cpp
Last active November 6, 2024 12:42
Image convolution in C++ + Gaussian blur
#include <iostream>
#include <vector>
#include <assert.h>
#include <cmath>
#include <png++/png.hpp>
using namespace std;
typedef vector<double> Array;
typedef vector<Array> Matrix;
@NickSeagull
NickSeagull / ubuntu-bloat-removal.sh
Last active August 27, 2025 14:29
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \

NES emulator development guide

Overview of document