This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name youtube.com full-height theater | |
@version 20230830.07.59 | |
@namespace nathyong.github.io | |
@description little tweak that makes player in theater mode take almost entire height of the screen (still with topbar visible) | |
@author nathyong | |
@license No License | |
==/UserStyle== */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
from subprocess import check_output, STDOUT, CalledProcessError, call | |
from sys import argv, stdout, stdin | |
def run(func): | |
"""Run a function and capture the output.""" | |
if type(func) != type([]) and type(func) == type(""): | |
func = func.split(' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lovingly ripped off the _tmux completion module included in zsh | |
function __tmux-sessions() { | |
local expl | |
local -a sessions | |
sessions=( ${${(f)"$(command tmux 2> /dev/null list-sessions)"}/:[ $'\t']##/:} ) | |
_describe -t sessions 'sessions' sessions "$@" | |
} | |
function _tmux-attach-session() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Put me in ~/.irssi/scripts, and then execute the following in irssi: | |
## | |
## /load perl | |
## /script load irssi-terminal-notify | |
## | |
use strict; | |
use Irssi; | |
use vars qw($VERSION %IRSSI); |