This file contains hidden or 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
ffmpeg -i video.mp4 %04d.png && montage -geometry $(identify -format '%wx%h' $(ls | sort | head -1)) -tile 8x *.png sprite.jpg && echo $(ls *.png | wc -l) "frames" && rm *.png |
This file contains hidden or 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 | |
# Create a base64 data URI from an image and copy it to clipboard. | |
# Uses OpenSSL to create the base64 representation. | |
the_mimetype=$(file -bN --mime-type "$1") | |
the_content=$(openssl base64 < "$1" | tr -d '\n') | |
# Use printf instead of echo to avoid the ending newline | |
printf "data:$the_mimetype;base64,$the_content" | pbcopy |
This file contains hidden or 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
# Pull images from remote site instead of local | |
# only if file requested is from the uploads folder | |
# and if the file does not exist locally | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ https://SOMESITE.com/$1 [QSA,L] |
This file contains hidden or 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
$ dig yourdomain.com ANY @8.8.8.8 |
OlderNewer