Skip to content

Instantly share code, notes, and snippets.

@an-electric-sheep
an-electric-sheep / gelbooru-nav.user.js
Last active March 13, 2017 19:33
gelbooru keyboard navigation - click on RAW link to install
// ==UserScript==
// @name Gelbooru Keyboard Navigation
// @namespace https://github.com/an-electric-sheep
// @downloadURL https://gist.githubusercontent.com/an-electric-sheep/a64fe6800ef5af8225fecac208a83387/raw/gelbooru-nav.user.js
// @include http://gelbooru.com/*
// @version 7
// @grant none
// @run-at document_start
// ==/UserScript==
@an-electric-sheep
an-electric-sheep / meguca.user.js
Last active January 12, 2018 23:26
meguca multi-upload userscript - click RAW to install
// ==UserScript==
// @name meguca multi-upload
// @downloadURL https://gist.github.com/an-electric-sheep/ce0cd642b2bff8508f39931e902588b1/raw/meguca.user.js
// @namespace https://github.com/an-electric-sheep
// @description drag&drop 2 or more files onto meguca to auto-dump
// @include *://meguca.org/*
// @version 2.13
// @grant none
// @run-at document-start
// @noframes
@an-electric-sheep
an-electric-sheep / tweetdeck.css
Last active July 28, 2016 07:01
tweetdeck style (stylish)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tweetdeck.twitter.com") {
.js-column{width:calc(100% - 6px) !important; }
.chirp-container {display:flex; flex-wrap: wrap;flex-direction: row; justify-content: center;}
.obj-left, .obj-left img{width:25px; height:25px; margin:3px !important;}
.tweet{width:100%;padding-left:0px !important;}
.stream-item{
font-size:8pt !important;
width:calc(20% - 6px) !important;
#!/usr/bin/ruby
# usage: 4webm fileA.mkv from_timestamp1 to_timestamp1 [from_timestamp2 to_timestamp2] [fileB.mkv from_timestamp3 to_timestamp3 ...]
require "pathname"
require 'tmpdir'
require "shellwords"
require "time"
FileOptions = Struct.new(:file, :start, :end)