Skip to content

Instantly share code, notes, and snippets.

Avatar
:atom:

Alec Armbruster alectrocute

:atom:
  • SoFriendly
  • Milky Way Galaxy
View GitHub Profile
View for_let_dark-theme-config.html
<!-- add to header -->
<link rel="stylesheet" href="https://bgrins.github.io/spectrum/spectrum.css" />
<style>
.sp-replacer {
margin: 0;
overflow: hidden;
cursor: pointer;
padding: 4px;
display: inline-block;
background: #1b1b1b !important;
View NGINX for pixel serving & host detection springboard
Example index.php file:
<?php
//if ($_SERVER['REMOTE_HOST'] != "_") {
//echo $_SERVER['SERVER_NAME'] . " blocked.";
// } else {
//echo "hi.";
//}
echo $_SERVER['HTTP_HOST'];
?>
@alectrocute
alectrocute / NGINXNodejsLinode.md
Last active Jan 17, 2018
Quick n' easy NGINX & Node.js VPS setup!
View NGINXNodejsLinode.md

Quick n' easy NGINX & Node.js VPS setup!

N|SolidN|Solid N|Solid

Here's the quickest and easiest guide to setting up a little test enviorment. This guide likely applies to any VPS provider or VPS, not just Linode... it's just what I prefer to use. Assuming you know the basics of Linode's VPS system and SSH commands, let's get started!

Configure your Linode

  • Install your favorite flavor of Linux. I prefer Ubuntu.