start new:
tmux
start new with session name:
tmux new -s myname
| // Require libraries | |
| var os = require("os"); | |
| var fs = require("fs"); | |
| var readline = require("readline"); | |
| var cluster = require("cluster"); | |
| var express = require("express"); | |
| var site = express(); | |
| // Var up, bro | |
| var i, read; |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
| #! /usr/bin/env bash | |
| # Author: Damien Cassou | |
| # | |
| # This is the script I use to build Emacs packages for Ubuntu. These | |
| # packages are uploaded to | |
| # https://launchpad.net/~cassou/+archive/emacs/. Each package is | |
| # either build from a Debian package or from | |
| # http://emacs.naquadah.org/. |
| Simple blinking cursor... code from http://xip.io/ ... Ofcourse I don't own the code! Just keeping it here as a reference of the CSS3 code used. |
| """ | |
| '22': | |
| ufw.allow: | |
| - enabled: true | |
| - proto: tcp | |
| - from: 127.0.0.1 | |
| - to: any | |
| """ |
| // Usage : less2stylusDir('../src/css/'); | |
| var fs = require('fs'); | |
| // this less 2 stylus conversion script make a stylus easy to read syntax | |
| // - let the braces | |
| // - replace the @ for var as $ | |
| // - let semicolons | |
| function less2stylus(less) |
| function asanaRequest($methodPath, $httpMethod = 'GET', $body = null) | |
| { | |
| $apiKey = 'ASANA_API_KEY_HERE'; /// Get it from http://app.asana.com/-/account_api | |
| $url = "https://app.asana.com/api/1.0/$methodPath"; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; | |
| curl_setopt($ch, CURLOPT_USERPWD, $apiKey); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| // api/controllers/AuthController.js | |
| var passport = require('passport'); | |
| var AuthController = { | |
| login: function (req,res) | |
| { | |
| res.view(); | |
| }, |