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
// !!! THIS IS META CODE, NOT A REAL SUGGESTION TO A CODEBASE | |
// JUST VERY SIMPLIFIED FORM OF PROPOSAL | |
Meteor._user = new ReactiveVar(null); | |
Meteor._userId = new ReactiveVar(null); | |
Tracker.autorun(() => { | |
Meteor._user.set(Meteor.user() || null); | |
}); | |
Tracker.autorun(() => { | |
Meteor._userId.set(Meteor.userId() || null); |
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
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto eth0 | |
iface eth0 inet static | |
address 10.0.1.2 | |
netmask 255.255.255.0 | |
gateway 10.0.1.1 |
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
storage: | |
dbPath: /var/lib/mongodb | |
journal: | |
enabled: true | |
engine: wiredTiger | |
wiredTiger: | |
engineConfig: | |
cacheSizeGB: 0.3 | |
systemLog: | |
destination: file |
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
# Our servers has 32GB of RAM | |
storage: | |
dbPath: /data/mongo | |
journal: | |
enabled: true | |
engine: wiredTiger | |
wiredTiger: | |
engineConfig: | |
cacheSizeGB: 8 |
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
import { rawCount } from './raw-count.js'; | |
rawCount(Meteor.users); | |
rawCount(Meteor.users, {'profile.active': true}); |
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
# Add proper mime-type in Apache web server configuration | |
AddType application/manifest+json webmanifest |
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
// Better to execute this in Google Chrome | |
// 0. Go to twitter on the page where you would like to Follow other users (with [follow] buttons) | |
// 1. Right click on any place of page | |
// 2. Inspect Element | |
// 3. In opened panel - choose "console" tab | |
// 4. Copy-paste code you se below and hit "Enter" key | |
// Note: Twitter will block if you're going to follow a lot users instantly | |
// Script below adds between 1.5 and 4 seconds between each "follow" (button click), so you can start it and leave it for a while | |
(function(){ |
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
// Better to execute this in Google Chrome | |
// 0. Go to medium.com on the page where you would like to Follow other users | |
// 1. Right click on any place of page | |
// 2. Inspect Element | |
// 3. In opened panel - choose "console" tab | |
// 4. Copy-paste code you se below and hit "Enter" key | |
(function(){ | |
var newscript = document.createElement('script'); | |
newscript.type = 'text/javascript'; |
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
# As default browser: | |
curl http://example.com | |
# As GoogleBot: | |
curl -A GoogleBot http://example.com | |
# As GoogleBot (old/deprecated) style: | |
curl -A GoogleBot http://example.com?_escaped_fragment_= |
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
android_bundle/ | |
dev_bundle/ | |
docs/ | |
examples/ | |
packages/ | |
scripts/ | |
tools/ | |
!tools/*.js | |
!tools/isobuild/*.js | |
!tools/catalog/*.js |
NewerOlder