Skip to content

Instantly share code, notes, and snippets.

View RdrSeraphim's full-sized avatar
♨️
Why do they call it oven when you of in the cold food of out hot eat the food?

Rdr. Seraphim Pardee RdrSeraphim

♨️
Why do they call it oven when you of in the cold food of out hot eat the food?
View GitHub Profile
#!/bin/sh
# OTA updates for Onion.
cmd=$1
sysdir=/mnt/SDCARD/.tmp_update
# Colors
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
#!/bin/bash
MUPDF_SRC="https://casper.mupdf.com/downloads/archive/mupdf-1.26.3-source.tar.gz"
PLUGIN_REPO="https://github.com/pwmt/zathura-pdf-mupdf"
PLUGIN_BRANCH="develop"
function color() {
if [ "$#" -ne 2 ] ; then
echo "[ERROR] color <color-name> <text> expected two arguments, but got $#" >&2
return 1

openpgp4fpr:11FD4E775F8802ACD83B6DE5A2BC63FA0276FE65

@RdrSeraphim
RdrSeraphim / dispatch_cron.js
Created July 6, 2022 18:19
node-cron Wrapper for Node.js
import jobs from './jobs/jobs';
import cron from 'node-cron';
/**
* CronDispatcher allows for handling multiple cron jobs at once.
*/
export default class CronDispatcher {
/**
* Manager for cron tasks, starts all jobs if isTest is false.
*

Keybase proof

I hereby claim:

  • I am SeraphimRP on github.
  • I am s_rp (https://keybase.io/s_rp) on keybase.
  • I have a public key whose fingerprint is 2BBA 067C 49F6 2C1D B4A9 E175 2627 9A48 C27D 2A43

To claim this, I am signing this object:

import os
import asyncio # noqa: F401
import datetime
import discord
from redbot.core import commands, checks, Config
class SuggestionBox(commands.Cog):
"""custom cog for a configurable suggestion box"""
def binary_search(array, target):
beginning = 0
end = len(array)
searches = 1
while beginning < end:
m = beginning + (end - beginning) // 2
val = array[m]
if target == val:
import random
def binary_search(array, target):
beginning = 0
end = len(array)
searches = 1
while beginning < end:
m = beginning + (end - beginning) // 2
val = array[m]

Keybase proof

I hereby claim:

  • I am vypr on github.
  • I am vypr (https://keybase.io/vypr) on keybase.
  • I have a public key whose fingerprint is D3F5 E498 41C7 7B70 576C F54D B330 51CA 8089 24DF

To claim this, I am signing this object:

04de079fe405208d1916a513cf1c95901d8b80b748dc755900e4d8b818cdc072f1600964ca52aa1b8d8589f44ae5b275dd3b1b8744314d86a4f46207e003625a18