Skip to content

Instantly share code, notes, and snippets.

🐌
༼ つ ◕_◕ ༽つ 📶

Josh Schmelzle joshschmelzle

🐌
༼ つ ◕_◕ ༽つ 📶
Block or report user

Report or block joshschmelzle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@joshschmelzle
joshschmelzle / .vimrc
Last active Feb 21, 2020
WLAN Pi Tricks
View .vimrc
" global yanking with the OS clipboard
set clipboard=unnamed
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
@joshschmelzle
joshschmelzle / remove-gamebar-powershell-win10.md
Last active Feb 18, 2020
Remove the Xbox Game Bar with Powershell on Windows 10
View remove-gamebar-powershell-win10.md

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that you might not have some of these options depending on the version of Windows 10 you're using.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this does not seem to be an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
  3. Right-click on the app and pick Uninstall. Answer Yes to the prompt, and wait for the process to finish.
View zerotier-basics.md

ZeroTier (ZT) is open source and free to use for most cases (commercial/proprietary use makes it not free).

It's a network virtualization platform that lets you connect to your devices with automatic end-to-end encryption. Think of it conceptually like a VPN, SDN, and SD-WAN all in one.

Getting Started

  1. Create and verify an account over at https://my.zerotier.com/

  2. Create a network https://my.zerotier.com/network

@joshschmelzle
joshschmelzle / list-ssh-sessions.md
Last active Feb 13, 2020
List all connected SSH sessions
View list-ssh-sessions.md

How to list all connected SSH sessions

I was curious how to view sessions on a Linux box I had at my desk. Similar to the session table on an Aruba controller (show loginsessions). Here are some ways you can list active SSH sessions; some commands return more output than others. This applies to most modern Linux boxes or say a WLAN Pi.

All examples below are using 2 MobaXterm user sessions from a Windows machine to a Linux 4.14.42-sunxi64 aarch64 (NanoPi NEO2).

w

wlanpi@wlanpi:~$ w
@joshschmelzle
joshschmelzle / remap-capslock-to-control-win10.md
Last active Feb 6, 2020
Remap Caps Lock to Control on Windows 10
View remap-capslock-to-control-win10.md

Create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

or use PowerShell (run as Admin)

@joshschmelzle
joshschmelzle / nanopi-m4v2-notes-and-cheatsheet.md
Last active Feb 4, 2020
nanopi-m4v2-notes-and-cheatsheet.md
View 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 / tools-to-install.md
Last active Jan 25, 2020
Linux Notes and Cheatsheet
View tools-to-install.md

network engineer essentials

sudo apt install git tshark lshw tmux vim ipcalc sipcalc tcpdump whois traceroute tracepath ip route dhclient wget

examples:

  • tmux is a terminal multiplexer. useful for resuming work later.
  • ipcalc -a 192.168.0.1/24
  • sipcalc -a 192.168.0.1/24
  • whois google.com
@joshschmelzle
joshschmelzle / tftp-server-installation.md
Last active Jan 19, 2020
running tftp server on ubuntu
View tftp-server-installation.md

Using tftpd-hpa - HPA's tftp server on Ubuntu 18.04.3 LTS to host a tftp server.

install tftp server

$ sudo apt install tftpd-hpa

configure tftp server

create new directory for tftp.

@joshschmelzle
joshschmelzle / fonts.md
Last active Jan 16, 2020
coding and terminal fonts to consider using
View fonts.md

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:

View 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:

You can’t perform that action at this time.