Skip to content

Instantly share code, notes, and snippets.

View leachim6's full-sized avatar

Mike Donaghy leachim6

View GitHub Profile
@leachim6
leachim6 / web-servers.md
Created February 26, 2023 09:04 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@leachim6
leachim6 / esp8266-basis.ino
Created April 9, 2019 13:34 — forked from mhelff/esp8266-basis.ino
Basic Arduino sketch for ESP8266 including WifiManager and OTA update
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <WiFiManager.h>
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFiManager wifiManager;
@leachim6
leachim6 / boxstarter.ps1
Last active December 19, 2017 17:21 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
# Customized by: Mike Donaghy
# Last Modified: 12/19/2017 9:04:01 AM
#
# Install boxstarter:
#Set Set-ExecutionPolicy RemoteSigned
#. { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
@leachim6
leachim6 / virt-install-centos
Created March 15, 2017 15:47 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/virt-install-centos **
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi