This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.loadNpmTasks('grunt-contrib-requirejs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs: { | |
compile: { | |
options: { | |
mainConfigFile: 'assets/js/build.js', | |
baseUrl: "assets/js", | |
name: "main", | |
include: ['build'], | |
out: 'assets/js/main.min.js' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define ['backbone', 'jquery', 'router'], (Backbone, $, AppRouter) -> | |
new AppRouter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.config { | |
deps: ['main'] | |
baseUrl: "/assets/js" | |
paths: | |
jquery: 'vendor/jquery' | |
lodash: 'vendor/lodash' | |
backbone: 'vendor/backbone' | |
handlebars: 'vendor/handlebars' | |
shim: | |
handlebars: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assets | |
├── coffee | |
│ ├── build.coffee | |
│ ├── config.coffee | |
│ ├── helpers | |
│ │ └── template-loader.coffee | |
│ ├── main.coffee | |
│ ├── models | |
│ │ └── base.coffee | |
│ ├── router.coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.class | |
font-size: 12 | |
color: #ff0000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |