Skip to content

Instantly share code, notes, and snippets.

@brianehlert
brianehlert / Powershell_HTTP_Server.MD
Created August 6, 2018 14:34 — forked from jakobii/HTTPServer.ps1
A Basic Powershell Webserver

This is a super SIMPLE example of how to create a very basic powershell webserver

# Http Server
$http = [System.Net.HttpListener]::new() 

# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
@brianehlert
brianehlert / install-opencart.sh
Created February 28, 2018 16:24 — forked from aamnah/install-opencart.sh
Opencart Install Script
#!/bin/bash
# Author: Aamnah Akram
# URL: http://aamnah.com
# Email: hello@aamnah.com
# Description: Bash script to install Opencart
# Usage: You can use 'curl' to run this script directly from Github.
# curl -L https://gist.githubusercontent.com/aamnah/93cb63fc15e708649084/raw | bash
# COLORS
Cyan='\033[0;36m' # Cyan
@brianehlert
brianehlert / gist:1082f38565d62d6cb9508ad847549ed5
Created May 4, 2016 14:48
Gateblu-Forever on Raspian Jessie
Node and Node ARM have been updated.
Node 4 requires updated gcc binaries.
If on Wheezy follow the instructions at the node-arm project:
https://github.com/nathanjohnson320/node_arm
The instructions here assume the latest Raspian Jessie image (RaspberryPi.org/downloads)
To set Raspian to boot without a GUI desktop (and get a bit more performance):
sudo raspi-config
@brianehlert
brianehlert / gist:6b7fa7c86be098722d73f944e96b1bf9
Last active June 3, 2016 17:32
Gateblu-Forever on Ubuntu
1) Install Ubuntu Server
Instead of adding a 'pi' user in step 7 name your admin user 'pi' with a password of 'raspberry' during installation
The Service configuration of gateblu-forever assumes this is running on a RaspberryPi
1. Add openSSH server (makes it easier to remotely connect with puTTY and copy / paste)
2) Install LTS node and npm from nodejs.org and node legacy (check http://nodejs.org for latest LTS release numbers)
sudo apt-get update
sudo apt-get upgrade -y
sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
@brianehlert
brianehlert / Raspian Jessie Gateblu
Created October 21, 2015 15:02
Installing Gateblu Linux on RaspberryPi Jessie
Node and Node ARM have been updated.
Node 4 requires updated gcc binaries.
If on Wheezy follow the instructions at the node-arm project:
https://github.com/nathanjohnson320/node_arm
The instructions here assume the latest Raspian Jessie image (RaspberryPi.org/downloads)
To set Raspian to boot without a GUI desktop (and get a bit more performance):
sudo raspi-config
@brianehlert
brianehlert / Meshblu_ApplianceTest.ps1
Created March 30, 2015 15:39
Meshblu API walkthrough
# Invoke-RestMethod automatically converts the JSON output to something that is considered expected to PowerShell users, a PSCustomObject instead of a JSON string.
# Thus making the return easier to handle
### Setup / Get started
# check 'status' of Meshblu
Invoke-RestMethod -URI http://10.235.0.4:3000/status -ContentType "application/json" -Method Get
Invoke-RestMethod -URI http://10.235.0.14:3000/status -ContentType "application/json" -Method Get
# return your IP. If you send this to Octoblu you see the public IP of your LAN. If you internal to your LAN you see the IP of your computer.
Invoke-RestMethod -URI http://10.235.0.14:3000/ipaddress -ContentType "application/json" -Method Get