Skip to content

Instantly share code, notes, and snippets.

View livibetter's full-sized avatar

Yu-Jie Lin livibetter

View GitHub Profile
@livibetter
livibetter / README
Last active March 23, 2016 01:19
Sweeping audio for testing
Uploaded by request from https://www.youtube.com/watch?v=Uoa6eyi_nXI&lc=z13yg5jy1oijhdtwl04cetbgbuubvhvydy00k
for i in {1..120}; do echo 6000 1 $((100*i)) | wave >> sweep-100-12kHz.raw; done
# Float 32 bit Little Endian, Rate 48000 Hz, Mono
cat sweep-100-12kHz.raw | aplay -f FLOAT_LE -r 48000 -c 1 -q; done
@livibetter
livibetter / README.rst
Last active May 1, 2016 01:02
YouTube Decluttered (userscript)

YouTube Decluttered

This is Greasemonkey user script and Stylish user style for my personal usage.

Contents

@livibetter
livibetter / GitHub_Hide_Some_Repos.user.js
Last active May 1, 2016 01:03
GitHub Hide Some Repos (userscript)
// ==UserScript==
// @name GitHub Hide Some Repos
// @namespace http://localhost/github-hide-some-repos
// @include https://github.com/search?*
// @include https://github.com/*?tab=*
// @include /https:\/\/github\.com\/[-_a-z0-9]+$/
// @version 0.1.2
// @grant none
// ==/UserScript==
// License Public Domain, or via UNLICENSE, if not applicable
@livibetter
livibetter / README.rst
Last active June 29, 2021 22:06
Wish your family and friends a merryxmas.sh (Merry Christmas) via their keyboards and mice

merryxmas.sh

Wish your family and friends a Merry Christmas via their keyboards and mice!

Read the blog post for more, watch the video to see how it sings.

@livibetter
livibetter / xmasterm.py
Last active June 29, 2021 22:07
Christmas terminal
#!/usr/bin/python3
# Xmas Terminal
# Copyright (C) 2012, 2015 Yu-Jie Lin
#
# Modified from urwid's code by Yu-Jie Lin
#
# Blog: http://blog.yjl.im/2012/12/christmas-terminal.html
# Gist: https://gist.github.com/livibetter/127287ca94164e38cb09
# Video: https://www.youtube.com/watch?v=jiBcaV0FqTg
#
@livibetter
livibetter / .gitignore
Last active June 29, 2021 22:07
A rotating ring
ring
@livibetter
livibetter / benchmark.py
Last active August 29, 2015 14:27
Simple performance test on Universal Feed Parser (feedparser) and speedparser
#!/usr/bin/env python
# Written by Yu-Jie Lin
# Placed in Public Domain
# Blog: http://blog.yjl.im/2015/08/speedparser-vs-feedparser-in-performance.html
from timeit import timeit
import feedparser as fp
import speedparser as sp
@livibetter
livibetter / .gitignore
Last active June 29, 2021 22:07
Displaying current weather and forecast in terminal using OpenWeatherMap data
*.json
@livibetter
livibetter / COPYING
Last active September 17, 2016 03:27
Check Twitch.tv live streams and videos
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@livibetter
livibetter / winxp-setup.sh
Last active August 29, 2015 13:57
Fake winxp setup for 2014 April Fools' Day
#!/bin/bash
# This script was written by Yu-Jie Lin in Public Domain, for 2014 April Fools'
# Day for making a YouTube video, 100% not real.
#
# Even one day, Microsoft does release Windows XP source code, which I believe
# it would, but not in near future, I don't think it's possible to release
# under the GPL.
#
# YouTube: https://www.youtube.com/watch?v=-awZX1CWgxU