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
# Plugin that creates an m3u playlist of the downloaded videos in the order | |
# they are downloaded. The m3u is named after the playlist and put in the | |
# output directory. | |
import os | |
# ⚠ Don't use relative imports | |
from yt_dlp.postprocessor.common import PostProcessor | |
# ℹ️ See the docstring of yt_dlp.postprocessor.common.PostProcessor | |
class SavePlaylistPP(PostProcessor): |
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
[ | |
{ | |
"name": "NHK FM", | |
"status": "ACTIVE", | |
"country_code": "jp", | |
"country_name": "Japan", | |
"streams": [ | |
{ | |
"quality": 0, | |
"url": "https://nhkradioakfm-i.akamaihd.net/hls/live/512290/1-fm/1-fm-01.m3u8" |
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
! | |
! Make Caps_Lock a Control_L | |
! | |
remove Lock = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Control = Control_L | |
! | |
! Swap Mod1 and Mod5 | |
! |
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
require 'open-uri' | |
def decipher_function_name_pattern | |
# Find "C" in this: var A = B.sig || C (B.s) | |
/ | |
\.sig | |
\s* | |
\|\| | |
(\w+) | |
\( |
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
class Decipherer | |
class UnknownCipherVersionError < StandardError; end | |
class UnknownCipherOperationError < StandardError; end | |
# Big credit to http://www.jwz.org/hacks/youtubedown | |
CIPHERS = { | |
'vflNzKG7n' => 's3 r s2 r s1 r w67', # 30 Jan 2013, untested | |
'vfllMCQWM' => 's2 w46 r w27 s2 w43 s2 r', # 15 Feb 2013, untested | |
'vflJv8FA8' => 's1 w51 w52 r', # 12 Mar 2013, untested |
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
tmux has-session -t development | |
if [ $? != 0 ] | |
then | |
tmux new-session -s development -n editor -d | |
tmux send-keys -t development 'cd ~/Programming' C-m | |
tmux send-keys -t development 'vim' C-m | |
tmux split-window -h -p 35 -t development | |
tmux split-window -v -p 50 -t development | |
tmux send-keys -t development:1.2 'cd ~/Programming' C-m | |
tmux send-keys -t development:1.3 'cd ~/Programming' C-m |
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
# Enable 256 color mode | |
set -g default-terminal "screen-256color" | |
# Disable mouse | |
set -g mouse off | |
# Set the prefix from C-b to C-a | |
set -g prefix C-a | |
unbind C-b |
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
execute pathogen#infect() | |
autocmd vimenter * if !argc() | NERDTree | endif | |
set expandtab | |
set hidden | |
set number | |
set shiftwidth=2 | |
set softtabstop=2 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE Event [ | |
<!ELEMENT Event (EventName, Race*)> | |
<!ELEMENT Race (RaceNumber, RaceDistance, RaceComment?, Horse*)> | |
<!ELEMENT EventName (#PCDATA)> | |
<!ELEMENT RaceNumber (#PCDATA)> | |
<!ELEMENT RaceDistance (#PCDATA)> | |
<!ELEMENT RaceComment (#PCDATA)> | |
<!ELEMENT Horse (HorseName, Teamster, HorseComment?)> |
NewerOlder