Skip to content

Instantly share code, notes, and snippets.

View antonkorotkov's full-sized avatar
🖕
f..ck putin

Anton antonkorotkov

🖕
f..ck putin
View GitHub Profile
@antonkorotkov
antonkorotkov / install_wp.sh
Created November 23, 2019 11:55
Install Wordpress
wget https://wordpress.org/latest.zip
unzip latest.zip
mv wordpress/* ./
rm -rf wordpress latest.zip
//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}`)
}
@antonkorotkov
antonkorotkov / replace_in_file.sh
Created September 19, 2017 08:25
bash ssh replace in file
sed -i -e 's/abc/XYZ/g' /tmp/file.txt
[
{
"s2_cell_id": {
"low": 1073741824,
"high": 1093116151,
"unsigned": true
},
"current_timestamp_ms": {
"low": 595677659,
"high": 342,
@antonkorotkov
antonkorotkov / fix_perms.sh
Created July 5, 2016 12:20
File permissons fix
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 ./
@antonkorotkov
antonkorotkov / macos_zip_without_hidden.sh
Created June 15, 2016 08:56
MacOS zip without hidden files
zip -r -X Archive.zip *
git subtree push --prefix=wp-content/plugins/wp-property-supermap git@github.com:wp-property/wp-property-supermap develop-rdc --squash
@antonkorotkov
antonkorotkov / google-cloud-storage-upload-download.php
Created February 16, 2016 16:41 — forked from stetic/google-cloud-storage-upload-download.php
PHP Example for Google Storage Upload and Download with Google APIs Client Library for PHP
<?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" );
<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;
@antonkorotkov
antonkorotkov / dssdfs
Created January 4, 2016 15:10
dfsdfsdfsdf
Warning: include(/var/www/wp-content/plugins/wp-stateless/vendor/google/apiclient/src/Google/Cache/File.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/wp-property-agents/vendor/composer/ClassLoader.php on line 412 Warning: include(): Failed opening '/var/www/wp-content/plugins/wp-stateless/vendor/google/apiclient/src/Google/Cache/File.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/wp-content/plugins/wp-property-agents/vendor/composer/ClassLoader.php on line 412 Fatal error: Class 'Google_Cache_File' not found in /var/www/wp-content/plugins/wp-stateless/vendor/google/apiclient/src/Google/Client.php on line 612