Skip to content

Instantly share code, notes, and snippets.

View mxmilkiib's full-sized avatar
🔊
x1000ing w/ AI

Milkii Brewster mxmilkiib

🔊
x1000ing w/ AI
View GitHub Profile
@mxmilkiib
mxmilkiib / wp-base-install.sh
Last active October 7, 2015 11:27
WP Base Install scratchpad old
#!/bin/bash
# this is a work in progress! NOT for production.
# requires wp-cli
# usage: wp-base-install
# or: ./wp-base-install.sh
# Bits of inspiration from https://gist.github.com/2853221
# to look at: http://www.servercobra.com/automated-wordpress-install-with-nginx-script/
@mxmilkiib
mxmilkiib / createdb.sh
Created July 21, 2012 04:14
createdb.sh
#!/bin/bash
EXPECTED_ARGS=3
E_BADARGS=65
MYSQL=`which mysql`
Q1="CREATE DATABASE IF NOT EXISTS $1;"
Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';"
Q3="FLUSH PRIVILEGES;"
SQL="${Q1}${Q2}${Q3}"
@mxmilkiib
mxmilkiib / gist:1572594
Created January 6, 2012 21:59
Git submodule add error message bug?
milk@silver:/etc/zsh:master $ git submodule add git://github.com/olivierverdier/zsh-git-prompt.git git-prompt
The following path is ignored by one of your .gitignore files:
git-prompt
Use -f if you really want to add it.
milk@silver:/etc/zsh:master $ sudo git submodule add git://github.com/olivierverdier/zsh-git-prompt.git git-prompt
Password:
Cloning into 'git-prompt'...
remote: Counting objects: 216, done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 216 (delta 123), reused 202 (delta 111)
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 16: option "color_nicks_number" unknown for section "look"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 22: option "hline_char" unknown for section "look"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 47: invalid value for option "read_marker"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 68: option "chat_nick_color01" unknown for section "color"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 69: option "chat_nick_color02" unknown for section "color"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 70: option "chat_nick_color03" unknown for section "color"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 71: option "chat_nick_color04" unknown for section "color"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 72: option "chat_nick_color05" unknown for section "color"
15:53:06 =!= | Warning: /home/milk/.weechat/weechat.conf, line 73: optio
*** Removing platform: drush @hostmaster hosting-task @platform_xtest9 delete --force
Bootstrap to phase 0. [0.02 sec, 1.43 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 1.58 MB] [bootstrap]
Load alias @hostmaster [0.03 sec, 1.58 MB] [notice]
Loading drushrc "/var/aegir/host_master/001/sites/aegir.thingsandstuff.org/drushrc.php" into "site" scope. [0.03 sec, 1.59 MB] [bootstrap]
Bootstrap to phase 5. [0.1 sec, 6.32 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.1 sec, 6.32 MB] [bootstrap]
Loading drushrc "/var/aegir/host_master/001/drushrc.php" into "drupal" scope. [0.1 sec, 6.32 MB]