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
# Set EXIF timestamp based on filename | |
exiftool -d '%m-%d-%y_%H%M%S0.jpg' -overwrite_original '-DateTimeOriginal<Filename' -ext jpg . | |
exiftool -d '%m-%d-%y_%H%M%S0.jpg' -overwrite_original '-DateTimeOriginal<Filename' -if 'not $DateTimeOriginal' -ext jpg . | |
# Set EXIF User Comment to original filename | |
exiftool -overwrite_original '-UserComment<${Filename;s/\.[^.]*$//}' -ext jpg . | |
# Copy EXIF | |
exiftool -overwrite_original -TagsFromFile "$from" "$to" | |
# Set EXIF timestamp from file mtime | |
exiftool -overwrite_original '-DateTimeOriginal<FileModifyDate' -ext jpg . | |
# Shift dates in EXIF (-AllDates[+-]=Y:m:D HH:MM:SS) |
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 python3 | |
import os | |
import sys | |
import time | |
import prctl # pylint: disable=import-error | |
import signal | |
import socket | |
import threading | |
import logging | |
import json |
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/sh | |
# for Macbook (MacOS) | |
# prereq.: | |
# - custom ffmpeg installation: | |
# brew tap justinmayer/tap | |
# brew install justinmayer/tap/ffmpeg --with-fdk-aac --with-libvidstab --with-webp | |
# - brew install exiftool | |
function mts_to_mp4_h265_cpu() { |
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
AS47764 | |
AS60476 | |
AS21051 | |
5.61.16.0/21 | |
5.61.232.0/21 | |
79.137.157.0/24 | |
79.137.174.0/23 | |
79.137.183.0/24 | |
94.100.176.0/20 |
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
port: 4231 | |
http_port: 8231 | |
store: "file" | |
dir: "/data" | |
cluster { | |
host: '10.10.0.100' | |
port: 5231 | |
bootstrap: true |
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
### | |
# HAProxy configuration for Eventmq Web-node. | |
# Configured to serve: | |
# - 100k websocket connections | |
# - 2k (2% of WS) streaming connections (5k fullconn) | |
# - 100 (0.1% of WS) xhr connections (5k fullconn) | |
### | |
global | |
log 127.0.0.1 local2 info |
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
vcl 4.0; | |
# RabbitMQ management console. | |
backend default { .host = "127.0.0.1"; .port = "15673"; } | |
sub vcl_recv { | |
# We only deal with GET and HEAD | |
if( req.method!="GET" && req.method!="HEAD" ) { | |
return (pass); | |
} |