Skip to content

Instantly share code, notes, and snippets.

View zerobearing2's full-sized avatar

Dave Bradford zerobearing2

View GitHub Profile
@zerobearing2
zerobearing2 / services-start.sh
Last active March 3, 2021 17:40 — forked from ovace/services-start.sh
multi SSID with VLAN script, for ASUS AC86U with merlin
#!/bin/sh
# multi SSID with VLAN script, for ASUS AC86U with merlin
#
# setup before hand:
# set "router" to "AP Mode"
# this will put all ports and wireless in br0
# create 3 guest network
# enable Administration => System => Enable JFFS custom scripts and configs
# put this script in /jffs/scripts/, name should be "services-start"
require "net/http"
def start_server
# Remove the X to enable the parameters for tuning.
# These are the default values as of Ruby 2.2.0.
@child = spawn(<<-EOC.split.join(" "))
XRUBY_GC_HEAP_FREE_SLOTS=4096
XRUBY_GC_HEAP_INIT_SLOTS=10000
XRUBY_GC_HEAP_GROWTH_FACTOR=1.8
XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0
@zerobearing2
zerobearing2 / deflate_request.rb
Last active August 29, 2015 14:05 — forked from relistan/compress_requests.rb
Rack middleware to deflate/unzip requests
module Rack
#
# Deflate/ungzip request body
#
class DeflateRequest
def initialize(app)
@app = app
end
select.form-control + .chosen-container.chosen-container-single .chosen-single {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;