Skip to content

Instantly share code, notes, and snippets.

View mxmilkiib's full-sized avatar
🔊

Milkii Brewster mxmilkiib

🔊
View GitHub Profile
@mxmilkiib
mxmilkiib / dmenu_run.pl (2)
Last active August 29, 2015 14:06
An updated dmenu_run.pl with basic bspwm virtual desktop one-shot rule. Requires wmctrl.
#!/usr/bin/env perl
use warnings;
use strict;
# dmenu_run.pl - run dmenu, showing most used results first.
# use -r option to remove something from the database.
#
# written by Rex Roof <dmenu@rexroof.com> - February 2013
# released for free under the creative commons CC BY license.
*** 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]
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
@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)
@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 / 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 / gist:4187160
Created December 2, 2012 06:01
remote patch for quick rm of drupal commons 7.3 welcome message
diff --git a/build-commons.make b/build-commons.make
index 2fcf916..72affdd 100644
--- a/commons.profile
+++ b/commons.profile
@@ -50,27 +50,6 @@ function commons_install_tasks() {
$demo_content = variable_get('commons_install_demo_content', FALSE);
- return array(
- 'commons_anonymous_message_homepage' => array(
@mxmilkiib
mxmilkiib / parts-of-speech.md
Last active December 19, 2015 03:49
Parts of Speech

Three little words you often see
Are ARTICLES: a, an, and the.

A NOUN's the name of anything,
As: school or garden, toy, or swing.

ADJECTIVES tell the kind of noun,
As: great, small, pretty, white, or brown.

VERBS tell of something being done:

@mxmilkiib
mxmilkiib / wp-install-base.sh
Created July 2, 2013 20:48
WP Install Base
#!/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/
declare name "m_mixer_S4toS32";
declare version "0.8";
declare author "Milk";
declare license "GPLv2";
import("stdfaust.lib");
process = (_,_), (_,_), (_,_), (_,_) <: (_*ch0,_*ch0, _*ch1,_*ch1, _*ch2,_*ch2, _*ch3,_*ch3),
(_*ch0a,_*ch0a, _*ch1a,_*ch1a, _*ch2a,_*ch2a, _*ch3a,_*ch3a),
(_*ch0b,_*ch0b, _*ch1b,_*ch1b, _*ch2b,_*ch2b, _*ch3b,_*ch3b),