Skip to content

Instantly share code, notes, and snippets.

View joshschmelzle's full-sized avatar
༼ つ ◕_◕ ༽つ ø

jsz joshschmelzle

༼ つ ◕_◕ ༽つ ø
View GitHub Profile
@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 / 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 johndoe@example.com
git config --global core.editor vim
git config --list
git config user.name
git config user.email
git help config
@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 / 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 / exerts-from-a-sacred-love-story.md
Last active December 24, 2019 19:51
python-notes-and-cheatsheet.md

https://youtu.be/skYBOXE02OQ

The Zen of Python: >>> import this

>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
@joshschmelzle
joshschmelzle / wireshark-notes-and-cheatsheet.md
Last active February 28, 2020 19:02
wireshark-notes-and-cheatsheet.md

Display Filters

Wildcards

wlan.vs.aruba.ap_name ~ "name."
wlan.vs.aruba.ap_name matches "name."

Multicast

@joshschmelzle
joshschmelzle / windows-notes-and-cheatsheet.md
Created October 18, 2019 13:18
windows-notes-and-cheatsheet.md

Networking

802.11

netsh wlan show interfaces
netsh wlan show wirelesscapabilities
netsh wlan show networks
netsh wlan show drivers
netsh wlan show interface
@joshschmelzle
joshschmelzle / linux-notes-and-cheatsheet.md
Last active November 18, 2022 01:42
linux notes and cheatsheet
@joshschmelzle
joshschmelzle / jemail.py
Last active October 18, 2019 03:46
python send electronic mail example
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
jemail.py
~~~~~~~~~
a script for learning about sending email with Python
"""
@joshschmelzle
joshschmelzle / graphql-requests-example.py
Created October 7, 2019 00:17
Example GraphQL client query using Python and Requests
import requests
url = "https://GRAPHQL-ENDPOINT/graphql"
headers = {"api-token": "TOKEN HERE"}
def run_query(url, query, headers) -> dict:
""" Run query and return result. """
request = requests.post(url=url, json={"query": query}, headers=headers)
if request.status_code == 200: