View ecoli.js
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(){ | |
return {name: "ecoli"} | |
}) | |
var dbkey = "ecoli" | |
var url = 'https://www.portlandoregon.gov/bes/waterquality/results.cfm?location_id=7132' | |
var state | |
function setup() { | |
db.get(dbkey, function(json) { |
View coin.js
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() { | |
setup() | |
return { | |
name: "coin" | |
} | |
}) | |
var etherscan_apikey | |
var cache_date = new Date(0) | |
var cache = {data:[]} |
View price.js
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() { | |
setup() | |
return { | |
name: "price" | |
} | |
}) | |
var dbkey = "price" | |
var alert_channel = "#zrobo" | |
var state = { watches: {} } |
View weather.js
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() { | |
// descriptor | |
setup() | |
return {name:"weather"} | |
}) | |
var apikey_climacell | |
var apikey_pirateweather | |
function setup(){ |
View chatgpt.js
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() { | |
setup() | |
return {name:"chatgpt"} | |
}) | |
var dbkey = "openai-key" | |
var api_key = "" | |
function setup() { | |
db.get(dbkey, function(key) { |
View example.com.conf
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/nginx/sites-enabled/example.com.conf | |
server { | |
listen 80; | |
server_name .example.com; | |
root /var/letsencrypt/webcache; | |
location /.well-known { | |
try_files $uri =404; | |
} | |
location / { | |
return 301 https://$host$request_uri; |
View tls.js
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() { | |
setup() | |
return {name:"tls"} | |
}) | |
var alert_channel = "#pdxbots" | |
var watchlist = {} | |
var key = "tls:watchlist" | |
function setup() { |
View kernel.js
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() { | |
kernel_cache() | |
return {name:"kernel"} | |
}) | |
var db_key = "kernel:cache" | |
var kver = {} | |
var alert_channel = "#pdxtech" | |
function kernel_cache() { |
View urbandictionary.js
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() { | |
// descriptor | |
return {name:"urbandictionary"} | |
}) | |
function go(msg) { | |
if (msg.method == "irc.privmsg") { | |
var cmd_match = /^!urbandictionary(\s+(\w+))?/.exec(msg.params.message) | |
if(cmd_match) { | |
var url = 'http://api.urbandictionary.com/v0/define?term='+encodeURIComponent(cmd_match[2]) |
View github.js
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() { | |
// setup | |
setup() | |
// descriptor | |
return {name: "github"} | |
}) | |
// global state | |
var report_channel = '#' //disable | |
var major_report_channel = '#pdxtech' |
NewerOlder