- -0222-01-28
1
: https://papyri.info/ddbdp/p.enteux;;981
: https://papyri.info/ddbdp/p.enteux;;951
: https://papyri.info/ddbdp/p.enteux;;891
: https://papyri.info/ddbdp/p.enteux;;871
: https://papyri.info/ddbdp/p.enteux;;751
: https://papyri.info/ddbdp/p.enteux;;731
: https://papyri.info/ddbdp/p.enteux;;711
: https://papyri.info/ddbdp/p.enteux;;6
1
:
View m4adetag.sh
This file contains 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 | |
OFFSET=$(ggrep --only-matching --byte-offset --max-count=1 --binary --text --perl-regexp "\x00\x00\x00\x1c" "$1" | head -1 | cut -d':' -f1) | |
tail -c +$(( $OFFSET + 1 )) "$1" | ghead -c -128 > untagged.m4b | |
if ffprobe -loglevel quiet untagged.m4b ; then | |
echo "Untagging succeeded for: $1" | |
mv untagged.m4b "$1" | |
else | |
echo "Untagging failed for: $1" | |
fi |
View bookmarks_export.rb
This file contains 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 | |
# Based on: https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Bookmarks-lookup/bookmarks_lookup.rb | |
# See: https://github.com/ryanfb/twitter-bookmarks-export | |
require 'json' | |
require 'typhoeus' | |
require 'twitter_oauth2' | |
# First, you will need to enable OAuth 2.0 in your App’s auth settings in the Developer Portal to get your client ID. | |
# Inside your terminal you will need to set an enviornment variable | |
# export CLIENT_ID='your-client-id' |
View mbox-size.rb
This file contains 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 | |
emails = {} | |
email_length = 0 | |
last_email_from = nil | |
File.open(ARGV[0], "r:ASCII-8BIT").each_line do |line| | |
if line.start_with?('From ') | |
unless last_email_from.nil? | |
emails[last_email_from] ||= 0 |
View bl-dl.sh
This file contains 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 | |
wget -O - "$1" | fgrep 'id="PageList"' | sed -e 's/^.*value="//' -e 's/" \/>.*//' -e "s/||/\n/g" | grep -v '^##$' | sort | uniq | while read i; do echo "$i"; dezoomify-rs -l "http://www.bl.uk/manuscripts/Proxy.ashx?view=${i}.xml" "${i}.jpg"; done |
View wait_for_deploy.rb
This file contains 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 'json' | |
require 'shellwords' | |
unless ARGV.length == 1 | |
$stderr.puts "Usage: wait_for_deploy.rb https://example.com/status.json" | |
exit 1 | |
end |
View ffmpegconcat.sh
This file contains 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 | |
# Usage: | |
# ./ffmpegconcat.sh input1.mp4 input2.mp4 input3.mp4 output.mp4 | |
# See: https://trac.ffmpeg.org/wiki/Concatenate | |
for input in "${@:1:$#-1}"; do echo "file '$input'"; done > filelist.txt | |
ffmpeg -f concat -safe 0 -i filelist.txt -c copy "${@: -1}" | |
echo "Concatenated:" && cat filelist.txt && rm -f filelist.txt |
View id3v2len.sh
This file contains 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 | |
for i in *.mp3; do | |
duration=`echo "$(( $(sox "$i" -n stat 2>&1|fgrep 'Length'|cut -d':' -f2|xargs) * 1000 ))"| awk '{printf("%d\n",$0+=$0<0?0:0.9)}'` | |
echo "$i: $duration" | |
id3v2 --TLEN "$duration" "$i" | |
done |
View blender_compress_mesh.py
This file contains 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
# Blender Python script for converting a mesh to GLB with Draco compression. | |
# Tested on Blender 2.82 | |
# Usage: | |
# blender --background --factory-startup --addons io_scene_gltf2 --python blender_compress_mesh.py -- -i #{source_path} -o #{out_path} | |
from os import path | |
from contextlib import redirect_stdout | |
from sys import argv | |
import argparse | |
import io | |
import bpy |
View last-modified.js
This file contains 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
function setModifiedDate() { | |
if (document.getElementById('last-modified')) { | |
fetch("https://api.github.com/repos/{{ site.github.owner_name }}/{{ site.github.repository_name }}/commits?path={{ page.path }}") | |
.then((response) => { | |
return response.json(); | |
}) | |
.then((commits) => { | |
var modified = commits[0]['commit']['committer']['date'].slice(0,10); | |
if(modified != "{{ page.date | date: "%Y-%m-%d" }}") { | |
document.getElementById('last-modified').textContent = "Last Modified: " + modified; |
View unique-full-dates-urls.md
NewerOlder