Skip to content

Instantly share code, notes, and snippets.

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

jsz joshschmelzle

༼ つ ◕_◕ ༽つ ø
View GitHub Profile
@joshschmelzle
joshschmelzle / SNDA65.md
Last active February 18, 2017 01:57
Instructions for fixing the second hands on a SNDA65

If the SNDA65 stop watch hands are not in the "0" (12 o'clock) position, follow the procedure below to set them to the 12 o'clock position.

  1. Pull the crown to second position
  2. Press button "A" for 2 seconds.
  3. Press button "B" to Adjust the minute hand to "0" position
  4. Press button "A" for 2 seconds then press button "B" to adjust secound hand to "0" position
  5. Press crown into normal position.
@joshschmelzle
joshschmelzle / remap-capslock-to-control-win10.md
Last active April 26, 2024 11:53
Remap Caps Lock to Control on Windows 10

Ways to remap caps lock to control on Windows 10

These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).

Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.

Approach 1. Manually through regedit

Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.

@joshschmelzle
joshschmelzle / remove-gamebar-powershell-win10.md
Last active April 3, 2024 14:09
How to Remove the Xbox Game Bar with Powershell on Windows 10

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 some of these first options are probably not be available unless you are running an older version of Windows 10.

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

(this is no longer 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.
@joshschmelzle
joshschmelzle / FINDCUSTOMVALUE.js
Created June 8, 2017 00:36
Google Sheets script to return the word at a desired position in a string split by a space.
function FINDCUSTOMVALUE(inpt, pos) {
var array = inpt.split(" ");
return array[pos];
}
@joshschmelzle
joshschmelzle / nginx.conf
Created June 8, 2017 00:44 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
Sub PasteValues() ' ctrl+b
On Error Resume Next
Selection.PasteSpecial xlPasteValues
End Sub
@joshschmelzle
joshschmelzle / show-hidden-files-mac-OS-finder.md
Last active July 9, 2017 01:11
Show hidden files in Mac OS Finder

Open Terminal (found in Finder > Applications > Utilities).

In Terminal, run the following: defaults write com.apple.finder AppleShowAllFiles YES

Hold the Option/alt key, then right click on the Finder icon in the dock and click Relaunch.

@joshschmelzle
joshschmelzle / windows-network-troubleshooting-tools.md
Last active July 10, 2022 10:42
Windows based network troubleshooting tools.

Throughput Testers

When testing wireless (802.11) throughput, remember that you're not testing data rate. Data rate is the rate at which bits can be sent across the wireless medium, and is entirely dependent on signal quality and the modulation and coding scheme (MCS) used.

Higher data rates use more sophisticated modulation and coding schemes and require better RF/signal conditions than lower data rates. Data rate is a major factor in determining network throughput for a user, but it is not the only factor. The contention for the wireless medium must also be considered.

To repeat, throughput is not a simple factor of data rate. On a WLAN, useful throughput is always less than the data rate because of management traffic overhead.

  • iPerf3 - this is a client/server throughput tester. typically the default behavior of iperf is to test the throughput from the client to the server. So, if you're testing a wireless client, to test the downlink, the wireless cli
@joshschmelzle
joshschmelzle / git-ssh-client.md
Created November 18, 2017 01:50
SSH client from Git rather than Putty or Cygwin

Some popular SSH clients on Windows include Cygwin and Putty. But, there is another option. One that has a more integrated SSH experience. Both Cygwin and Putty run in separate console experiences. The goal here is to be able to type ssh user@webserver.domain.com in whatever console I want and for it to work.

If you have git for windows installed, you already have the software to do this. The bundle has several Linux familiar tools. Many probably use these in the git bash shell.

But, you don't need to run the git bash shell on windows to access SSH. You just need to make a small modification to your path.

If you know your location, just add it to your path:

@joshschmelzle
joshschmelzle / oui3.py
Last active October 16, 2023 00:31 — forked from flagranterror/oui3.py
Handy OUI lookup script for Python 3+. Tested on Windows 10.
#!/usr/bin/python
# Who owns the OUI? IEEE knows.
#
# Auto-refreshes once a month.
# Run with -u to force update.
from urllib.request import urlopen
from getpass import getuser
import codecs