sudo gpasswd -a $USER docker
newgrp docker
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
// Props to : http://nathanleclaire.com/blog/2013/11/16/the-javascript-question-i-bombed-in-an-interview-with-a-y-combinator-startup/ | |
var processOnTime = function ( next, delay ) { | |
var d = delay; | |
if ( ! next ) { | |
throw new ReferenceError(); | |
} | |
if ( ! d || isNaN ( d ) ) { | |
d = 200; |
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
// Props to : http://nathanleclaire.com/blog/2013/11/16/the-javascript-question-i-bombed-in-an-interview-with-a-y-combinator-startup/ | |
var processOnTime = function ( next, delay ) { | |
var d = delay; | |
if ( ! next ) { | |
throw new ReferenceError(); | |
} | |
if ( ! d || isNaN ( d ) ) { | |
d = 200; |
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
// Props to : http://nathanleclaire.com/blog/2013/11/16/the-javascript-question-i-bombed-in-an-interview-with-a-y-combinator-startup/ | |
var processOnTime = function ( next, delay ) { | |
var d = delay; | |
if ( ! next ) { | |
throw new ReferenceError(); | |
} | |
if ( ! d || isNaN ( d ) ) { | |
d = 200; |
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
const result = await axios({ | |
method: 'post', | |
url: 'https://translation.googleapis.com/language/translate/v2/detect?key=AIzaSyAM0buje-vXIwgvH48sASmZDI-Jb4lMXMY', | |
data: {data}, | |
headers: {'Content-Type': 'application/json'} | |
}); | |
// result.data contains response |
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
db.getCollection('col').find({}).forEach(function(d){ db.getSiblingDB('destinationDB')['col'].insert(d); }); |
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
1. Get process pid: | |
sudo lsof -iTCP:3004 -sTCP:LISTEN | |
2. sudo kill -9 <pid> | |
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
>Business logic is the weird flows and rules that only make sense in the context of the user’s business |
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
At the end of the /etc/sudoers file add this line: | |
username ALL=(ALL) NOPASSWD:ALL | |
Increase amount of node watches | |
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
{"lastUpload":"2021-05-17T11:47:38.662Z","extensionVersion":"v3.4.3"} |
NewerOlder