This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jupyter notebook creation convenience for ~/.zshrc: | |
new-notebook() { | |
if [ ! -f "$(pwd)/$1.ipynb" ]; then | |
echo "{ | |
\"cells\": [], | |
\"metadata\": {}, | |
\"nbformat\": 4, | |
\"nbformat_minor\": 2 | |
}" > "$(pwd)/$1.ipynb" | |
echo "***Created New Notebook at: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mainInt="en4" | |
netstat -nr -f inet | |
for i in {0..3}; do | |
echo flushing,... | |
sudo route -n flush | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ASA Version 9.3(2) | |
! | |
hostname ACTUNNEL_ASA | |
ip local pool ACTUNNEL_POOL 10.10.11.1-10.10.11.20 mask 255.255.255.0 | |
! | |
interface GigabitEthernet0/0 | |
nameif outside | |
security-level 0 | |
ip address 172.16.21.1 255.255.255.0 | |
! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCP is kinda weird. | |
To copy all files in 3 levels of nested directories ending in foo.bar, such as 123foo.bar & 456foo.bar: | |
scp USER@SERVER:'/path/to/some\ directory/*/*/*foo.bar' ./ | |
Notice the directory name has a space in it so we escape with a backslash. | |
An alternative to the escape character would be double quotes within the single quotes, around the non wild part of the source path: | |
scp USER@SERVER:'"/path/to/some directory"/*/*/*foo.bar' ./ | |
The destination of ./ means local directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packet_device.virl (remote-exec): ---------- | |
packet_device.virl (remote-exec): ID: root-hostname-wildcard | |
packet_device.virl (remote-exec): Function: mysql_user.present | |
packet_device.virl (remote-exec): Name: root | |
packet_device.virl (remote-exec): Result: False | |
packet_device.virl (remote-exec): Comment: Failed to create user root@F257DABA | |
packet_device.virl (remote-exec): Started: 02:01:07.319391 | |
packet_device.virl (remote-exec): Duration: 4.864 ms | |
packet_device.virl (remote-exec): Changes: | |
packet_device.virl (remote-exec): ---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BsMBP:virl_boxcutter bem$ vagrant plugin install virtualbox --debug | |
INFO global: Vagrant version: 1.8.7 | |
INFO global: Ruby version: 2.2.5 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_OLD_ENV_EDITOR="subl" | |
INFO global: VAGRANT_OLD_ENV_SHLVL="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
INFO global: VAGRANT_OLD_ENV_TERM_SESSION_ID="3BF81929-C0DF-4B68-B104-C2D52F980E3B" | |
INFO global: VAGRANT_OLD_ENV_USER="bem" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BsMBP:virl_boxcutter bem$ vagrant plugin install virtualbox --debug | |
INFO global: Vagrant version: 1.7.4 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_OLD_ENV_PWD="/Users/bem/factory/virl_boxcutter" | |
INFO global: VAGRANT_OLD_ENV_HOME="/Users/bem" | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant" | |
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="Apple_Terminal" | |
INFO global: VAGRANT_OLD_ENV_LOGNAME="bem" | |
INFO global: VAGRANT_OLD_ENV_TMPDIR="/var/folders/8m/6dsl12z52g7b_9f4kh1yb0s40000gn/T/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packet_device.virl (remote-exec): Name: ifdown --force eth0 - Function: cmd.run - Result: Clean Started: - 06:44:27.601363 Duration: 6.454 ms | |
packet_device.virl (remote-exec): Name: salt-call --local ip.build_interface eth0 eth True proto=dhcp - Function: cmd.run - Result: Changed Started: - 06:44:27.607982 Duration: 821.891 ms | |
packet_device.virl (remote-exec): Name: /etc/dhcp/dhclient.conf - Function: file.managed - Result: Changed Started: - 06:44:28.430258 Duration: 21.788 ms | |
packet_device.virl (remote-exec): ---------- | |
packet_device.virl (remote-exec): ID: eth0 ifup | |
packet_device.virl (remote-exec): Function: cmd.run | |
packet_device.virl (remote-exec): Name: ifup eth0 | |
packet_device.virl (remote-exec): Result: False | |
packet_device.virl (remote-exec): Comment: Command "ifup eth0" run | |
packet_device.virl (remote-exec): Started: 06:44:28.452693 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant plugin install virtualbox --debug | |
INFO global: Vagrant version: 1.9.5 | |
INFO global: Ruby version: 2.2.5 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color" | |
INFO global: VAGRANT_OLD_ENV_SECURITYSESSIONID="186a7" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
INFO global: VAGRANT_OLD_ENV_PWD="/Users/bem" | |
INFO global: VAGRANT_OLD_ENV_XPC_SERVICE_NAME="0" | |
INFO global: VAGRANT_OLD_ENV_SHLVL="1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!UDLD sends frames to a special fake MAC address and it wants them echod back by the UDLD on the other device. | |
!A unidirectional fiber failure should be simulatable with a MAC address filter. | |
!UDLD only acts if a port enters bidirectional UDLD state before tranistioning to unidirectional. | |
! | |
!Wait for bidirectional state, then: | |
mac access-list extended UDLD_FILTER | |
deny any host 0100.0ccc.cccc | |
perm any | |
! | |
int G x/x |
NewerOlder