Skip to content

Instantly share code, notes, and snippets.

View TakingItCasual's full-sized avatar

TakingItCasual

  • Mikkeli, Finland
View GitHub Profile
@TakingItCasual
TakingItCasual / virtualenv.rst
Last active August 23, 2018 09:40
Summary of youtube tutorial on python environments.

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
@TakingItCasual
TakingItCasual / netacad.user.js
Last active February 5, 2021 10:53
Tampermonkey script for NetAcad arrow key navigation
// ==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 / proper_indent_parser.py
Created September 18, 2018 16:40
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)
argparse.ArgumentParser.__init__(
self, *args, **kwargs, formatter_class=formatter_class)
class ProperIndentFormatter(argparse.HelpFormatter):
@TakingItCasual
TakingItCasual / packet_tracer_guide.rst
Last active September 2, 2022 11:07
A cheat sheet for commands related to Cisco switches and routers.

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>]).