Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
There's no good reason to do this, but some automated file checks are set to reject files that aren't "300 DPI". You will need EXIFTOOL installed, obviously. | |
```shell | |
exiftool -XResolution=300 -YResolution=300 -overwrite_original my-stupid-file.jpg | |
# works on a buncha files too. | |
exiftool -XResolution=300 -YResolution=300 -overwrite_original ./*.jpg | |
``` |
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
version: '2' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- "./.data/db:/var/lib/mysql" | |
ports: | |
- "[YOUR_DESIRED_SQL_PORT]:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress |
add_filter( 's3_uploads_s3_client_params', function ( $params ) { | |
if ( defined( 'S3_UPLOADS_ENDPOINT' ) ) { | |
$params['endpoint'] = S3_UPLOADS_ENDPOINT; | |
} | |
return $params; | |
}, 5, 1 ); |
# CD to the document root. | |
cd /var/www/public/ | |
# Update WP-CLI if needed. | |
sudo wp cli update --allow-root --yes | |
# Download WordPress if needed. | |
wp core download | |
# Create configuration file. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Perhaps better to whitelist expires rules? Perhaps. | |
ExpiresDefault "access plus 1 month" | |
# Data | |
ExpiresByType text/xml "access plus 0 seconds" | |
ExpiresByType application/xml "access plus 0 seconds" | |
ExpiresByType application/json "access plus 0 seconds" |