Skip to content

Instantly share code, notes, and snippets.

View drawcard's full-sized avatar
👍

Drawcard drawcard

👍
  • Drawcard
  • Australia
View GitHub Profile
@drawcard
drawcard / .htaccess
Last active March 15, 2023 12:40 — forked from anova/.htaccess
Multisite and giving wordpress its own directory
<IfModule mod_rewrite.c>
# not localhost:
# Replace "SUBDIRECTORY" with your subdir path
# RewriteCond %{HTTP_HOST} \.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
#eliminate root path access denied: (without placeholder index.php)
RewriteRule ^(/)?$ SUBDIRECTORY/index.php [L]
@drawcard
drawcard / mc-server-setup.md
Last active November 13, 2018 02:40 — forked from niksudan/mc-server-setup.md
How to create a new Minecraft Server with DigitalOcean

Creating a new Minecraft Server

Setup

Create a new Ubuntu 16.04 droplet on DigitalOcean. Make sure it has at least 2GB of RAM, and you provide it with your SSH key.

SSH into the server and install Java, which is required for Minecraft to run.

@drawcard
drawcard / wp.sh
Created November 7, 2018 04:58 — forked from phlbnks/wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Do you need to setup new MySQL database? (y/n)"
read -e setupmysql
if [ "$setupmysql" == y ] ; then
echo "MySQL Admin User: "
read -e mysqluser
@drawcard
drawcard / wp.sh
Created November 7, 2018 04:58 — forked from phlbnks/wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Do you need to setup new MySQL database? (y/n)"
read -e setupmysql
if [ "$setupmysql" == y ] ; then
echo "MySQL Admin User: "
read -e mysqluser
@drawcard
drawcard / setup_mailcatcher.sh
Last active February 9, 2017 07:31 — forked from shark0der/setup_mailcatcher.sh
Mailcatcher installation script for Ubuntu 16.04 (14.04 commands commented out)
#!/bin/bash
# Install dependencies
# older ubuntus
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev
# xenial
apt install build-essential libsqlite3-dev ruby-dev
# Install the gem
# gem install mailcatcher
@drawcard
drawcard / backup.sh
Last active February 7, 2017 12:36 — forked from codeablehq/backup.sh
A script that creates a backup of your WordPress site and uploads it to Dropbox
#!/bin/bash
# For this script to work, save it somewhere in the executable path, like /usr/local/sbin/backup.sh
# make it executable: chmod +x /usr/local/sbin/backup.sh
# then add it to cron: crontab -e
# and add the line below, which will run backup 3am each day, then upload to Dropbox
# 0 3 * * * /usr/local/sbin/backup.sh > /dev/null 2>&1
# You also need WP CLI installed: http://wp-cli.org/
@drawcard
drawcard / sass-responsive-mixin.scss
Created January 20, 2016 11:04 — forked from peschee/sass-responsive-mixin.scss
SASS responsive mixin (bootstrap breakpoints)
/**
* Responsive mixin. The media breakpoints are as defined
* in the twitter bootstrap framework:
*
* - phone
* - tablet-portrait
* - tablet-landscape-desktop
* - large-desktop
*
* Additional parameters for tagetting retina and non-retina