Skip to content

Instantly share code, notes, and snippets.

@nolageek
nolageek / ScrollingList.py
Last active June 4, 2023 22:10
mystic scrolling list class
from mystic_bbs import *
x,y = termsize()
# ScrollingList is a class that provides functionality for displaying a list of items in a scrollable format.
# It supports various features like scrolling up and down, wrapping around the list, and selecting items.
# It also supports customization of the display format, including prefixes and suffixes for items,
# and separators for item attributes.
class ScrollingList:
@nolageek
nolageek / dd-bbslink-menu.py
Last active July 5, 2022 23:34
bbslink client menu for daydream
@nolageek
nolageek / wmata.py
Created May 11, 2015 18:12
wmata times for daydream bbs
from pywmata import Wmata
from blessed import Terminal
import os
import dd
import sys
t = Terminal()
api = Wmata("xxxxxxxxxxxxxxxxxxxx")
@nolageek
nolageek / dd-bbslink.py
Last active August 29, 2015 14:20
bbslink client for daydream bbs
@nolageek
nolageek / pushover.py
Last active February 4, 2016 07:12
Pushover Notifications for x/84
import httplib, urllib
# Config
# You will need to sign up for a pushover.net account - and download
# their paid ios or android apps or their various 3rd party plugins.
# https://pushover.net/apps
appToken = "APPTOKEN HERE"
userKey = "USERKEY HERE"
@nolageek
nolageek / pushover.js
Last active August 29, 2015 14:11
Pushover Notifications v0.13
load("http.js"); //this loads the http libraries which you will need to make requests to the web server
load("sbbsdefs.js");
// Pushover notifications for synchronet v0.13 by nolageek
//
// This script adds simple push notifications to your synchronet bbs, using the pushover API,
// NOTE: install the free Pushover browser plugins or paid iOS or Android apps, you'll receive
// notifications for different events as soon as they occur on your BBS. Any configurable event
// can have a notification easily added, basically by running the script and adding a "KEYWORD"
// afterwards.
//
@nolageek
nolageek / weather.js
Last active December 15, 2015 04:57
load("http.js"); //this loads the http libraries which you will need to make requests to the web server
load("sbbsdefs.js"); // i always load this when making stuff for synchronet don't know why
//var wungrndAPIkey = "xxxxx"; // put your wunderground API key here
function forecast() {
var req= new HTTPRequest();
var req2= new HTTPRequest();
var current = req.Get("http://api.wunderground.com/api/" + wungrndAPIkey + "/conditions/q/autoip.json?geo_ip=" + user.ip_address);
var forecast = req2.Get("http://api.wunderground.com/api/" + wungrndAPIkey + "/forecast/q/autoip.json?geo_ip=" + user.ip_address);
var cu = JSON.parse(current);
@nolageek
nolageek / syncipban.txt
Last active August 29, 2015 14:06
banning script kiddies' IPs in synchronet
# For default
###################################
Open login.js in your /sbbs/exec directory (or in /sbbs/mods) or applicable login.js replacement.
IPs are added to
/sbbs/text/ip.can