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
wget https://wordpress.org/latest.zip | |
unzip latest.zip | |
mv wordpress/* ./ | |
rm -rf wordpress latest.zip |
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
//https://jsfiddle.net/7Lucfkg5/6/ | |
const Vehicle = function(name, sound) { | |
this.name = name | |
this.sound = sound | |
} | |
Vehicle.prototype.go = function() { | |
console.log(`${this.name} does the ${this.sound}`) | |
} |
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
sed -i -e 's/abc/XYZ/g' /tmp/file.txt |
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 gsutil rsync command makes the contents under dst_url the same as the contents under src_url, by copying any missing files/objects, and (if the -d option is specified) deleting any extra files/objects. For example, to make gs://mybucket/data match the contents of the local directory “data” you could do: | |
gsutil rsync -d data gs://mybucket/data | |
To recurse into directories use the -r option: | |
gsutil rsync -d -r data gs://mybucket/data | |
To copy only new/changed files without deleting extra files from gs://mybucket/data leave off the -d 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
<?php | |
/* | |
* PHP Example for Google Storage Up- and Download | |
* with Google APIs Client Library for PHP: | |
* https://github.com/google/google-api-php-client | |
*/ | |
include( "Google/Client.php" ); | |
include( "Google/Service/Storage.php" ); |
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
[ | |
{ | |
"s2_cell_id": { | |
"low": 1073741824, | |
"high": 1093116151, | |
"unsigned": true | |
}, | |
"current_timestamp_ms": { | |
"low": 595677659, | |
"high": 342, |
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
sudo find ./ -type d -exec chmod 755 {} + | |
sudo find ./ -type f -exec chmod 644 {} + | |
sudo chmod -R u+rwX,go+rX,go-w ./ | |
sudo chown -R core:core ./ |
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 subtree push --prefix=wp-content/plugins/wp-property-supermap git@github.com:wp-property/wp-property-supermap develop-rdc --squash |
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
<style> | |
#mc-embedded-subscribe { | |
background: #b0d26b none repeat scroll 0 0 !important; | |
border-bottom: 0 none !important; | |
float: left; | |
font-size: 14px !important; | |
height: 40px; | |
min-width: 20px !important; | |
opacity: 1; | |
padding: 0 !important; |
NewerOlder