Skip to content

Instantly share code, notes, and snippets.

View jasonniebauer's full-sized avatar
😄
Building awesome things

Jason Niebauer jasonniebauer

😄
Building awesome things
View GitHub Profile
@jasonniebauer
jasonniebauer / Remove-Key-from-Known-Hosts.md
Created September 17, 2020 14:18
Remove Key from Known Hosts

Execute the following to remove a specific host:

nano ~/.ssh/known_hosts

DietPi Give your Single-board computer some Lightweight justice. What you'll need:

4GB or greater Micro SD card.
Internet Access (Ethernet or Wifi, required to complete the DietPi setup).
Dedicated USB Drive is highly recommended (Allows DietPi-Software installations to utilize USB over SD).

Step 1 (Download DietPi Image): Download - dietpi.com

#! /usr/bin/env python
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
print(s.getsockname()[0])
s.close()

Edit Windows Host File

  1. Press the Windows key
  2. Type Notepad into the search field
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: C:\Windows\System32\Drivers\etc\hosts
  5. Make the necessary changes to the file.
  6. Select File > Save to save your changes.