Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| # The command below creates a tgz file with all emails for [email protected] in .eml format: | |
| # execute as root | |
| /opt/zimbra/bin/zmmailbox -z -m [email protected] getRestURL "//?fmt=tgz" > /tmp/account.tgz | |
| # You can do the same via a REST URL: | |
| wget http://ZIMBRA.SERVER/home/[email protected]/?fmt=tgz | |
| # to restore email: | |
| /opt/zimbra/bin/zmmailbox -z -m [email protected] postRestURL "//?fmt=tgz&resolve=reset" /tmp/account.tgz |
| <?php | |
| /* | |
| * Set the following constants in wp-config.php. | |
| * These should be added somewhere BEFORE the constant ABSPATH is defined. | |
| * | |
| * Author: Chad Butler | |
| * Author URI: https://butlerblog.com | |
| * | |
| * For more information and instructions, see: https://b.utler.co/Y3 |
| # add this before all other rewrite rules in your .htaccess | |
| # backup your Apache file(s) first to avoid breaking things | |
| # BE SURE TO TEST AND RELOAD APACHE AFTER MAKING THIS EDIT | |
| # allow Let's Encrypt to access it's challenge file without the rewrite rules screwing them up | |
| RewriteEngine On | |
| RewriteRule "^.well-known/acme-challenge" - [L] | |
| # Now, run an error check and reload Apache | |
| /usr/sbin/apachectl configtest && /etc/init.d/httpd reload |
| robocopy c:\Sourcepath c:\Destpath /E /XC /XN /XO | |
| :: /E makes Robocopy recursively copy subdirectories, including empty ones. | |
| :: /XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those. | |
| :: /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those. | |
| :: /XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those. | |
| :: With the Changed, Older, and Newer classes excluded, Robocopy will exclude files existing in the destination directory. |
| map $http_accept $api_version { | |
| default 0; | |
| "application/vnd.example.v1+json" 1; | |
| } | |
| server { | |
| listen 80; | |
| listen [::]:80; |
| -- a quick LUA access script for nginx to check IP addresses match an | |
| -- `ip_whitelist` set in Redis, and if no match is found send a HTTP | |
| -- 403 response or just a custom json instead. | |
| -- | |
| -- allows for a common whitelist to be shared between a bunch of nginx | |
| -- web servers using a remote redis instance. lookups are cached for a | |
| -- configurable period of time. | |
| -- | |
| -- white an ip: | |
| -- redis-cli SADD ip_whitelist 10.1.1.1 |
| DROP PROCEDURE IF EXISTS `DropColumnIfExists`; | |
| DELIMITER $$ | |
| CREATE PROCEDURE `DropColumnIfExists` (`@TABLE` VARCHAR(100), `@COLUMN` VARCHAR(100)) | |
| `DropColumnIfExists`: BEGIN | |
| DECLARE `@EXISTS` INT UNSIGNED DEFAULT 0; | |
| SELECT COUNT(*) INTO `@EXISTS` | |
| FROM `information_schema`.`columns` |