Skip to content

Instantly share code, notes, and snippets.

View panchr's full-sized avatar

Rushy R. Panchal panchr

View GitHub Profile
@panchr
panchr / Bootstrap.sh
Last active August 29, 2015 14:08
Bootstraps a LAMP or LEMP webserver
#!/bin/sh
# Rushy Panchal
# Bootstrap a new server, with either Apache or Nginx
# This is experimental and not production-ready
# I do not take any liability for any damage or problems caused by misuse
# This script is provided as-is, as detailed in the General Public License (GPL) version 3.0
# To use:
# upload to your server (through SFTP)
# chmod +x bootstrap.sh
@panchr
panchr / Webpage Color Spam
Last active August 29, 2015 14:07
Alternates through web page colors every 100ms
function colorSpam () {
var colors = ["red", "blue", "green", "orange", "purple", "yellow"];
function changeColor(i) {
i = i < colors.length ? i: 0;
document.body.style.backgroundColor = colors[i];
setInterval(function () {changeColor(i + 1)}, 100);
}
changeColor(1);