This file contains hidden or 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
-module(mod_http_presence). | |
-behavior(gen_mod). | |
-include("ejabberd.hrl"). | |
-include("jlib.hrl"). | |
-export([start/2, stop/1, on_presence/4]). | |
start(Host, _Opts) -> |
This file contains hidden or 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 | |
sudo watch -n 1 streamer -s 1280—720 -f jpeg -o /var/www/avsp/warroom.jpeg |
This file contains hidden or 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 groupBy(jsonArray, fun) { | |
return jsonArray.reduce(function(accumulator, object) { | |
var value = fun(object); | |
if (Array.isArray(accumulator[value])) { | |
accumulator[value].push(object); | |
} else { | |
accumulator[value] = [object]; | |
} | |
return accumulator; | |
}, {}); |
This file contains hidden or 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<META HTTP-EQUIV="Refresh" CONTENT="1"> | |
</head> | |
<body> | |
<img src="warroom.jpeg"> | |
</body> | |
</html> |
This file contains hidden or 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 | |
BACKUP_DIR=/dir/to/backup | |
SQL_FILE=backup.sql | |
mysqldump --skip-extended-insert --skip-dump-date \ | |
-uuser -ppwd database | | |
grep -v 'INSERT INTO `wp_statpress`' > $BACKUP_DIR/$SQL_FILE | |
rsync -ax /dir/to/wordpress/wp-content/themes/twentyten \ |
NewerOlder