Skip to content

Instantly share code, notes, and snippets.

View barzik's full-sized avatar

Ran Bar-Zik barzik

View GitHub Profile
@barzik
barzik / RBZ-install-programs.sh
Last active May 26, 2023 08:55
My favorite mac programs
#!/bin/bash
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Reload Oh My Zsh
exec zsh
# Function to check if a command is installed
check_command_installed() {
@barzik
barzik / main.py
Created August 19, 2023 20:30
MQ-135 and ESP32 web server
import network
import socket
import machine
import ujson
import utime
SSID = 'NAME'
PASSWORD = 'PASSWORD'
def connect_to_wifi(ssid, password):