Skip to content

Instantly share code, notes, and snippets.

@mrphishxxx
mrphishxxx / server.md
Created August 6, 2016 22:28 — forked from tmcw/server.md
Boot up a quick development server

Booting Up A Development Server

Open a console. Terminal.app on Macs, your shell or whatever on PCs.

Python is easiest:

python -m SimpleHTTPServer 8000

Then go to http://localhost:8000/ in a web browser.

@mrphishxxx
mrphishxxx / curl.md
Created August 6, 2016 20:30 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@mrphishxxx
mrphishxxx / AWSLambdaSimpleSMS.js
Created July 10, 2016 15:43 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@mrphishxxx
mrphishxxx / gist:8dda7e6b8fe38a2faae6104349ee98e3
Created June 28, 2016 10:30 — forked from Gipetto/gist:1925295
Proxy configuration for OpenVBX & Twilio-PHP api library
<?php
// template for setting CURL proxy options for OpenVBX
// add the configuration lines below to the file
// `OpenVBX/libraries/OpenVBX.php` on line 375 with the
// config below and then enter the values for your Proxy
// proxy type
$_proxy_type = 'HTTP'; // proxy type
// The address of your proxy server
@mrphishxxx
mrphishxxx / ElasticSearch.sh
Created April 23, 2016 20:03 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@mrphishxxx
mrphishxxx / es.sh
Created April 21, 2016 19:12 — forked from Globegitter/es.sh
Easy install for elasticsearch on Ubuntu 14.04
cd ~
##If you want to install OpenJDK
#sudo apt-get update
#sudo apt-get install openjdk-8-jre-headless -y
###Or if you want to install Oracle JDK, which seems to have slightly better performance
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer