To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
current_dir=`pwd`; | |
cd ~/Library/Application\ Support/Espresso/Sugars/; | |
echo "Installing Sugars:"; | |
if [ ! -d ./CSS3.sugar ]; then | |
echo "Installing CSS3.sugar..."; | |
git clone -q git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar; | |
else | |
echo "CSS3.sugar already installed, attempting update..."; |
/*global _, Backbone*/ | |
// By Martin Angers (PuerkitoBio) | |
// This should be inside a module pattern. Defines a base Model class, could/should be merged with your | |
// own base Model. | |
// Dependencies: underscore (_) and Backbone. | |
var ComputedProperties = function(model) { | |
this.model = model; | |
this.properties = {}; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="author" content="Aalaap Ghag" /> | |
<title>Twitter’s Bootstrap with Ryan Fait’s Sticky Footer and Aalaap Ghag’s Responsive Padding Fix</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css" /> | |
<link href="css/bootstrap-responsive.css" rel="stylesheet"> | |
<style> | |
html, body { |
//var io = require('socket.io'); | |
var express = require('express') | |
, stylus = require('stylus') | |
, http = require('http') | |
, nib = require('nib'); | |
var app = express(); | |
var server = http.createServer(app); | |
var io = require('socket.io').listen(server); |
global | |
maxconn 4096 # Total Max Connections. This is dependent on ulimit | |
nbproc 2 | |
log 127.0.0.1 local1 notice | |
defaults | |
mode http | |
log global | |
frontend all 0.0.0.0:80 |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
sudo apt-get install -y supervisor | |
sudo mkdir /usr/share/elasticsearch | |
cd /usr/share/elasticsearch | |
sudo wget https://download.elasticsearch.org/kibana/kibana/kibana-4.0.1-linux-x64.tar.gz | |
sudo wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz | |
sudo wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz | |
sudo tar -zxvf elasticsearch-0.90.0.tar.gz |