Skip to content

Instantly share code, notes, and snippets.

View sparanoid's full-sized avatar
⚠️
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined

sparanoid

⚠️
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
View GitHub Profile
@sparanoid
sparanoid / install-ffmpeg.sh
Created March 31, 2021 08:20
Installs ffmpeg with libaom and libx265 enabled for av1 and hevc encoding (tested on Ubuntu 16.04)
#!/usr/bin/env bash
# Installs ffmpeg from source (HEAD) with libaom and libx265, as well as a few
# other common libraries
# binary will be at $BASE_DIR/bin/ffmpeg
apt update && apt upgrade -y
BASE_DIR="/openbayes/home"
@sparanoid
sparanoid / README.md
Last active October 21, 2020 02:38
ApolloScape datasets download using aria2

ApolloScape Datasets Download

Download ApolloScape using aria2.

Usage

$ aria2c -i list.txt
@sparanoid
sparanoid / cloudflare-ddns.sh
Created July 28, 2019 04:16
CloudFlare as a Dynamic DNS (DDNS)
#!/bin/bash
# CloudFlare as a Dynamic DNS (DDNS)
# Support CloudFlare API v4
# Author: Tunghsiao Liu (t@sparanoid.com)
# Setup envrionment
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
# NOTE: You need `curl` v7.19.4 or higher to support `--noproxy` flag.

Keybase proof

I hereby claim:

  • I am sparanoid on github.
  • I am sparanoid (https://keybase.io/sparanoid) on keybase.
  • I have a public key whose fingerprint is 1D00 9217 C41B 9F55 DA73 3686 1EC0 7B97 513A 7726

To claim this, I am signing this object:

@sparanoid
sparanoid / speedtest.sh
Last active February 24, 2018 20:09
Speedtest.net Auto Update Script
#!/usr/bin/env bash
# Speedtest.net Auto Update Script
# Usage: Download the latest SpeedTest script monthly as in 1st of every month at 00:00
# 0 0 1 * * nice -n 19 bash /srv/www/speedtest.sh >/dev/null 2>&1
# Make sure speedtest.sh is executable
# chmod +x /srv/www/speedtest.sh
DES_PATH=/usr/share
PUB_PATH=/srv/www/speedtest.tokyo.sparanoid.com/public_html
ST_DIR=speedtest
@sparanoid
sparanoid / stacey-on-nginx.conf
Created December 22, 2010 06:08
Runing Stacey on nginx
server {
listen 80;
server_name sparanoid.com www.sparanoid.com;
server_name_in_redirect off;
access_log /srv/www/sparanoid.com/logs/access.log;
error_log /srv/www/sparanoid.com/logs/error.log;
location / {
root /srv/www/sparanoid.com/public_html;