sudo du --si -xct 1000000000 /System/Volumes/Data | tee >(grep -ve $'*\t' > ~/DiskSpace.txt) | sort -nr > ~/SortedDiskSpace.txt
si
= human readable xct
= threshold set to 1GB
$numberofprints = $conn->query('select count(*) from prints')->fetchColumn();
then just use the variable see also
https://phpdelusions.net/pdo#count
keyboard chords keys alone/with other keys sublayers
henrymisc.karabiner mxstbr.karabiner
to do perform a test. calculate two colors, calculate contrast, verify with online tool the relative brightness of any point in a colorspace, normalized to 0 for darkest black and 1 for lightest white L = 0.2126 * R + 0.7152 * G + 0.0722 * B
where R, G and B are defined…
{ "description": "Launch something with Q+F simultaneously", "manipulators": [ { "type": "basic", "from": { "simultaneous": [ { "key_code": "q" }, { "key_code": "f" } ], "modifiers": { "optional": [ "any" ] } }, "to": [ { "shell_command": "open -a 'MyFavorite.app'" } ], "parameters": { "basic.simultaneous_threshold_milliseconds": 1000000 } } ] },
Keys Value none 0 ⇧ 131072 ⌃ 262144 ⌃⇧ 393216 ⌥ 524288 ⌥⇧ 655360 ⌃⌥ 786432 ⌃⌥⇧ 917504 ⌘ 1048576 ⇧⌘ 1179648 ⌃⌘ 1310720 ⌃⇧⌘ 1441792 ⌥⌘ 1572864 ⌥⇧⌘ 1703936 ⌃⌥⌘ 1835008 ⌃⌥⇧⌘ 1966080
Key Value cmd ⌘ 1048576 option ⌥ 524288 ctrl ⌃ 262144 shift ⇧ 131072 fn 8388608
for use with Karabiner and Hammerspoon
v6 convert infile.jpg -rotate 270 outfile.jpg
v7 convert infile.jpg -rotate 270 outfile.jpg
exiftool -orientation#=1 file.ext
1 = Horizontal (normal) 3 = Rotate 180 6 = Rotate 90 CW 8 = Rotate 270 CW 2 = Mirror horizontal 4 = Mirror vertical 5 = Mirror horizontal and rotate 270 CW 7 = Mirror horizontal and rotate 90 CW
ffprobe -i -show_entries format=duration -v quiet -of csv="p=0"
instead of ffmpeg
sed -n -e 'N,NNp' $file > new$file
from N to NN sed -n -e '1,50p' $file > songs/$file
Posts navigation