Use Ctrl+G
to navigate to a line in the editor.
Use Ctrl+F12
to navigate the code base.
git commit
git commit --amend
use this to amend the last commit.
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
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
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
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.
Inspired by https://m0chan.github.io/2018/07/31/Linux-Notes-And-Cheatsheet.html. Plan is to add more to this.
ls -1 /sys/class/net/ | grep -v lo | xargs -n1 -I{} bash -c 'echo -n {} :" " ; basename `readlink -f /sys/class/net/{}/device/driver`'
then
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
jemail.py | |
~~~~~~~~~ | |
a script for learning about sending email with Python | |
""" |
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: |