Skip to content

Instantly share code, notes, and snippets.

⭕️
This account has been banned.

Tunghsiao Liu sparanoid

View GitHub Profile
@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;
You can’t perform that action at this time.