Skip to content

Instantly share code, notes, and snippets.

View stemsmit's full-sized avatar
👋

Stephen Smith stemsmit

👋
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>arr.forEach vs for</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@stemsmit
stemsmit / ha-uninstall.sh
Last active October 9, 2025 16:44
Uninstaller for Home Assistant Supervised on Debian 10
#!/usr/bin/env bash
sudo systemctl disable apparmor
sudo systemctl disable hassio-apparmor.service
sudo systemctl disable hassio-supervisor.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
sudo rm /etc/systemd/system/hassio-supervisor.service
sudo rm /etc/systemd/system/hassio-apparmor.service
@stemsmit
stemsmit / 0_reuse_code.js
Created May 9, 2017 20:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console