This file contains 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
# svn mkdir file:///root/svn-repository/etc \ | |
-m "Make a directory in the repository to correspond to /etc" | |
# cd /etc | |
# svn checkout file:///root/svn-repository/etc ./ | |
# svn add apache samba alsa X11 | |
# svn commit -m "Initial version of my config files" |
This file contains 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 goes in the client sub directory or use Meteor.isClient check | |
// http://docs.meteor.com/#meteor_isclient | |
Meteor.call('authenticate', user, pswd, function(err, res) { | |
if(err) { | |
console.log('error trying login'); | |
} | |
else { | |
console.log(res); | |
Session.set('logged_in_user', user); |
This file contains 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 util = require('util'), | |
spawn = require('child_process').spawn, | |
ls = spawn('ls', ['-lh', '/usr']); | |
ls.stdout.on('data', function (data) { | |
console.log('stdout: ' + data); | |
}); | |
ls.stderr.on('data', function (data) { | |
console.log('stderr: ' + data); |
This file contains 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
e.g | |
/usr/lib/meteor/mongodb/bin/mongod --dbpath /mnt/apshared/webmeteor/myapp/.meteor/local/db/ |
This file contains 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
When looping through items in each, you can optionally reference the current loop index via {{@index}} | |
{{#each array}} | |
{{@index}}: {{this}} | |
{{/each}} | |
For object iteration, use {{@key}} instead: | |
{{#each object}} | |
{{@key}}: {{this}} |
This file contains 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. Open up the Windows "Search" Bar and start typing in "git bash" and click on the program that comes up. | |
2. Type in the following | |
CODE: SELECT ALL | |
cd $APPDATA/Sublime\ Text\ 3/Packages | |
3. Now type in |
This file contains 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
Meteor.publish('todos', function() { | |
return Todos.find({}, { | |
sort: { | |
timestamp: -1 | |
} | |
}); | |
}); |
This file contains 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
/** | |
* Meteor - Email send example | |
* MAIL_URL environment variable required | |
* e.g smtp://localhost:25 | |
*/ | |
Email.send({ | |
from: config.email.from, | |
to: mailto, | |
subject: config.email.subj + todo.name, | |
html: "<b>" + todo.status + "</b>" |
This file contains 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
'click .cancelbtn': function(e) { | |
// To handle difference between Chrome and FF | |
e = e || window.event; | |
var se_id = e.target || e.srcElement; | |
if (se_id) { | |
console.log('Worked' + se_id); | |
var c_id = se_id.id; | |
} else { |
OlderNewer