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| find . -name "*.png" -exec optipng '{}' \; | |
| find . -name "*.jpg" -exec jpegoptim '{}' \; | 
| upstream transmission { | |
| server 127.0.0.1:9091; #Transmission | |
| } | |
| server { | |
| listen 443 ssl http2; | |
| server_name example.com; | |
| auth_basic "Server Restricted"; | |
| auth_basic_user_file /var/www/myWebSite/web/.htpasswd; | |
| # Path to the root of your installation | 
| #!/bin/bash | |
| # Install script for Latest WordPress on local dev | |
| # Setup | |
| # Hardcoded variables that shouldn't change much | |
| # Path to MySQL | |
| MYSQL='/usr/bin/mysql' | 
| # Simple PowerShell script to load-test / test REST api with headers and cookies. | |
| # Harald S. Fianbakken | |
| $headers = @{ | |
| "Accept"= "application/zip"; | |
| "Accept-Encoding"= "gzip,deflate,sdch"; | |
| "My-Token-ID" = "This_is_a_test"; | |
| }; | |
| function Create-Cookie($name, $value, $domain, $path="/"){ | 
| When running certain commands like ssh or git within Terminal on OSX you may get notices like the one below, which can be annoying. | |
| perl: warning: Setting locale failed. | |
| perl: warning: Please check that your locale settings: | |
| LANGUAGE = (unset), | |
| LC_ALL = (unset), | |
| LANG = "en_US.UTF-8" | |
| are supported and installed on your system. | |
| perl: warning: Falling back to the standard locale ("C"). | |
| root@camille:/etc/pve# lvcreate -L 16M -n vm-119-disk-1 vms | |
| device-mapper: create ioctl on vms-vm--119--disk--1 failed: Device or resource busy | |
| Failed to activate new LV. | |
| root@camille:/etc/pve# | |
| ==> http://setaoffice.com/2015/03/25/device-mapper-create-ioctl-failed-device-or-resource-busy/ | |
| root@camille:/etc/pve# | |
| root@camille:/etc/pve# dmsetup | |
| Usage: | 
| <system.webServer> | |
| ... | |
| <httpErrors errorMode="Detailed" existingResponse="PassThrough"> | |
| </httpErrors> | |
| ... | |
| </system.webServer> | 
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| #!/bin/bash | |
| ### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
| ### updates a record with the script-runner's public IP, as resolved using a DNS | |
| ### lookup. | |
| ### | |
| ### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
| ### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
| USERNAME="" |