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() { |
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
# June 2023 | |
# Core I5-8250 thinkpad: 350 keys/second | |
import os | |
import sys | |
import importlib.util | |
from datetime import datetime | |
if importlib.util.find_spec('bitcoin') is None: | |
print("bitcoin module not found. please install https://pypi.org/project/bitcoin/") | |
sys.exit() |
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) { |
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) { |
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(){ |
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; |
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]) |
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' |
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: "icecondor"} | |
}) | |
var public_channel = "#zrobo" | |
var alert_channel = "#zrobo" //"#pdxbots" | |
var movement_channel = "#pdxbots" | |
var key_userlist = 'icecondor:userlist' | |
var key_userprefix = 'icecondor:user' |
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:"osm"} | |
}) | |
// osm json | |
//{"bearing":345.9410965462545,"distance":355.0966239302687, | |
// "node":{"id":1963188104,"lat":45.5233261,"lon":-122.6584695,"tags":{... | |
function go(msg) { |