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
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
<!-- config ... --> | |
<keyboard> | |
<!-- in section keyboard add following: --> | |
<keybind key="XF86AudioLowerVolume"> | |
<action name="Execute"><execute>amixer -q sset Master 3%-</execute></action> | |
</keybind> | |
<keybind key="XF86AudioRaiseVolume"> | |
<action name="Execute"><execute>amixer -q sset Master 3%+</execute></action> | |
</keybind> |
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
<!---volume keys--> | |
</keybind> | |
<keybind key="XF86AudioRaiseVolume"> | |
<action name="Execute"> | |
<execute>amixer sset Master 2+</execute> | |
</action> | |
</keybind> | |
<keybind key="XF86AudioLowerVolume"> | |
<action name="Execute"> | |
<execute>amixer sset Master 2-</execute> |
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
IMPORTANT: this is outdated, go to https://github.com/netroy/Lockets | |
"npm install socket-io" & you are ready to go |
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
// Based on http://bit.ly/215MBZ | |
function FailureDetector(ws) { | |
// ws stands for window size. | |
// How many heartbeat intervals we keep track of. | |
this.ws = ws || 100; | |
this.window = []; | |
this.last = null; | |
} | |
exports.FailureDetector = FailureDetector; |
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
function __tailingFn () { | |
for (var i = arguments.length; i--;) { | |
if (typeof arguments[i] == 'function') { | |
var fn = arguments[i]; | |
arguments[i] = undefined; | |
return fn; | |
} | |
} | |
} |
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
require "net/http" | |
require "enumerator" | |
# Example Usage: | |
# | |
# use Rack::Proxy do |req| | |
# if req.path =~ %r{^/remote/service.php$} | |
# URI.parse("http://remote-service-provider.com/service-end-point.php?#{req.query}") | |
# end | |
# end |