Skip to content

Instantly share code, notes, and snippets.

Mark Biggers biggers

Block or report user

Report or block biggers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
biggers / .gitconfig
Created Nov 7, 2019
My dot gitconfig
View .gitconfig
# -*-conf-*-
# email =
email =
name = Mark Biggers
autocrlf = input
safecrlf = false
pager = less -+S
biggers /
Last active Mar 3, 2019
insert a set of CSVs (spreadsheets, "raw") into a MySQL DB - Python3 example (DB API; generators; PyMySQL)
import pymysql.cursors
import os
from attrdict import AttrDict
import sys
from datetime import datetime as dt
# Insert all /var/tmp/*/"CSV summary-reports" into MySQL - using Py DB-API
# NOTE: schema for the table must have been already created!
biggers /
Created Dec 27, 2018
"bootstrap" bashrc for a WSL (Windows 10) and Docker workflow
# /home/mabigger/ -*-sh-*-
# ---- References
sudo mount --bind /mnt/c /c
biggers /
Last active Aug 6, 2018
"pets" example from peewee "quickstart" / documentation
# Refs:
# (primary)
from datetime import date
import peewee
from peewee import ( # noqa: F401
biggers / gosmacs.el
Created Jun 30, 2018
favorite Gosling Emacs keybindings, once shipped with GNU Emacs -- probably not any more
View gosmacs.el
;;; gosmacs.el --- rebindings to imitate Gosmacs.
;; Copyright (C) 1986 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: emulations
;; This file is part of GNU Emacs.
;; GNU Emacs is free software; you can redistribute it and/or modify
biggers /
Last active May 18, 2018
torpeewee -- fixed example from torpeewee/README.rst -- async peewee for Tornado
# -*- coding: utf-8 -*-
# REWORKED by, from:
# 16/7/7
# create by: snower
import datetime
from tornado import gen
from tornado.ioloop import IOLoop
from torpeewee import (
biggers / .bashrc.macos
Created Jan 9, 2018
.bashrc additions, for virtualenvwrapper and Python3 from
View .bashrc.macos
# you can omit the first (2) entries...
export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin::/sbin:/usr/bin:/bin"
export PATH=/Applications/$PATH
# 'virtualenvwrapper' support
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/
source /usr/local/bin/
biggers /
Created Dec 19, 2017
Python3 rotating log-file configuration via "config.dictConfig"
import sys
import logging
import logging.config
import random
import string
# "thank you" to folks on for various ideas,
# for this example. Works with Python3.
biggers /
Last active Jan 2, 2018
"continously-running" Tornado TCP client example -- sends to 'tornado/demos/tcpecho/'
import time
import logging
from tornado.options import options, define
from tornado import gen
from tornado.tcpclient import TCPClient
from tornado.iostream import StreamClosedError
from tornado.ioloop import IOLoop
define("host", default="", help="TCP server host")
define("port", default=9888, help="TCP port to connect to")
biggers /
Created Sep 26, 2017
shell-recipe for pyenv install of Python 3.6.2 on CentOS / Redhat 6.7
# REF:
# ... building Python 3.6.2 on Bastion, "locally"
# yum install [Python3 build pre-reqs, on CentOS 6.7]
curl -L | bash
tee -a $HOME/.bash_profile <<EOF
export PATH="\$HOME/.pyenv/bin:\$PATH"
eval "\$(pyenv init -)"
You can’t perform that action at this time.