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 / 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)
@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 / 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',