Skip to content

Instantly share code, notes, and snippets.

View zhen-huan-hu's full-sized avatar

Zhen-Huan (Kenny) Hu zhen-huan-hu

View GitHub Profile
@zhen-huan-hu
zhen-huan-hu / get-itunes-artwork.py
Last active November 4, 2016 21:39 — forked from worksology/get_artwork.py
A quick command line script to get full movie cover art from iTunes. Just run the script using: python get_artwork.py and then follow the prompts.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import urllib, urllib2
import json
MOVIES = {
'title_prompt': "Search for a movie title (or type '#help' to see more options): ",
'entity': 'movie',
@zhen-huan-hu
zhen-huan-hu / homelab.markdown
Last active October 10, 2023 04:44
Personal Notes on Home Lab Administration

Personal Notes on Home Lab Administration

This is a collection of personal notes on self-hosted home lab administration. This reference assumes the underlying OS is Ubuntu Server 22.04.

Installing a New Hard Drive

List block devices and get UUIDs for the partitions

It is recommended to use lsblk command to get information about block devices rather than blkid. lsblk provides more information, better control on output formatting and it does not require root permission to get actual information.

@zhen-huan-hu
zhen-huan-hu / config
Created February 15, 2018 00:25 — forked from anonymous/config
mpv Configuration for Windows
##################
# video settings #
##################
# Specify default video driver (see --vo=help for a list).
vo = opengl-hq:interpolation
# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
hwdec = cuda
@zhen-huan-hu
zhen-huan-hu / keny-systeminfo.sh
Last active February 16, 2021 13:48
Bash script for system info
#! /bin/bash
fstr=$(tput bold)
fend=$(tput sgr0)
# Check OS version
echo "${fstr}System version:${fend}" $(lsb_release -ds)
# Check kernel release
echo "${fstr}Kernel release:${fend}" $(uname -sr)