Skip to content

Instantly share code, notes, and snippets.

Don Park donpdonp

View GitHub Profile
@donpdonp
donpdonp / cdp.js
Last active Jun 20, 2020
gluon defi CDP checker
View cdp.js
(function() {
setup()
return { name: "cdp" }
})
var key = "defi:cdps"
var cache = []
var soon_cache = []
var soon_time = 15 * 60 * 1000 // 15min
var alert_channel = "#zrobo"
@donpdonp
donpdonp / oregonorders.js
Last active Jun 12, 2020
gluon oregon state executive orders
View oregonorders.js
(function() {
setup()
return {
name: "oregonorders"
}
})
var alert_channel = "#portlandor"
var orders = []
@donpdonp
donpdonp / corona.js
Last active Jun 22, 2020
gluon corona tracker
View corona.js
(function() {
setup()
return {name:"corona"}
})
var alert_channel = '#pdxbots'
var locations
var data_date
var oregon
@donpdonp
donpdonp / kernel.js
Last active Mar 1, 2020
gluon kernel
View kernel.js
(function() {
kernel_cache()
return {name:"kernel"}
})
var db_key = "kernel:cache"
var kver = {}
function kernel_cache() {
db.get(db_key, function(json){
@donpdonp
donpdonp / tls.js
Last active May 15, 2020
gluon tls ssl checks
View tls.js
(function() {
setup()
return {name:"tls"}
})
var watchlist = {}
var key = "tls:watchlist"
function setup() {
scan("*", function(result){
@donpdonp
donpdonp / kluster.js
Last active Sep 17, 2019
gluon kmeans cluster test
View kluster.js
(function() {
return {
name: "kluster"
}
})
var proxpairs = {}
function go(msg) {
if(msg.method == "irc.privmsg") {
View gist:d770da8dde3aaba0e6a25f5d35c78856
diff --git a/src/main.zig b/src/main.zig
index d651eb9..93bb0ea 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -230,7 +230,7 @@ fn netback(command: *thread.Command) void {
for(tree.root.Array.toSlice()) |jsonValue| {
const item = jsonValue.Object;
var toot = allocator.create(toot_lib.Type) catch unreachable;
- toot.init(item, allocator);
+ toot = toot_lib.Type.init(item, allocator);
View gist:b6d51d70c4b59c3780d760f8b0938685
/* gdk/gdkevents.h */
struct _GdkEventTouch
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
gdouble *axes;
View gist:c615aa58ff8f408410daf4477de80b1f
/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-hello-world */
#include "common.h"
BEGIN
DBG
mov $msg, %si
mov $0x0e, %ah
loop:
lodsb
or %al, %al
@donpdonp
donpdonp / 911.js
Last active Mar 11, 2020
gluon Portland 911 watch
View 911.js
(function() {
return {name:"911"}
})
var alert_channel = '#pdxbots'
var reports
var reportdate
function go(msg) {
if (msg.method == "clocktower" && (new Date(Date.parse(msg.params.time))).getMinutes() == 15) {
You can’t perform that action at this time.