Skip to content

Instantly share code, notes, and snippets.

View pierot's full-sized avatar
🏠
Working from home

Pieter Michels pierot

🏠
Working from home
View GitHub Profile
grunt.loadNpmTasks('grunt-contrib-requirejs');
requirejs: {
compile: {
options: {
mainConfigFile: 'assets/js/build.js',
baseUrl: "assets/js",
name: "main",
include: ['build'],
out: 'assets/js/main.min.js'
}
}
@pierot
pierot / main.coffee
Last active December 12, 2015 06:29
define ['backbone', 'jquery', 'router'], (Backbone, $, AppRouter) ->
new AppRouter
require.config {
deps: ['main']
baseUrl: "/assets/js"
paths:
jquery: 'vendor/jquery'
lodash: 'vendor/lodash'
backbone: 'vendor/backbone'
handlebars: 'vendor/handlebars'
shim:
handlebars:
@pierot
pierot / gist:4729314
Created February 7, 2013 07:50
backbone, requirejs, tree structure
assets
├── coffee
│   ├── build.coffee
│   ├── config.coffee
│   ├── helpers
│   │   └── template-loader.coffee
│   ├── main.coffee
│   ├── models
│   │   └── base.coffee
│   ├── router.coffee
@pierot
pierot / Test
Created January 10, 2013 10:30
.class
font-size: 12
color: #ff0000
1.9.3-p194 ⚡ root ⚡ ~ ⚡ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
1.9.3-p194 ⚡ root ⚡ ~ ⚡ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 xxx.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0
xxx.xxx.xxx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
1.9.3-p194 ⚡ root ⚡ ~ ⚡ iptables -L -nv
Chain INPUT (policy DROP 3934 packets, 291K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 3966 packets, 250K bytes)
pkts bytes target prot opt in out source destination
#!/bin/sh
# dropbox service
# Replace with linux users you want to run Dropbox clients for
DROPBOX_USERS="__users__"
DAEMON=.dropbox-dist/dropbox
start() {
echo "Starting dropbox..."
for dbuser in $DROPBOX_USERS; do