Skip to content

Instantly share code, notes, and snippets.

View hamiltonsw's full-sized avatar

Spencer Hamilton hamiltonsw

View GitHub Profile
@hamiltonsw
hamiltonsw / temp-beta-1.1.0.ino
Last active August 15, 2018 22:22
Testing firmware for ESP8266 (ESP-01) EEPROM storage/retrieval
#include "EEPROM.h"
uint address = 0;
struct {
char ssid[35] = "";
char pass[35] = "";
} data;
void setup() {

David's ENV setup script

MySQL

Download here => https://dev.mysql.com/downloads/file/?id=476953

Start it by opening System Preferences and selecting the MySQL icon at the bottom. Choose start & start on boot up

Nginx

Nginx is installed through brew

server {
listen 80;
server_name kizanpro.local;
index index.php index.html index.htm index.nginx-debian.html;
root /git/kizan-pro;
location / {
try_files $uri $uri/ /index.php;
}
@hamiltonsw
hamiltonsw / README.md
Last active June 8, 2017 17:57
PHP Git Webhooks

Webhooks to update files from Git Events (PHP)

Introduction

These files are additions to an OpenCart project I maintain, feel free to use them as you'd please!

Installation

Take a look at how OpenCart is set up and replace the system functions with your appropriate functions ($this->db, $this->request, etc.)

@hamiltonsw
hamiltonsw / README.md
Last active October 22, 2019 09:26
WordPress VSlider Plugin Fix -- v4.1.2 [UNOFFICIAL PATCH]

Unofficial VSlider v4.1.2 Patch

Introduction

This is an unofficial update to the WordPress VSlider Plugin. Development has been stagnant for a few years now and I needed to fix this on one of my sites. You are welcome to use this!

WARNING

Make sure your VSlider version matches before rewriting your file! No support is provided for this Free Unofficial Patch.

Installation

Copy the contents of vslider.php to /wp-content/plugins/vslider/vslider.php on your site. Make sure the plugin is activated and updated, otherwise you risk ruining your plugin files and will have to reinstall VSlider.

[
{
"name": "Half QWERTY",
"author": "Spencer Hamilton",
"background": {
"name": "Carbon fibre 1",
"style": "background-image: url('/bg/carbonfibre/carbon_texture1879.png');"
},
"switchMount": "cherry",
"switchBrand": "gateron",