I hereby claim:
- I am albertogg on github.
- I am albertogg_ (https://keybase.io/albertogg_) on keybase.
- I have a public key ASDh51ZsWQfH1jrmZ9PW6fmDKWL5nyY4qoD6aALEZlBedgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# This configuration is based on the Wizard config and also the these ones: | |
# https://blog.dlasley.net/2013/06/initial-configuration-ubiquiti-edgerouter-lite/ | |
# http://lg.io/2015/01/11/the-ubiquiti-edgerouter-configuring-this-extremely-lowcost-enterprisegrade-router-for-home-use.html | |
# | |
# Create simple firewall rules for Inbound wan to lan and local router | |
edit firewall | |
set all-ping enable | |
set broadcast-ping disable | |
set ipv6-receive-redirects disable | |
set ipv6-src-route disable |
$ bundle exec rackup -p 3003 | |
22:47:02 - INFO - Using Guardfile at /root/calculator-widget/dev/Guardfile. | |
22:47:04 - INFO - Guard is using TerminalTitle to send notifications. | |
22:47:04 - INFO - Starting CSS Builder | |
22:47:04 - INFO - Building CSS | |
22:47:11 - INFO - Starting JS Builder | |
22:47:11 - INFO - Building JS | |
22:47:11 - INFO - Guard is now watching at '/root/' | |
[1] guard(main)> [2014-09-11 22:47:12] INFO WEBrick 1.3.1 | |
[2014-09-11 22:47:12] INFO ruby 1.9.3 (2014-09-03) [java] |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/bmizerany/pat" | |
) |
user www-data; | |
worker_processes 1; | |
worker_rlimit_nofile 10000; | |
daemon off; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
# multi_accept on; | |
} |
# config/initializers/redcarpet.rb | |
module ActionView | |
class Template | |
module Handlers | |
class Markdown | |
class_attribute :default_format | |
self.default_format = Mime::HTML | |
def call(template) |
# gem install redcarpet | |
# config/initializers/redcarpet.rb | |
# {viewname}.html.md | |
module ActionView | |
class Template | |
module Handlers | |
class Markdown | |
class_attribute :default_format | |
self.default_format = Mime::HTML |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc |
user deploy; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |