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/bin/env python | |
from __future__ import print_function | |
import os | |
import sys | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer, test as _test | |
import subprocess | |
from SocketServer import ThreadingMixIn | |
import argparse | |
import base64 |
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 | |
# | |
# WARNING: CPU MINING IS UNPROFITABLE! (FOR HOBBY / EXPERIMENT / RESEARCH ONLY) | |
# | |
# RASPBERRY PI CPUMINER-MULTI SETUP SCRIPT | |
# | |
# RASPBERRY PI, DOGE, DOGECOIN, PROHASHING.COM, LITECOIN, MINING | |
# |
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
# Example error: wp_postmeta: 21 clients are using or haven't closed the table properly | |
# Login to mysql | |
$ mysql -u<username> -p <database name> | |
CHECK TABLE wordpress_postmeta ; | |
--- ERROR: myisamchk: error: Not enough memory for blob at 94358800 <<< Fix for this error below!! | |
REPAIR TABLE wordpress_postmeta; | |
CHECK TABLE wordpress_postmeta ; | |
# How to fix 'Not enough memory for blob at blah blah blah' on wordpress table: wordpress_postmeta? |
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
#/home/ampcare/htdocs/wp-content/plugins/learndash-notifications/includes/shortcode.php | |
# Line number: 106 | |
if ( ! empty( $timezone_string = get_option( 'timezone_string' ) ) ) { | |
date_default_timezone_set( $timezone_string ); | |
} | |
#$result = date_i18n( $atts['format'], $completed_on ); | |
if ( ! empty( $timezone_string ) ) { | |
$result = new DateTime( "@$completed_on" ); | |
$result = date_timezone_set($result, timezone_open( $timezone_string ) ); |
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
<some cmd> | (sed -u 1q; sort -k8) --- Sort by 8th column while skipping header | |
tput rmam --- Remove line wrap in terminal | |
tput smam --- Add line wrapping |
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
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: Kubenet does not have netConfig. This is most likely due to lack of PodCIDR |
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
100 //date_default_timezone_set( get_option( 'timezone_string' ) ); | |
101 //$result = date_i18n( $atts['format'], $completed_on ); | |
102 $timezone = new DateTimeZone( get_option( 'timezone_string' ) ); | |
103 $result = wp_date( $atts['format'], $completed_on, $timezone ); |
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
# Stop Bitnami LAMP stack | |
sudo /opt/bitnami/ctlscript.sh stop | |
# Backup Bitnami stack | |
sudo cp -ra /opt/bitnami /opt/bitnami_bck | |
# Move original Bitnami stack | |
sudo mv /opt/bitnami /opt/bitnami_orig | |
# Download updated LAMP stack |
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
@@ -3389,6 +3390,20 @@ class SugarBean | |
unset($ret_array['secondary_select']); | |
} | |
+ #HACK | |
+ if ( strpos( $ret_array['where'], "{$this->table_name}.email1" ) !== false ) { | |
+ $matches = array(); | |
+ preg_match( "/{$this->table_name}.email1\s*=\s*([\S\s]+)\).*/", $ret_array['where'], $matches, PREG_OFFSET_CAPTURE ); | |
+ $email_address = strtoupper( $matches[1][0] ); | |
+ |
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
$(document).ready(function() { | |
var getTimeValue = function(time) { | |
return Date.parse('01/01/2011 ' + time); | |
} | |
var ignoreAfter = '12:00:00 AM'; | |
var ignoreBefore = '05:00:00 AM'; | |
var allEventTimes = $('.eventlist-meta-time'); | |
var test = allEventTimes.filter(function(idx, elm) { |