Skip to content

Instantly share code, notes, and snippets.

Total objects size:82485061812
Total objects number:28316047
CNS:{:count=>5925, :size=>116272}
Top 10 projects by size
58aae0be9ba4d900075ef35f
{"q:"=>{:size=>79802075800, :count=>4394003}, :total=>{:size=>79802091074, :count=>4394049}, "m:"=>{:size=>15274, :count=>46}}
5afa8ce03215080009198861
{"q:"=>{:size=>1341877908, :count=>728228}, :total=>{:size=>1341886696, :count=>728234}, "m:"=>{:size=>8788, :count=>6}}
59883dad8f237e000a1e3025
{"q:"=>{:size=>873431360, :count=>750968}, :total=>{:size=>873449766, :count=>750996}, "m:"=>{:size=>18406, :count=>28}}
#!/bin/bash
TMPPATH="/tmp"
function run_ffmpeg(){
input_file=$1
output_file=$2
echo ffmpeg from $1 to $2
#ffmpeg -v info -hide_banner -i ${input_file} -c:v libx264 -x264opts bitrate=1200:vbv-maxrate=1200:vbv bufsize=200:nal-hrd=cbr:force-cfr=1 -r 30 -movflags +faststart -pix_fmt yuv420p -preset slow -tune film -c:a aac -ar 44100 -b:a 128k ${output_file}.mp4
}
SRC=$1
#!/usr/bin/env python
import os,sys,re
from sets import Set
from pipes import quote
FILE_TYPES=[
'.mkv',
'.avi',
'.mp4',
'.flv'
@dukelion
dukelion / gist:2c821050cd26be74113f709b735524f1
Created April 6, 2026 18:57
COI recipes energy efficiency
# Refinery HSU Equations
This note tracks refinery-chain recipes in terms of `HSU`, short for `High Steam Unit`.
`1 HSU` is defined as the energy content of `1` unit of `Steam (high)`. Using the high-pressure turbine recipe:
- `4 Steam (high) -> 6000 kW for 10 s`
- so `4 HSU = 60000 kW*s`
- therefore `1 HSU = 15000 kW*s`