Skip to content

Instantly share code, notes, and snippets.

TakingItCasual / packet_tracer_guide.rst
Last active Dec 11, 2019
A cheat sheet for commands related to Cisco switches and routers.
View packet_tracer_guide.rst


  • Placeholders are indicated between less-than and greater-than symbols (e.g. <subnet mask>).
  • Optional arguments are indicated between square brackets (e.g. [<upper range>]).
TakingItCasual /
Created Sep 18, 2018
argparse class to properly indent subparser help
class ProperIndentParser(argparse.ArgumentParser):
"""Use formatter_class that properly indents help in subparsers"""
def __init__(self, *args, **kwargs):
formatter_class = lambda prog: ProperIndentFormatter(prog)
self, *args, **kwargs, formatter_class=formatter_class)
class ProperIndentFormatter(argparse.HelpFormatter):
TakingItCasual / netacad.user.js
Last active Feb 5, 2021
Tampermonkey script for NetAcad arrow key navigation
View netacad.user.js
// ==UserScript==
// @name Arrow keys for NetAcad
// @namespace
// @version 0.10
// @description Arrow keys will scroll pages and figures, and numbers for total sections/topics/pages are inserted
// @author TakingItCasual
// @match*
// @grant none
// ==/UserScript==
TakingItCasual / virtualenv.rst
Last active Aug 23, 2018
Summary of youtube tutorial on python environments.
View virtualenv.rst

The video:

This guide assumes environments are placed under ~/pyenvs/, and provides examples for an environment named ec2mc_env.

Installing virtualenv:

$ sudo pip install virtualenv