This file contains hidden or 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
pcm.!default { | |
type hw | |
card 0 | |
} | |
ctl.!default { | |
type hw | |
card 0 | |
} |
This file contains hidden or 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/env ruby | |
# -*- coding: utf-8 -*- | |
require 'mechanize' | |
require 'nokogiri' | |
require 'logger' | |
class Vocalyric | |
def initialize | |
@agent = Mechanize.new | |
@agent.log = Logger.new "mech.log" |
This file contains hidden or 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/env ruby | |
require 'niconico' | |
require 'streamio-ffmpeg' | |
require 'optparse' | |
require 'yaml' | |
# also requires danmaku2ass | |
VIDEO_URL = /https?:\/\/(?:www\.|secure\.)?nicovideo\.jp\/watch\/((?:[a-z])+?[0-9]+)/ | |
count = 1000 |
This file contains hidden or 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
#!/bin/bash | |
# mpv-seq - Play files in a directory in order, starting from given file | |
# caveat: needs the filename as first argument, then arguments to pass to mpv | |
playlist=/var/tmp/.playlist | |
thisfile="$0" | |
qa="$1" | |
q=$(printf '%s\n' "$qa" | sed 's/[[\.*^$/]/\\&/g') | |
ext="${q##*.}" |
NewerOlder