Skip to content

Instantly share code, notes, and snippets.


Anthony Wang anthony-wang

View GitHub Profile
anthony-wang / spotify-hosts.txt
Last active Jul 13, 2018
The hosts file entries to block Spotify ad servers
View spotify-hosts.txt
# Use this to block Spotify ad servers
# sources:
############## Begin manual list
# # might block the entire Spotify app from working too
anthony-wang /
Created Apr 16, 2019 — forked from foosel/
Getting the fingerprint reader of a Thinkpad x240 to work under Ubuntu 14.04

lsusb lists the fingerprint reader in the x240 as follows:

Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.

There exists experimental driver support for this in a fork of libfprint for vfs5011 sensors, however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.

  1. Install fingerprint-gui:

sudo add-apt-repository ppa:fingerprint/fingerprint-gui


Fine-tuning Ubuntu 16.04 on x240

Enabling middleclick scrolling in Ubuntu for Lenovo clickpads

With ubuntu 15.10, full clickpad support is provided by xserver-xorg-input-libinput. No further configuration needed. Tested with a T440s. (According to this)

Fine-tuning Ubuntu 14.04 on x240

anthony-wang / PEP8LineLengths.ipynb
Created Jun 7, 2019 — forked from jakevdp/PEP8LineLengths.ipynb
Further exploration of line lengths and PEP8
View PEP8LineLengths.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anthony-wang /
Created Sep 21, 2019 — forked from fanghuiz/
Script to generate a color timeline based on video input (movie etc.) Modified from
from PIL import Image, ImageEnhance
import os
import subprocess
import sys
# Requires ffmpeg
# Run script as
# python input_video output_frame_folder output_image
anthony-wang / syncscroll
Created Apr 1, 2021 — forked from shawwn/syncscroll
Synchronized scrolling (and zooming) across browser tabs
View syncscroll