Skip to content

Instantly share code, notes, and snippets.

View sanis's full-sized avatar
🔥

Justinas Bolys sanis

🔥
View GitHub Profile
@jacobpretorius
jacobpretorius / restart-wifi.md
Created April 18, 2021 11:22
Raspberry Pi OS (2021) Automatically reconnect to wifi when connection drops

Raspberry Pi OS (2021) Automatically reconnect to wifi when connection drops

I've been having a few wifi drops and then the pi doesn't reconnect until I reboot it manually. This script solves that.

First, add a new sudo cron

sudo crontab -e

Then adapt and paste the following, change the IP to that of your router or something you expect to be always up

@ircmaxell
ircmaxell / equality.php
Last active April 19, 2019 13:52
Unicode Set Functions
<?php
const ✓ = true;
const ✕ = false;
function ≠($left, $right) {
return $left != $right;
}
function ≅($left, $right) {