Skip to content

Instantly share code, notes, and snippets.

View M-griffin's full-sized avatar

Michael Griffin M-griffin

  • Chicago, IL
View GitHub Profile
@M-griffin
M-griffin / u8.cpp
Created March 21, 2015 05:58
Display CP437 Artwork in UTF-8 Console
/*
ANSI Art to UTF-8 Translation
(c) Michael Griffin <mrmisticismo@hotmail.com> 2014-02-05
telnet://htc.zapto.org
Based loosely on CP437.py by Wijnand Modderman-Lenstra.
To Compile GNU GCC
use: g++ -o u8 u8.cpp -std=c++0x
@M-griffin
M-griffin / main.cpp
Last active August 29, 2015 14:17
Experimental Windows Telnet Server [Forks Processes and Pipes STDIO from Console like Linux]
/*
Michael Griffin <mrmisticismo@hotmail.com>
Free for use and modification
A Dirty (incomplete) Rewrite of ddtelnetd for windows to test forking and piping stdio
Works by connecting then forking to CMD.exe, will also work with any
generic console application
Originally complied in DEVC++ for Windows, should work with gcc/mingw32
@M-griffin
M-griffin / msgarea.py
Last active August 29, 2015 14:17
msgarea.py for x84 bbs, fix for reading privates messages in groups by members
"""
Message area for x/84.
This script provides an interface to check for new
messages, subscribe to and browse tags and networks,
find all, or unread messages, or all messages since
last login.
It determines a set of message-ids that are then
forwarded to the message browser interface.
@M-griffin
M-griffin / weather.py
Created March 13, 2015 09:02
Weather.py for x84 BBS, Some Fixes for Zip Code and Saving Changed Locations on exit.
""" Weather forecast script for x/84. """
from xml.etree import cElementTree as ET
import itertools
import textwrap
import requests
import warnings
import logging
import time
import os
#!/usr/bin/env python2.7
"""
PyPacketMail for x/84, http://github.com/jquast/x84
(c) 2015 Michael Griffin <mrmisticismo@hotmail.com>
http://github.com/m-griffin/PyMailPacket
This is a FidoNet Echomail Scanner / Tosser for x84 bbs.
This will mimic the basic functionality of Crashmail for
Reading and Writing mail packets.
@M-griffin
M-griffin / SequenceParser.cpp
Last active September 1, 2023 04:09
Terminal Control Sequence Validator and Splitter.
/* Terminal Control Sequence Parser
* (c) Michael Griffin <mrmisticismo@hotmail.com>
* 12/27/2014
* Runs through passed string data to parse text and control sequences
* Handle the most basic terminal and a majority of Xterm Control Sequences.
* Window Text and String sequences are not handeled.
*
* The job of this class is to seperate text and control sequences,
* When control sequences are present they are parameterized into a vector
* with the sequence terminator as the first parameter and following
@M-griffin
M-griffin / Pipe2Ansi.cpp
Last active August 29, 2015 14:10
Pipe Codes to ANSI Color ESC sequences
// Pipe Code to ANSI Color Parser
// Michael Griffin (c) 2011
// Donated to DayDream BBS in C, Rework of Enthral BBS from C++
// Compile using gcc in in linux.
// Free to use and modify
#include <stdio.h>
#include <stdlib.h>