Step 1. Make sure videos are completely the same spec-wise (same resolution/aspect ratio/time base/etc)
- Two videos:
a.mov
,b.mov
a.mov
: 838x838b.mov
: 724x724
# monkey patch Etc module to work around the segfault that occurs using when | |
# oslogin is enabled on newer systems (Debian 11+, Ubuntu 20.04+) | |
# https://github.com/chef/chef/issues/12993 | |
module PatchedEtc | |
def _getent(db, key, regex, schema, struct_klass, error_word = db) | |
info = `getent #{db} #{key}`.chomp | |
raise(ArgumentError, "can't find #{error_word} for #{key}") unless $?.success? | |
fn_schema = schema.map { |k, v| v.class == Class ? [k, _to_class_fn(v)] : [k, v] }.to_h | |
matches = info.match(regex) |
#!/usr/bin/env python3 | |
""" | |
og perl source: | |
https://github.com/rakshasa/rtorrent/blob/79765768ff3d93a511ceb90df24a8dbb0a62e4f5/doc/rtorrent_fast_resume.pl | |
""" | |
""" | |
Usage: | |
rtorrent_fast_resume.py [base-directory] < plain.torrent > with_fast_resume.torrent |
#!/usr/bin/env python3 | |
import argparse | |
import collections | |
import io | |
import os | |
import pickle | |
import sys | |
def existing_file(p): |
#!/usr/bin/env bash | |
set -e | |
function log() { echo "$(date +"%Y-%m-%d %H:%M:%S")" "$@"; } | |
pkg_url="https://zoom.us/client/latest/zoom_x86_64.tar.xz" | |
arch_pkg_url="https://zoom.us/client/latest/zoom_x86_64.pkg.tar.xz" | |
zoom_pkg="zoom_x86_64.tar.xz" | |
etag="zoom-etag.txt" |
Script → iTerm2 8/14, 9:30:40.918 AM: | |
<ITMClientOriginatedMessage 0x7fa05b978e50>: { | |
id: 0 | |
notification_request { | |
session: "all" | |
subscribe: true | |
notification_type: NOTIFY_ON_VARIABLE_CHANGE | |
variable_monitor_request { | |
name: "effectiveTheme" | |
scope: APP |
class Librdkafka < Formula | |
desc "The Apache Kafka C/C++ library" | |
homepage "https://github.com/edenhill/librdkafka" | |
url "https://github.com/edenhill/librdkafka/archive/v0.9.2.tar.gz" | |
sha256 "c243b66956ebb196510ee0efda67825467e31b93639d5f24eb082b5d83f56824" | |
head "https://github.com/edenhill/librdkafka.git" | |
bottle do | |
cellar :any |
# file: client/actions.py | |
#!/usr/bin/python | |
# Created For Solus Operating System | |
from pisi.actionsapi import get, pisitools, shelltools | |
NoStrip = ["/usr"] | |
IgnoreAutodep = True |
#!/bin/bash | |
for ((i=1; i<=13; i++)) do | |
if [[ "$i" -ge 10 ]]; then | |
name=$(ls The\ Expanse\ -\ S02E$i*.mkv) | |
else | |
name=$(ls The\ Expanse\ -\ S02E0$i*.mkv) | |
fi | |
# extract out dts track (id: 1 all files) |
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false |