This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ minikube logs | |
==> k8s_coredns_coredns <== | |
E0312 15:49:54.774820 5824 logs.go:120] failed: Process exited with status 127 | |
==> k8s_kube-apiserver <== | |
E0312 15:49:54.776889 5824 logs.go:120] failed: Process exited with status 127 | |
==> k8s_kube-scheduler <== | |
E0312 15:49:54.778632 5824 logs.go:120] failed: Process exited with status 127 | |
==> kubelet <== | |
-- Logs begin at Tue 2019-03-12 20:48:03 UTC, end at Tue 2019-03-12 20:49:54 UTC. -- | |
Mar 12 20:49:32 minikube systemd[1]: kubelet.service: Scheduled restart job, restart counter is at 8. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o pipefail | |
LOCK_NAME="$1" | |
COMMAND_TO_RUN="$2" | |
cleanUp() { | |
flock -u 200 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git i/wp-includes/formatting.php w/wp-includes/formatting.php | |
index 9c781eb..5efe0cd 100644 | |
--- i/wp-includes/formatting.php | |
+++ w/wp-includes/formatting.php | |
@@ -2893,9 +2893,6 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) { | |
if ( '' == $url ) | |
return $url; | |
-foreach (debug_backtrace() as $depth => $frame) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] VirtualBox VM is already running. | |
$ vagrant provision | |
[default] Running provisioner: puppet... | |
Running Puppet with lamp.pp... | |
stdin: is not a tty | |
warning: Could not retrieve fact fqdn | |
Could not find class apache for precise64 at /tmp/vagrant-puppet-1/manifests/lamp.pp:184 on node precise64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASENAME='wp_cbi'; for i in $(mysql $DATABASENAME -Bse 'SHOW TABLES'); do echo mysql $DATABASENAME -e "ALTER TABLE $i ENGINE = InnoDB;"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /usr/local/sbin/nginx -t | |
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok | |
nginx: [emerg] open() "/var/log/nginx/secure.error.log" failed (24: Too many open files) | |
nginx: configuration file /etc/nginx/nginx.conf test failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add a new interval of a week | |
// See http://codex.wordpress.org/Plugin_API/Filter_Reference/cron_schedules | |
add_filter( 'cron_schedules', 'myprefix_add_weekly_cron_schedule' ); | |
function myprefix_add_weekly_cron_schedule( $schedules ) { | |
$schedules['weekly'] = array( | |
'interval' => 600, // 10 minutes | |
'display' => __( 'Once Weekly' ), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ touch /tmp/'22" rims' | |
$ ls -l /tmp/2* | |
-rw-r--r-- 1 dhernandez_ l3 0 2013-12-31 18:21 /tmp/22" rims | |
$ find /tmp/ -type f | xargs -n 10 rm -f | |
xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( !isset( $_GET['page'] ) OR @$_GET['paged'] != 'wpengine-common' ) | |
add_action('admin_init', function() { wp_dequeue_style('wpe-common'); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// full path to customer log file | |
$log_file = __DIR__.'/../__admin_ajax.log'; | |
// if it's not a POST request, just move along | |
if($_SERVER['REQUEST_METHOD'] != "POST") { | |
return(0); | |
} | |
// if you only want specific files like admin-ajax or xmlrpc, uncomment the next line |
NewerOlder