Skip to content

Instantly share code, notes, and snippets.

@omgitsraven
omgitsraven / twitsafe.bat
Created January 31, 2018 15:11
FFMPEG command to produce MP4s that Twitter won't reject
ffmpeg -i %1 -ac 2 -pix_fmt yuv420p -vsync 2 -r 60 %1.mp4
@omgitsraven
omgitsraven / gocomics_skip.js
Last active April 17, 2018 18:54
bookmarklet to skip GoComics mandatory clickthrough page
javascript:var n=new Date();location.href="http://www.gocomics.com/nancy/"+n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate();
@omgitsraven
omgitsraven / gist:404ff29281c9e368eba7410bbff713eb
Last active January 4, 2021 18:24
Greasemonkey - skip GDQ schedule to now
// ==UserScript==
// @name Skip GDQ schedule to now
// @version 1
// @grant none
// @match https://gamesdonequick.com/schedule
// ==/UserScript==
window.addEventListener('load', function() {
setTimeout(function(){
var now = new Date();
@omgitsraven
omgitsraven / logdeep.js
Created September 11, 2019 00:52
Use node.js to produce a list of all of the files below a certain directory, and their filesizes, for the sake of a quick-and-dirty diff across two machines that should be in sync.
const fs = require('fs');
var root = process.argv[2];
var result = "";
var count = 0;
function readBelow(curRoot){
var contents = fs.readdirSync(curRoot,{withFileTypes:true});
for(var entry of contents){
var pathToMe = curRoot+"\\"+entry.name;