Skip to content

Instantly share code, notes, and snippets.

View dutchmichael's full-sized avatar
🎯
Learning PHP, Javascript. and Laravel

Michael Van Voorhis dutchmichael

🎯
Learning PHP, Javascript. and Laravel
View GitHub Profile
@dutchmichael
dutchmichael / wp-install-core-sub-dir.sh
Created May 5, 2020 17:04 — forked from polevaultweb/wp-install-core-sub-dir.sh
This script installs WordPress inside a sub directory
#!/bin/bash
# Installation:
# Install the script in one of the folders in your PATH. Make sure it has execute permissions (i.e. chmod +x wp-install-core-sub-dir).
#Usage:
# $ mkdir mysite
# $ cd mysite
# add this to the bottom of your .htaccess file
# in the root of you WorPress directory
# usually example.com/wp/
php_value max_execution_time 60
php_value memory_limit 128M
php_value post_max_size 64M
php_value upload_max_filesize 64M
php_value max_input_vars 10000
# END WordPress
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
#!/bin/sh
#########################################################
# Backup to NFS mount script.
# https://www.webhostingtalk.com/showthread.php?t=1130207
# It creates 1 compressed .tar file locally you can then
# download over SSH or FTP to your PC. For reference,
# I have a Ubuntu 11.04 OpenVZ VPS and it created a 470MB
# .tar file out of ~600MB. You can specify only certain
# directories for backup by changing backup_files,
# or leaving it to "/" will backup everything.
@dutchmichael
dutchmichael / plugin.php
Created June 5, 2016 18:25 — forked from logoscreative/plugin.php
Friendlier, Safer WordPress Admin Areas
<?php
/**
* "Friendlier, Safer WordPress Admin Areas"
* Presented by Cliff Seal at WordCamp Atlanta 2015 and Asheville 2016
* Slides: http://www.slideshare.net/cliffseal/wp-admin
*
* Plugin Name: A Better Admin Experience
* Plugin URI: http://evermoresites.com
* Description: Cleans up and sanitizes the WordPress admin area
* Version: 1.0
@dutchmichael
dutchmichael / pedantically_commented_playbook.yml
Created November 28, 2015 06:05 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.