Instantly share code, notes, and snippets.

View No_Vodcasts.user.js
// ==UserScript==
// @name No Vodcasts
// @namespace
// @include*
// @version 1
// @grant none
// ==/UserScript==
function check_stream(stream)
View README.rst

All the files in this repository are licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

You might also want to check out the scripts.

Copyright (c) 2017 Yu-Jie Lin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
SALL=($(egrep '^s(\w).*\1.*\1$' "$DICT"))
#!/usr/bin/env python3
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np
# patch for ax.xaxis
# 1. ax.xaxis.set_animated(True)
# 2. add ax.xaxis to the returning list of update function
#!/usr/bin/env python3
from timeit import timeit
NUMBER = 1000
ELEMENTS = 10000
SETUP = 'N = {}; X = list(range(N)); Y = list(range(N))'.format(ELEMENTS)
SETUP_NP = 'N = {}; import numpy as np; X = np.arange(N); Y = np.arange(N)'.format(ELEMENTS)
$ ping -i 10 -D |
sed -un '/\[/ s/\[\([0-9]\+\).* time=\([0-9.]\+\).*/\1 \2/p' |
tee ping-
$ ping -i 10 -D |
sed -un '/\[/ s/\[\([0-9]\+\).* time=\([0-9.]\+\).*/\1 \2/p' |
tee ping-
$ ./ping.gnu && sxiv ping-168.95.png
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
View MOVED [1] has been moved to GitHub.
View streaming
# Written by Yu-Jie Lin in 2016
# Adopted from
# With guides
LOG_OPTS='-loglevel warning -stats'