Skip to content

Instantly share code, notes, and snippets.

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

jsz joshschmelzle

༼ つ ◕_◕ ༽つ ø
View GitHub Profile
@joshschmelzle
joshschmelzle / fonts.md
Last active January 16, 2020 02:05
coding and terminal fonts to consider using

A few fonts for coding or your terminal to consider using:

Fonts:

  • JetBrains Mono - A typeface for developers
  • Hack - A typeface designed for source code
  • FiraCoda - Monospaced font with programming ligatures

Resources:

@joshschmelzle
joshschmelzle / keybase.md
Created January 14, 2020 15:53
keybase.md

Keybase proof

I hereby claim:

  • I am joshschmelzle on github.
  • I am schmelzle (https://keybase.io/schmelzle) on keybase.
  • I have a public key ASBqdviB8Y4bLU8jeqMnEw_-kZmXcFg4DceO7iAzKScpXAo

To claim this, I am signing this object:

@joshschmelzle
joshschmelzle / tshark-802.11-macos-notes.md
Last active December 9, 2019 13:58
tshark'n 802.11 on macos notes and cheatsheet

Prep:

Create a symlink to the AirPort command in Terminal:

ln -s /System/Library/PrivateFrameworks/Apple80211.framework/
Versions/Current/Resources/airport /Usr/bin/airport

# test utility
airport -I
@joshschmelzle
joshschmelzle / tmux-notes-and-cheatsheet.md
Last active December 10, 2019 14:11
tmux notes and cheatsheet

tmux

it's a terminal multiplexer that allows access to multiple terminal sessions in a single window. so, you can split terminals into panes. you can move, resize, and switch between them.

it's also useful for detaching processes from the controlling terminal. so, a SSH session can remain active without actually being visible. i recommend using tmux if you're doing remote work via ssh.

tmux hotkeys to help with remote ssh dev

install tmux with sudo apt install tmux.

@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
@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 / 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 / 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 / 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 / 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