This file contains 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
Over time, I collected some options to make Firefox really fast. | |
WARNING! NO WARRANTY, use on your own risk! | |
If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
Hint: Double-click boolean values to toggle true/false. | |
########################### | |
If mouse-wheel scrolling is slow, try |
This file contains 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 | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |
This file contains 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
# /etc/security/limits.conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
=========================================================== | |
# /etc/sysctl.conf | |
# sysctl for maximum tuning |
This file contains 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
local path = ngx.var.request:split(" ")[2] -- path | |
local t={} | |
local cjson = require "cjson" | |
local m = ngx.re.match(path,[=[^/sentence/(.+)]=]) | |
local words = m[1]:split("%%20") -- words in the sentence | |
for i,k in pairs(words) do | |
local res_word = ngx.location.capture("/real/".. k ) | |
local value=cjson.new().decode(res_word.body) | |
table.insert(t, value.sentiment) |
This file contains 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
config = { | |
nick = "my-nick123", | |
autoReconnect=true, | |
host="irc.freenode.org", | |
port=6667, | |
ident="my-nick123", | |
realname="my-nick123", | |
channels={"#lua"}, | |
modules = {'roll'}, | |
} |