Skip to content

Instantly share code, notes, and snippets.

@noromanba
noromanba / ytlive.sh
Last active April 8, 2017 18:30
play yt livestreaming from Terminal
#!/usr/bin/env bash
# play yt livestreaming from Terminal;
# and/or workaround of mpv HLS buffer secs to empty BUG
# @version 2017.4.8.0
# @author noromanba
# @license https://opensource.org/licenses/MIT
# https://www.shellcheck.net/
set -euC
@noromanba
noromanba / hatenalet-selffork.user.js
Last active November 14, 2019 15:35
append self-fork icon on Hatena::Let for UserScript
// ==UserScript==
// @name Hatena::Let self fork
// @namespace http://noromanba.flavors.me
// @description append self-fork icon on Hatena::Let for UserScript
// @include http://let.hatelabo.jp/*
// @grant none
// @noframes
// @run-at document-end
// @version 2017.3.2.0
// @homepage https://gist.github.com/noromanba/f5bc6779c3c3005d6d106da5aa624990
@noromanba
noromanba / title-attr-shrinker.user.js
Last active February 22, 2017 23:29
shrink too long title attribute for UserScript
// ==UserScript==
// @name title attr shrinker
// @namespace http://noromanba.flavors.me
// @description shrink too long title attribute for UserScript
// @include http://example.com/DIY
// @grant none
// @noframes
// @run-at document-end
// @version 2017.2.22.1
// @homepage https://gist.github.com/noromanba/f71a9da49f2e44b5c9fc0645f15c05f3
@noromanba
noromanba / ol-canonical.user.js
Last active February 1, 2017 22:21
canonical openload.co for UserScript
// ==UserScript==
// @name OL canonical
// @namespace http://noromanba.flavors.me
// @description canonical openload.co for UserScript
// @include *://openload.co/f/*
// @include *://openload.co/embed/*
// @include *://oload.tv/f/*
// @include *://oload.tv/embed/*
// @grant none
// @noframes
@noromanba
noromanba / lompat-drop.user.js
Last active December 25, 2016 23:15
remove lompat.in redirector for UserScript
// ==UserScript==
// @name lompat.drop
// @namespace http://noromanba.flavors.me
// @description remove lompat.in redirector for UserScript
// @include http://example.com/DIY
// @grant none
// @noframes
// @run-at document-end
// @version 2016.12.25.0
// @homepage https://gist.github.com/noromanba/af8bd6eb81ffadbe6dfaa6dbbd8efdc4
@noromanba
noromanba / apt-daily-timer-disable.md
Created December 25, 2016 17:51
how to disable apt-daily.timer

how to disable apt-daily.timer

$ systemctl stop apt-daily.timer
$ systemctl disable apt-daily.timer
$ systemctl mask apt-daily.service
$ systemctl daemon-reload

check current status

@noromanba
noromanba / canonicalizer.user.js
Last active October 31, 2016 23:39
canonicalize URL for UserScript/Bookmarklet
// ==UserScript==
// @name canonicalizer
// @namespace http://noromanba.flavors.me
// @description canonicalize URL for UserScript/Bookmarklet
// @include http://example.com/DIY
// @grant none
// @noframes
// @run-at document-body
// @version 2016.10.31.1
// @homepage https://gist.github.com/noromanba/3705f2e9ebb8538328b2f3f9a6f1a9b3
@noromanba
noromanba / filesafe.user.js
Last active December 29, 2016 16:38
escape URL for filesystem-failsafe for UserScript/Bookmarklet
// ==UserScript==
// @name filesafe
// @namespace http://noromanba.flavors.me
// @description escape URL for filesystem failsafe for UserScript/Bookmarklet
// @include http://example.com/DIY
// @grant none
// @noframes
// @run-at document-end
// @version 2016.12.29.0
// @homepage https://gist.github.com/noromanba/6f98b144447aa466684bdba871692360
@noromanba
noromanba / sources.list.glitched
Last active October 8, 2016 18:05
glitched /etc/apt/sources.list in Lubuntu 16.04.1 Xenial Xerus i386 missing "Canonical Partners" - c.f. https://gist.github.com/noromanba/dd72bfcabae909d6214431b474100bcf
deb cdrom:[Lubuntu 16.04 LTS _Xenial Xerus_ - Release i386 (20160420.1)]/ xenial main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-backports restricted main universe multiverse
@noromanba
noromanba / canonical-partners.list
Last active October 7, 2016 16:52
append canonical partners apt-source for Ubuntu flavours
# append canonical partners for Ubuntu flavours; e.g. adobe-flashplugin
# deploy to /etc/apt/sources.list.d/
# @author noromanba
# http://ptech.g.hatena.ne.jp/noromanba/20161006/1475785624 (ja)
# missing "[ ] Canonical Partners" in `software-properties-gtk` aka "Software and Updates"
# e.g. Lubuntu 16.04.1 Xenial Xerus
# http://f.hatena.ne.jp/noromanba/20161007023833
#
# appended after deploy and `$ sudo apt update`