Skip to content

Instantly share code, notes, and snippets.

View joernroeder's full-sized avatar

Jörn Röder joernroeder

View GitHub Profile
@rowanmanning
rowanmanning / my-sugars.sh
Created December 3, 2010 10:36
My Favourite Espresso Sugars
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...";
@rakhmad
rakhmad / Backbone.ComputedPropertiesModel.js
Created April 17, 2012 14:50 — forked from mna/Backbone.ComputedPropertiesModel.js
This gist shows one way to implement read- and write-enabled computed properties on a Backbone Model, without polluting the attributes hash of the Backbone Model. It works with Backbone.ModelBinding, so computed properties may be bound to form elements.
/*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 = {};
@nicerobot
nicerobot / README.md
Last active June 18, 2024 19:46
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

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
@aalaap
aalaap / gist:3066704
Created July 7, 2012 14:39
Sample HTML page with Twitter's Bootstrap, Ryan Fait's Sticky Footer, and a full-width footer, fixed for responsive layouts by Aalaap Ghag
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="Aalaap Ghag" />
<title>Twitter&rsquo;s Bootstrap with Ryan Fait&rsquo;s Sticky Footer and Aalaap Ghag&rsquo;s Responsive Padding Fix</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<style>
html, body {
@fields
fields / server.js
Created July 31, 2012 19:25
mongo / socket.io / node.js / express
//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);
@lackac
lackac / haproxy.cfg
Created September 22, 2012 19:14
HAProxy configuration with Websocket support
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
@mattfelsen
mattfelsen / software-setup.md
Last active July 27, 2016 17:19
So you got a new computer, eh?

So you got a new computer, eh?

Point & click stuff

Xcode

  • Monokai theme
  • OF Addon Plugin
  • Prefs
    • Text editing -> indentation -> prefer tabs
    • Text editing -> show line numbers, trim whitespace from empty lines
@domenic
domenic / 0-github-actions.md
Last active May 26, 2024 07:43
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

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:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
@vjm
vjm / install.sh
Created March 7, 2015 21:38
Raspberry Pi ELK Stack
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
@chatchavan
chatchavan / README.md
Last active April 27, 2024 20:33
Setup Wifi on Raspberry Pi

Setup Wireless LAN for Raspberry Pi

The following guide describes how to setup Raspberry Pi to connect to Wifi. It was tested on the following environment:

  • Raspberry Pi Model B
  • Edimax EW-7811Un USB Wifi dongle
  • OS: Raspbian Jessie

Here are the overview of the steps: