Skip to content

Instantly share code, notes, and snippets.

View mandyedi's full-sized avatar
🙂

Eduard Mandy mandyedi

🙂
View GitHub Profile

Raspberry Pi Cheatsheet

Wifi Setup

  1. After the OS image is installed on the SD card, open it.
  2. Create an empty file named ssh
  3. Create a file named wpa_supplicant.conf with the following content.
country=AU
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
import sys
import os
# todo: add main entry
# todo: check arg length
# todo: dd readme comment
'''
Pattern
import subprocess
def runcmd(cmd, verbose = False, *args, **kwargs):
process = subprocess.Popen(
cmd,
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
text = True,
shell = True