This file contains hidden or 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
rm -fr ~/Library/Application Support/Microsoft/Teams/Application Cache/Cache ~/Library/Application Support/Microsoft/Teams/blob_storage ~/Library/Application Support/Microsoft/Teams/Cache ~/Library/Application Support/Microsoft/Teams/databases ~/Library/Application Support/Microsoft/Teams/GPUCache ~/Library/Application Support/Microsoft/Teams/IndexedDB ~/Library/Application Support/Microsoft/Teams/Local Storage ~/Library/Application Support/Microsoft/Teams/tmp |
This file contains hidden or 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
Test |
This file contains hidden or 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 | |
$number = 5000; | |
$filter['email_1'] = ['$exists' => 1]; | |
$mongoRequest = new MongoRequest(); | |
$mongoRequest->setFilter($filter); | |
$mongoRequest->setLimit($number); | |
$importContactModel = new ImportContactModel(); |
This file contains hidden or 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
alias c='docker-compose' | |
alias cb='docker-compose build' | |
alias cup='docker-compose up' | |
alias cr='docker-compose run --service-ports --rm' | |
alias crl='docker-compose run --service-ports --rm local' | |
alias crd='docker-compose run --service-ports --rm develop' | |
alias crt='docker-compose run --rm test' | |
alias crp='docker-compose run --rm provision' | |
alias crci='docker-compose run --rm ci' | |
alias crwt='docker-compose run --rm watchtest' |
This file contains hidden or 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
// copy collection (FAST) | |
db.myoriginal.aggregate([ { $match: {} }, { $out: "mycopy" } ]) |
This file contains hidden or 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
$ docker cp /Users/developer/Downloads/lists-data.csv apimkmbscouk_mongodb_1:/home/ | |
$ docker-compose exec mongodb mongoimport -d mkmdev -c lists_old --type csv --file /home/lists-data.csv --headerline | |
## In order to force the fields to be of a datatype (for leading zero's on columnns) chanmge to the following | |
docker-compose exec mongodb mongoimport -d mkmdev -c lists_old --type csv --file /home/lists-data.csv --columnsHaveTypes --fields "AccountNo.string(),AccountName.string(),WishListName.string(),Created.string(),SKU.string(),ProductTitle.string(),Quantity.int32()" |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/1.2.2/bluebird.js"></script> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains hidden or 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
var link_obj = { | |
"lnk-ps coming-soon" : "absolute_path_to_file.docx", | |
} |
This file contains hidden or 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
$(function(){ | |
$.ajaxSetup({ cache: true }); | |
$.getScript('//connect.facebook.net/en_US/sdk.js', function(){ | |
FB.init({ | |
appId: '{APP_ID}', // CHANGE APP_ID | |
version: 'v2.3' // or v2.1, v2.2, v2.3, ... | |
}); | |
}); | |
}); |
This file contains hidden or 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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com', 'http://www.new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); |
NewerOlder