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 clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T [email protected] | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
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
Learn git and make an account | |
https://www.youtube.com/watch?v=USjZcfj8yxE | |
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 | |
require_once('vendor/autoload.php'); | |
$file = file_get_contents('/<path-to-output-file>/wpcore.txt', true); | |
$pushbullet = new PHPushbullet\PHPushbullet('xxxxxxxxxxxxxxxxxxxxxxxxxxx'); | |
$pushbullet->device('LGE Nexus 5')->note('my server', $file); | |
$pushbullet->user('[email protected]')->note('my server', $file); |
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 | |
wp core verify-checksums --path=/<path-to-wp-folder> &> /<path-to-temp-folder-to-compare-outputs>/wpcore.txt | |
if ! comm -3 <(sort /<path-to-temp-folder-to-compare-outputs>/wpcore-master.txt) <(sort /<path-to-temp-folder-to-compare-outputs>/wpcore.txt) | grep -q '.*'; then | |
echo "all fine folks" | |
else | |
php -f /<path-to-php-file-that-send-message>/phpushbullet/oe-push.php | |
fi |
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 | |
/** | |
* Magento Maintenance Script | |
* | |
* @version 3.0.1 | |
* @author Crucial Web Hosting <[email protected]> | |
* @copyright Copyright (c) 2006-2013 Crucial Web Hosting, Ltd. | |
* @link http://www.crucialwebhost.com Crucial Web Hosting | |
*/ |
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
SET foreign_key_checks = 0; | |
TRUNCATE dataflow_batch_export; | |
TRUNCATE dataflow_batch_import; | |
TRUNCATE log_customer; | |
TRUNCATE log_quote; | |
TRUNCATE log_summary; | |
TRUNCATE log_summary_type; | |
TRUNCATE log_url; | |
TRUNCATE log_url_info; | |
TRUNCATE log_visitor; |
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
src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.open-ecommrece.com%2F&choe=UTF-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
// the code it is very simple: | |
// first get the table with the data and then use the wp | |
// update_post_meta with update the value base on the post id | |
// and wp_set_object_terms to change the custom categories | |
// with true at the end to append the category without delete the existing. | |
add_shortcode('myFunction', update_geolocation'); | |
function update_geolocation() { | |
$sql = "select Post_id, Lat, Lon from tblGeodatawithposts"; | |
global $wpdb; |