Skip to content

Instantly share code, notes, and snippets.

View josephdrane's full-sized avatar
☺️

Joseph Drane josephdrane

☺️
View GitHub Profile
@josephdrane
josephdrane / centos_router_setup.sh
Last active May 2, 2019 19:15
CentOS Router Setup
#!/bin/bash
# Set hostname
hostnamectl set-hostname router
# view interfaces
ip addr show
# enable ip forwarding w/ out reboot, but not persistent after reboot
sysctl -w net.ipv4.ip_forward=1
@josephdrane
josephdrane / vim-cheatsheet.md
Created September 6, 2018 16:56 — forked from 0xadada/README.md
VIM movement, keyboard commands and shortcuts
@josephdrane
josephdrane / iterm2.md
Last active September 6, 2018 16:51 — forked from squarism/iterm2.md
iterm2 cheatsheet

Favorites

Function Shortcut
Split Window Horizontally (same profile) + Shift + D
Split Window Vertically (same profile) + d
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [

Tabs and Windows

@josephdrane
josephdrane / ssh_helper.py
Created April 23, 2018 04:07 — forked from jtdub/ssh_helper.py
FB SSH_HELPER
#!/usr/local/bin/python3
# Copyright 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE-examples file in the root directory of this source tree.
""" SSH Connection Handler for Network Devices