Skip to content

Instantly share code, notes, and snippets.

View chrisgen19's full-sized avatar
🏢
Working from Office

Christian Genesis A. Diomampo chrisgen19

🏢
Working from Office
View GitHub Profile
@chrisgen19
chrisgen19 / .gitignore
Created November 3, 2016 04:24 — forked from salcode/.gitignore
WordPress .gitignore - this is my preferred gitignore file when working with WordPress. It ignores almost all files by default.
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20160309
#
# From the root of your project run
# curl -O https://gist.github.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@chrisgen19
chrisgen19 / wp.sh
Created November 2, 2016 14:23 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
define('WP_HOME','http://ny.url/wordpress');
define('WP_SITEURL','http://ny.url/wordpress');