Skip to content

Instantly share code, notes, and snippets.

View gdevenyi's full-sized avatar

Gabriel A. Devenyi gdevenyi

View GitHub Profile
@gdevenyi
gdevenyi / remove-all-from-docker.sh
Last active March 26, 2025 13:40 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
#!/usr/bin/env bash
# Stop all containers
if [[ $(docker ps -qa) ]]; then
docker stop $(docker ps -qa)
fi
# Remove all containers
if [[ $(docker ps -qa) ]]; then
docker rm $(docker ps -qa)
@gdevenyi
gdevenyi / install-frp-as-systemd-service.sh
Last active September 25, 2024 16:45 — forked from lawrenceching/install-frp-as-systemd-service.sh
Install frp as systemd service
#!/bin/bash
# Update on 2024/05/29
# 1. use wget to fetch latest frp version when curl was not installed
# 2. Remind users that frp will be run in non-root user
# 3. Add CI
#
# Update on 2024/04/13
# 1. Improved OS compatibility: try wget and then curl for downloading files.
#
# Update on 2024/01/26
@gdevenyi
gdevenyi / nvenc-install.sh
Created September 17, 2023 17:41 — forked from denji/nvenc-install.sh
Installation script of CUDA-accelerated `ffmpeg` with NVIDIA Encoder
#!/bin/bash
# ==================================================================
# This script will compile and install a static ffmpeg build with
# support for NVENC in Ubuntu. Developed in Ubuntu 22.04 LTS,
# with NVIDIA Drivers v510.73 and CUDA v11.6
# It assumes NVIDA drivers are installed and that you have a
# CUDA-compatible GPU. You can check installed drivers with:
# $ apt list *nvidia-driver-* | grep installed
# $ nvidia-smi
# ==================================================================
@gdevenyi
gdevenyi / Documentation.md
Last active August 29, 2015 14:26 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
#!/usr/bin/env ruby
#
# This script is a wrapper around pandoc that uses pandoc's
# builtin citeproc support to generate a markdown bibliography
# from bibtex.
#
# Inspired by Jacob Barney's [bib2mkd][] script.
#
# [bib2mkd]: http://jmbarney.dyndns.org/?/linux/bib2mkd/
#