Skip to content

Instantly share code, notes, and snippets.

View joshschmelzle's full-sized avatar
πŸ‘»
ΰΌΌ ぀ β—•_β—• ΰΌ½γ€πŸ›œ

jsz joshschmelzle

πŸ‘»
ΰΌΌ ぀ β—•_β—• ΰΌ½γ€πŸ›œ
View GitHub Profile
@joshschmelzle
joshschmelzle / cisco-3750-notes.md
Last active October 30, 2019 19:32
cisco-3750-notes.md

Factory Reset Cisco Catalyst 3750 Back to Factory Defaults

Backup of https://fatmin.com/2014/12/02/how-to-reset-cisco-catalyst-3750-back-to-factory-defaults/ by Christopher Paquin in case it ever goes dark.

Need to reset your Cisco Catalyst 3750 back to the factory default settings? Have you forgotten your password? Well you have come to the right place. Note that I am assuming that you have already established a console connection to the switch using a Cisco serial cable (rollover cable).

First you need to power down the switch. Once the switch is powered off, hold down the mode button, and power the switch on. The switch will boot up and you should see the switch prompt as shown below.

Now type flash_init. Your output should be similar to what you see below

@joshschmelzle
joshschmelzle / nanopi-m4v2-notes-and-cheatsheet.md
Last active October 28, 2021 00:21
nanopi-m4v2-notes-and-cheatsheet.md

Important Specs

Source

SoC: Rockchip RK3399
CPU: big.LITTLE,Dual-Core Cortex-A72(up to 2.0GHz) + Quad-Core Cortex-A53(up to 1.5GHz)
RAM: Dual-Channel 4GB LPDDR4
Onboard Networking:
 Ethernet: Native Gigabit Ethernet
@joshschmelzle
joshschmelzle / git-cheatsheet-and-notes.md
Last active March 3, 2020 18:13
git-cheatsheet-and-notes.md
git config --global user.name "John Doe"
git config --global user.email [email protected]
git config --global core.editor vim
git config --list
git config user.name
git config user.email
git help config
@joshschmelzle
joshschmelzle / pycharm-git.md
Last active September 8, 2020 23:10
My Vim Notes and Cheatsheet

PyCharm

Use Ctrl+G to navigate to a line in the editor. Use Ctrl+F12 to navigate the code base.

Git

git commit git commit --amend use this to amend the last commit.

@joshschmelzle
joshschmelzle / getwifisettings.ps1
Last active November 18, 2019 19:21
Get WiFi Settings from a Remote Computer Using Powershell
# β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
# β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β•β•
# β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
# β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•‘ β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
# β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
<#
.Synopsis
Gets wireless NIC settings from a remote computer
@joshschmelzle
joshschmelzle / loading-cs.md
Created November 19, 2019 03:12
PowerShell Notes and Cheatsheet

Loading a .cs file directly from PowerShell. This was taken from Knuckle-Dragger's SO answer.

There is no compile of .cs code, just edit the -Path argument to point to your .cs file. I also had to add -Raw when I tried to do said thing outside of this exmaple.

PowerShell file

$source = Get-Content -Path "A:\basic.cs" -Raw
Add-Type -TypeDefinition "$source"
@joshschmelzle
joshschmelzle / gist:7520a7798997b7f159da1dafb7371321
Created November 20, 2019 16:56
802.11 Wi-Fi Notes and Cheatsheet
# Obtaining your cleartext WPA2 PSK
Linux:
`cat /etc/NetworkManager/system-connections/<WPA2-NETOWRK>`
macOS:
`security find-generic-password -ga "<WPA2-NETOWRK>" | grep "password:"`
@joshschmelzle
joshschmelzle / tools-to-install.md
Last active December 21, 2020 18:32
Linux Notes and Cheatsheet

network engineer essentials

sudo apt install git tshark mtr lshw tmux vim ipcalc sipcalc tcpdump whois traceroute wget net-tools

these should be built in:

  • tracepath
  • ip
  • route
  • dhclient
@joshschmelzle
joshschmelzle / install-python3.8-on-wlanpi.md
Last active December 30, 2019 14:59
python3.8 on wlanpi

Steps to install Python 3.8 on wlanpi.

WLAN Pi build used in this writing (release 1.9.0-beta3b).

Host OS:

Linux wlanpi 4.19.66-sunxi64 #5.93.190815 SMP Thu Aug 15 23:19:53 CEST 2019 aarch64 GNU/Linux

Update before installing python

@joshschmelzle
joshschmelzle / .vimrc
Last active December 10, 2019 12:37
basic vimrc
" global yanking with the OS clipboard
set clipboard=unnamed
" make the arrow keys do something useful, resize the viewports accordingly.
nnoremap <Left> :vertical resize +2<CR>
nnoremap <Right> :vertical resize -2<CR>
nnoremap <Up> :resize -2<CR>
nnoremap <Down> :resize +2<CR>
syntax on " enable syntax highlighting