Skip to content

Instantly share code, notes, and snippets.

export async function upload(name: string, data: any) {
const { getSecret } = await import("@maf/core.ts");
// import { getSecret } from "@maf/core.ts";
const token = await getSecret("FILES_TOKEN");
if (!token) {
console.warn("no files upload token provided, skipping");
return;
import gc
import sys
from datetime import datetime
from collections import Counter
from disco.bot import Plugin, CommandLevels
class MemoryDebugPlugin(Plugin):

Pillow

(64, 64)
        0.217446804047 total time
        217446.804047 ns / op
(128, 128)
        0.085732460022 total time
 85732.460022 ns / op
nickname: N0th1ngT0S33H3r3
commands:
mention: true
overrides:
'*':
level: 1
plugins: {}
@b1naryth1ef
b1naryth1ef / base_config.yaml
Created November 12, 2016 13:40
Basic Rowboat Configuration
nickname: "ROWBOAT"
levels:
108598213681922048: 100
commands:
prefix: '!'
plugins:
admin: {}
nickname: "S0mBr0"
levels:
108236341766017024: 100
181892117952593921: 100
160614763775262721: 1
247922672401383434: 1
160623009449639936: 1
86982772370989056: 2 # mendo
nickname: "R0WB0AT"
levels:
# Moderator
203287359125585920: 100
# Support
180036462832648192: 100
# Devs
41771983423143936: 100
@b1naryth1ef
b1naryth1ef / testing_server.yaml
Last active November 14, 2016 15:02
Config for test server
nickname: "ROWBOAT"
levels:
108598213681922048: 100
commands:
prefix: '!'
overrides:
test:
level: 0
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
var total = 0;
jQuery("td.wht_total").each(function (_, x) {
var amount = x.innerText.split("\n")[0].substr(1);
amount = parseFloat(amount);
if (isNaN(amount)) return;

Keybase proof

I hereby claim:

  • I am b1naryth1ef on github.
  • I am b1nzy (https://keybase.io/b1nzy) on keybase.
  • I have a public key ASBUnymxKnD_dQruvSQDQ_r0DLKMXMuYVF8gMbhtYGU1lwo

To claim this, I am signing this object: