Quickly disable all plugins in WordPress.
This plugin needs to go into the wp-content/mu-plugins/
directory. Provided you have SSH access to the server where WordPress lives, you can do this:
cd $SITE_ROOT/wp-content/mu-plugins
#!/bin/bash | |
function remove_dir () { | |
rm -rf "$1_" | |
if [ -d "$1" ] | |
then | |
mv "$1" "$1_" | |
fi | |
} |
<?php | |
namespace Money; | |
class Bitcoin { | |
#const BITCOIN_NODE = '173.224.125.222'; // w001.mo.us temporary | |
const BITCOIN_NODE = '50.97.137.37'; | |
static private $pending = array(); | |
public static function update() { |
# Basic setup to copy Wordpress files, | |
# expected to be at '.', into the image | |
FROM orchardup/php5 | |
ADD . /code |
delay 10 | |
repeat 100 times | |
activate application "HipChat" | |
tell application "System Events" to keystroke "(parrot) (aussieparrot)" | |
tell application "System Events" to key code 76 | |
delay 30 | |
end repeat |
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
var Mathutils = { | |
//not so important | |
normalize: function ($value, $min, $max) { | |
return ($value - $min) / ($max - $min); | |
}, | |
interpolate: function ($normValue, $min, $max) { | |
return $min + ($max - $min) * $normValue; | |
}, | |
/* |
(function () { | |
$(function () { | |
/*I add the ui elements I need here. I thought it would be better put them in here at runtime rather than hard code them in the index.html in case the index.html from my version of swashbuckle is made obsolete in a future version of the package. */ | |
var hmacAuthUi = | |
' | |
<div class="input"><label for="input_api_username">Api Username: </label><input placeholder="Api Username" id="input_api_username" name="input_api_username" type="text" size="20"></div> | |
' + | |
' | |
<div class="input"><label for="input_api_hmackey">Api Key: </label><input placeholder="ApiKey" id="input_api_hmackey" name="input_api_hmackey" type="text" size="20"></div> |
set -eu | |
TEST_USER_ID="testname" | |
GROUP="group" | |
IWALLET_CMD='iwallet --chain_id 1020 -s 127.0.0.1:30002' # single node dev chain | |
seckey1=3MWryACc5nSxRDJCJLe9Xq2spR1j7d5wYbZ4pZN4SvfgUxhG497DQxo5ahENoCnDkLsc7haSveP1q1zkt26JWhog | |
pubkey1=2ott3o9CZcaoZCe4nGYo1azEfEpY4W771GBFe133WW1p | |
function clean_account() { | |
$IWALLET_CMD account del $TEST_USER_ID |