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
#!/usr/bin/env ruby | |
commit = `git log -1 --oneline` | |
hash = commit.to_s.split(" ").first | |
message = commit.sub("#{hash} ", "") | |
unless(message.gsub("\n","").end_with?(".jpg")) | |
`lolcommits --capture` | |
repopath = `git rev-parse --show-toplevel`.gsub("\n", "") | |
repourl = `git config --get remote.origin.url`.gsub("\n", "") |
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; | |
}, | |
/* |
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 |
echo "JOB: $JOB_NAME" > version.txt | |
echo "BUILD NUMBER: $BUILD_NUMBER" >> version.txt | |
echo "GIT REVISION:" >> version.txt | |
git log -n 1 >> version.txt |
<?php | |
// Add this as a mu-plugin. | |
if ( isset( $_GET['wp_maybe_auto_update'] ) ) { | |
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' ); | |
add_action( 'template_redirect', function() { | |
$time = date( 'r' ); | |
echo "Starting... $time<br />"; | |
delete_site_option( 'auto_core_update_failed' ); |
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 |
{ | |
"targets": [ | |
{ | |
"target_name": "keypress", | |
"conditions": [ | |
['OS == "mac"', { | |
'include_dirs': [ | |
'System/Library/Frameworks/CoreFoundation.Framework/Headers', | |
'System/Library/Frameworks/Carbon.Framework/Headers', | |
], |
void captureScreen() | |
{ | |
CGImageRef image_ref = CGDisplayCreateImage(CGMainDisplayID()); | |
CGDataProviderRef provider = CGImageGetDataProvider(image_ref); | |
CFDataRef dataref = CGDataProviderCopyData(provider); | |
size_t width, height; | |
width = CGImageGetWidth(image_ref); | |
height = CGImageGetHeight(image_ref); | |
size_t bpp = CGImageGetBitsPerPixel(image_ref) / 8; | |
uint8 *pixels = malloc(width * height * bpp); |
#!/bin/bash | |
function remove_dir () { | |
rm -rf "$1_" | |
if [ -d "$1" ] | |
then | |
mv "$1" "$1_" | |
fi | |
} |