Skip to content

Instantly share code, notes, and snippets.


Mark Stosberg markstos

View GitHub Profile
markstos / md-renderer.html
Last active May 28, 2022 — forked from vietor/md-renderer.html
Nginx render markdown by browser
View md-renderer.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script type="application/javascript" src=""></script>
<script type="application/javascript" src=""></script>
<style rel="stylesheet">
body {
markstos / data-bloomington-in-gov-add-srs.js
Created Jul 15, 2021
Fix links on Bloomington Indiana's data portal to generate spec-compliant GeSON
View data-bloomington-in-gov-add-srs.js
// ==UserScript==
// @name Fix production Bloomington Data Portal
// @namespace
// @description Add GeoJSON spec-compliant projection to URL links
// @include*
// ==/UserScript==
var regex_list = [
markstos / Corne-3x5,--markstos-layout-_All-Layers_.kbd.json
Last active May 3, 2022
Corne 3x5, markstos layout (All Layers)
View Corne-3x5,--markstos-layout-_All-Layers_.kbd.json
"name": "Corne 3x5, markstos layout (All Layers)",
"author": "",
"plate": false,
"keyboard-layout-editor": "",
"qmk-config": ""
markstos /
Last active Aug 29, 2020 — forked from rudism/
Qutebrowser userscript to add current page to bookmarks (requires Fish shell and httpie as dependencies)
# Uncomment and add your pinboard token here or export it globally somewhere
# PINBOARD_API_TOKEN="username:token"
# Put this file in ~/.local/share/qutebrowser/userscripts and chmod +x
# Run it from Qutebrowser with :spawn --userscript
# Bind it to "A" key with :bind --mode normal A spawn --userscript
# All this does is set PINBOARD_API_TOKEN
markstos / keyboard.json
Created Jul 27, 2019 — forked from nukeop/keyboard.json
keyboard layout for xd75
View keyboard.json
markstos / journald-to-logentries.service
Last active Jun 4, 2018 — forked from uzyexe/logentires-systemd
systemd: Sending your CoreOS data to Logentries
View journald-to-logentries.service
# Install the nmap package to get the `ncat` dependency.
# If you want to forward just a specific unit, add `-u your-unit.service` after `journalctl`
ExecStart=/bin/sh -c 'journalctl -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat --ssl 443'
markstos / set-tmux-title
Created Oct 26, 2017 — forked from florianbeer/set-tmux-title
Set tmux pane title to short hostname on ssh connections
View set-tmux-title
ssh() {
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then
tmux rename-window "$(echo $* | cut -d . -f 1)"
command ssh "$@"
tmux set-window-option automatic-rename "on" 1>/dev/null
command ssh "$@"
markstos / oneshot
Last active Aug 29, 2015
oneshot - a single-use, single-file web server to serve a file and then shutdown. Share a file directly with a network neighbor-- no third-party needed.
View oneshot
USAGE="Usage: $0 file.txt. Start a webserver on port $PORT, serve this file and close the connection.";
# exit if there's an error
set -e
HOSTNAME=`hostname -I | cut -d' ' -f1`;
markstos /
Created Mar 6, 2013
Based on [this copy of]( with the following updates: - The beginnings of a "dry run" mode. Currently just some "say" lines that you have manually uncomment, and comment out the related active lines - Support for importing comments (needs tested) - Bette…
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
use Carp;
use IO::Prompt::Tiny 'prompt';
use Net::GitHub;
use Path::Tiny;
use RT::Client::REST::Ticket;
use RT::Client::REST;
markstos / gist:4088910
Created Nov 16, 2012
Design attempt for a Moose role to provide access to a singleton config object
View gist:4088910
package Project::Role::Config;
use Moose::Role;
use Project::ConfigSingleton;
use Project::ToolSet;
# The config hash provided by this role is managed by a singleton class
has 'config_singleton' => (
lazy => 1,
isa => 'Project::ConfigSingleton',