Skip to content

Instantly share code, notes, and snippets.

View entrptaher's full-sized avatar
🎯
Focusing

Md. Abu Taher entrptaher

🎯
Focusing
View GitHub Profile
class LoginExample {
// launches our browser
async initBrowser() {}
// creates a new tab
async initPage() {}
// if we give cookie, it uses that
async setCookie() {}
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@entrptaher
entrptaher / basics.md
Created October 22, 2018 02:42
ওয়েব স্ক্রাপিং এবং অটোমেশনের জন্য রিসোর্স সমহূ
const browserify = require('browserify');
const b = browserify();
b.require(`${__dirname}/index.js`, {expose: 'bundle'}).bundle((err, src) => {
console.log(src.toString());
});
// add/modify the boards.js
// preserve old method of testing but also add a new method of checking current User
setMemberPermission(memberId, isAdmin, isNoComments, isCommentOnly, currentUserId = Meteor.userId()) {
const memberIndex = this.memberIndex(memberId);
// do not allow change permission of self
if (memberId === currentUserId) {
isAdmin = this.members[memberIndex].isAdmin;
}
const change = {