Skip to content

Instantly share code, notes, and snippets.

View blackdesert575's full-sized avatar
💭
I may be slow to respond.

blackdesert blackdesert575

💭
I may be slow to respond.
View GitHub Profile
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
// use onboard LED for convenience
#define LED (2)
// maximum received message length
#define MAX_MSG_LEN (128)
const char *ssid = "";
const char *password = "";
const char *mqttServer = "broker.hivemq.com";
@skyzyx
skyzyx / homebrew-gnubin.md
Last active February 10, 2026 21:44
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@yufengwng
yufengwng / arch_cheatsheet.txt
Last active March 7, 2026 18:50
Arch Linux Commands Cheatsheet
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
@JosefJezek
JosefJezek / how-to-use-pelican.md
Last active August 24, 2025 22:27
How to use Pelican on GitHub Pages