Skip to content

Instantly share code, notes, and snippets.

View drdogbot7's full-sized avatar
🏚️
Working from home

Jeremy Mullis drdogbot7

🏚️
Working from home
  • Lawrence, KS
View GitHub Profile
@ScribbleGhost
ScribbleGhost / Add Process all files in folder to the context menu.reg
Created October 11, 2020 15:49
Add batch file to the context menu - Process all files in folder
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Process all files in folder]
@="&Process all files in folder"
[HKEY_CLASSES_ROOT\Directory\shell\Process all files in folder\command]
@="\"C:\\Scripts\\Process all files in folder.bat\" \"%1\""
@drdogbot7
drdogbot7 / gist:ae995aaf4161868ffaec66835a0361d4
Last active November 4, 2022 05:01
EXIFTOOL command to tag resolution to 300 PPI (aka DPI)
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;});
@drdogbot7
drdogbot7 / docker-compose.yml
Last active May 15, 2024 15:27
Wordpress Docker Compose with CLI - official images
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
@spacedmonkey
spacedmonkey / s3.php
Last active September 5, 2023 20:43
Using Digital Ocean spaces with S3 Uploads plugin
add_filter( 's3_uploads_s3_client_params', function ( $params ) {
if ( defined( 'S3_UPLOADS_ENDPOINT' ) ) {
$params['endpoint'] = S3_UPLOADS_ENDPOINT;
}
return $params;
}, 5, 1 );
@kadimi
kadimi / wp-cli-install.sh
Last active October 29, 2023 06:46
Install WordPress with WP-CLI (for Scotch Box)
# 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.
@willurd
willurd / web-servers.md
Last active July 3, 2024 13:20
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@boogah
boogah / .htaccess
Created February 16, 2012 04:59
Expire headers .htaccess code.
<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"