- Use exiftool to sort according to exif data (
apt-get install exiftool)
exiftool "-FileName<DateTimeOriginal" -d "sorted/%Y%m%d_%H%M%S.%%e" .- Rotate and resize
mogrify * -auto-orient -resize 1920x1080| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Gradient</title> | |
| <style type="text/css"> | |
| .quadrant-text { | |
| text-anchor: middle; | |
| font-weight: 600; |
| import subprocess | |
| import sys | |
| """ | |
| get single frame at specific time | |
| ================================= | |
| ffmpeg -i "input.mp4" -ss <time> -vframes 1 single.png | |
| get file length in seconds |
| <script> | |
| window.Promise || document.write('<script src="https://unpkg.com/[email protected]/dist/es6-promise.min.js"><\/script>'); | |
| window.fetch || document.write('<script src="https://unpkg.com/[email protected]/fetch.js"><\/script>'); | |
| </script> |
| openssl aes-256-cbc -d -in app_b6666e9-76b3-4b36-b2e2-06da1a4efga4_2000-02-04-190024-556_v0.4.5.tar.gz -out decrypted.tar.gz |
apt-get install exiftool)exiftool "-FileName<DateTimeOriginal" -d "sorted/%Y%m%d_%H%M%S.%%e" .mogrify * -auto-orient -resize 1920x1080| import json | |
| from urllib.request import urlopen | |
| from django.contrib.sites.models import Site | |
| from django.core.management.base import BaseCommand, CommandError | |
| class Command(BaseCommand): | |
| help = 'Sets site domain to ngrok url and update telegram bot webhook' |
| import multiprocessing | |
| import subprocess | |
| import json | |
| with open('json/__all__.json', 'r') as index: | |
| birds = json.loads(index.read()) | |
| def screenshot(slug): | |
| subprocess.run([ | |
| 'google-chrome-unstable', |
| // just a function to simulate IO | |
| function getDouble(n) { | |
| const time = Math.floor(Math.random() * 10 * 1000) | |
| return new Promise((resolve) => { | |
| setTimeout(function() { | |
| console.log(n*2) | |
| resolve(n*2) | |
| }, time) | |
| }) | |
| } |
| #!/bin/bash | |
| apt-get install automake build-essential gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-dev libpng12-dev libwebp-dev libtiff5-dev libexif-dev libgsf-1-dev liblcms2-dev libxml2-dev swig libmagickcore-dev curl | |
| LIBVIPS_VERSION=8.6.3 | |
| cd /tmp | |
| curl -OL https://github.com/jcupitt/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz | |
| tar zvxf vips-${LIBVIPS_VERSION}.tar.gz | |
| cd /tmp/vips-${LIBVIPS_VERSION} |
| find . -name "*.DS_Store" -delete | |
| find . -name "*._*" -delete |