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/bash | |
# Fail on command non zero return code | |
set -e | |
TXT_BOLD=$(tput bold) | |
TXT_RESET=$(tput sgr0) | |
function log { | |
echo "" |
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
var Crypto = require("crypto"), | |
Util = require("util"); | |
/* | |
// Test values generated by jweb and jhost | |
*/ | |
var getTestValues = function () { | |
return { | |
tokenString: "0000000053e8d466936d3f9478f731b5315d2a93ff36994ca99a517134e10835cecf710eab58965c80e82a9402cbaba14f2b63ddc6f7601384d110f420df0ae8f828dcd366ebf931", |
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
#pacman -S vicious | |
vicious = require("vicious") | |
-- {{{ Wibox | |
-- battery widget | |
batwidget = wibox.widget.textbox() | |
vicious.register(batwidget, vicious.widgets.bat, ' bat: $1 $2%<span color="#cccccc"> | </span>', 61, 'BAT0') |