Skip to content

Instantly share code, notes, and snippets.

<head>
<title>chat</title>
</head>
<body>
{{> entryfield}}
{{> messages}}
</body>
<template name="entryfield">
"router": {
"git": "https://github.com/tmeasday/meteor-router.git",
"tag": "v0.6.0"
}
@digilord
digilord / new_server.sh
Last active September 18, 2015 07:35
New Digital Ocean server setup for meteor app
#!/bin/bash -x
# useradd -m digilord # Uncomment and change digilord to your username if you want to add a user for yourself
sudo apt-get install build-essential -y
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install nodejs -y
sudo apt-get install mongodb -y
@digilord
digilord / gist:11091445
Created April 19, 2014 17:36
Yoeman Meteor Error
[digilord@Io meteor]$ mkdir automation
[digilord@Io meteor]$ cd $_
[digilord@Io automation]$ yo meteor
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
@digilord
digilord / Gruntfile.coffee
Created March 25, 2014 01:26
Grunt & Package file for MEAN
gruntFunction = (grunt) ->
gruntConfig =
develop:
server:
file: 'app.js'
shell:
killmongo:
command: 'killall mongod'
options:
async: false
if(!Roles.userIsInRole(this.userId, ['s3_admin'])) {
return false
}
# Rest of the code
creationTime = new Date()
profile =
name: ''
stripeId: ''
created: creationTime.getTime()
address: ''
city: ''
state: ''
country: ''
limit: 2
@digilord
digilord / formGetter.coffee
Last active August 29, 2015 13:57
Simple form getter.
_data = {}
_inputElements = ['input', 'select', 'textarea']
# Find this templates 'form'
form = template.find('form');
for type in _inputElements
# Get all the fields as an array of jQuery objects
elements = $(form).find(type)
for element in elements
console.log element
if element.type == 'checkbox'
var http = require('http');
var concatStream = require('concat-stream');
var countDown = 3;
var urls = [
{
url: process.argv[2],
data: null
},
{
url: process.argv[3],
#!/bin/bash
sudo apt-get install build-essential -y
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install nodejs -y
sudo apt-get install mongodb -y
sudo apt-get install git -y
sudo apt-get install nginx -y
sudo apt-get install htop -y