{
"key": "cmd+shift+t",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "${relativeFile}" },
"when": "terminalFocus"
}This will show the CPU temperature on an intel mac.
sudo powermetrics --samplers smc |grep -i "CPU die temperature"
The terminal window will keep reporting the temperature. Note that you'll need sudo priveliges to run this.
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
| [ | |
| { | |
| "id": 1, | |
| "name": "brand1" | |
| }, | |
| { | |
| "id": 2, | |
| "name": "brand2" | |
| } | |
| ] |
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
| #!/bin/bash | |
| if [[ "$1" != "" ]]; then | |
| BUCKETNAME="$1" | |
| else | |
| echo ERROR: A bucket name is required to proceed. | |
| exit 1 | |
| fi | |
| # copy from the same bucket and update the meta data. |
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
| { | |
| "basics": { | |
| "name": "Giwan Persaud", | |
| "label": "Programmer", | |
| "picture": "", | |
| "email": "[email protected]", | |
| "phone": "0600000000", | |
| "website": "https://mytoori.com", | |
| "summary": "A summary about me", | |
| "location": { |
db.getCollection('users').find({"emails.address": "[email protected]"})
This seems straight forward but in the past something something like this "emails.[0].address" was required. That might have been on meteor though.
db.getCollection('users').find({"emails.address": /keyword/ })
NewerOlder