Skip to content

Instantly share code, notes, and snippets.

@TakingItCasual
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

Terminology

  • 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
TakingItCasual / proper_indent_parser.py
Created Sep 18, 2018
argparse class to properly indent subparser help
View proper_indent_parser.py
class ProperIndentParser(argparse.ArgumentParser):
"""Use formatter_class that properly indents help in subparsers"""
def __init__(self, *args, **kwargs):
formatter_class = lambda prog: ProperIndentFormatter(prog)
argparse.ArgumentParser.__init__(
self, *args, **kwargs, formatter_class=formatter_class)
class ProperIndentFormatter(argparse.HelpFormatter):
@TakingItCasual
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 https://static-course-assets.s3.amazonaws.com/
// @version 0.10
// @description Arrow keys will scroll pages and figures, and numbers for total sections/topics/pages are inserted
// @author TakingItCasual
// @match https://static-course-assets.s3.amazonaws.com/*
// @grant none
// ==/UserScript==
@TakingItCasual
TakingItCasual / virtualenv.rst
Last active Aug 23, 2018
Summary of youtube tutorial on python environments.
View virtualenv.rst

The video: https://www.youtube.com/watch?v=N5vscPTWKOk

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

Installing virtualenv:

$ sudo pip install virtualenv