Skip to content

Instantly share code, notes, and snippets.

Avatar
⚠️
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined

Tunghsiao Liu sparanoid

⚠️
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
View GitHub Profile
@sparanoid
sparanoid / install-ffmpeg.sh
Created Mar 31, 2021 — forked from Brainiarc7/install-ffmpeg.sh
Installs ffmpeg with libaom and libx265 enabled for av1 and hevc encoding (tested on Ubuntu 16.04)
View install-ffmpeg.sh
#!/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 Oct 21, 2020
ApolloScape datasets download using aria2
View README.md

ApolloScape Datasets Download

Download ApolloScape using aria2.

Usage

$ aria2c -i list.txt
@sparanoid
sparanoid / cloudflare-ddns.sh
Created Jul 28, 2019
CloudFlare as a Dynamic DNS (DDNS)
View cloudflare-ddns.sh
#!/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.
@sparanoid
sparanoid / Makefile
Last active Aug 22, 2018
Fix private keys permission
View Makefile
update:
@chmod 600 ~/.ssh/id_rsa || true
@chmod 600 ~/.ssh/id_dsa || true
@chmod 600 ~/.ssh/id_ecdsa || true
@chmod 600 ~/.ssh/id_ed25519 || true
@chmod 600 ~/.ssh/*.pem || true
@echo "Fixed private keys permission"
View keybase.md

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 Feb 24, 2018
Speedtest.net Auto Update Script
View speedtest.sh
#!/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
View Company Team Blogs in China.md
@sparanoid
sparanoid / stacey-on-nginx.conf
Created Dec 22, 2010
Runing Stacey on nginx
View stacey-on-nginx.conf
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;