Skip to content

Instantly share code, notes, and snippets.

Avatar

Vitaliy ultraon

View GitHub Profile
@ultraon
ultraon / bash-cheatsheet.sh
Created Mar 17, 2017 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@ultraon
ultraon / reset_routing_table.sh
Created Mar 6, 2017 — forked from midwire/reset_routing_table.sh
Reset routing table on OSX
View reset_routing_table.sh
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -r
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times
You can’t perform that action at this time.