Skip to content

Instantly share code, notes, and snippets.

View ziyadparekh's full-sized avatar

Ziyad Parekh ziyadparekh

View GitHub Profile
@mikermcneil
mikermcneil / using-raw-socket-io-in-sails.js
Created September 17, 2013 18:32
Using raw socket.io functionality in a Sails.js controller
module.exports = {
/**
*
* Using raw socket.io functionality from a Sails.js controller
*
*/
index: function (req,res) {
@denji
denji / http-benchmark.md
Last active May 9, 2024 13:04
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active May 1, 2024 23:17
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@soheilhy
soheilhy / nginxproxy.md
Last active May 8, 2024 09:56
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@staltz
staltz / introrx.md
Last active May 10, 2024 12:08
The introduction to Reactive Programming you've been missing

A pseudonymous trust system for a decentralized anonymous marketplace

Dionysis Zindros, National Technical University of Athens dionyziz@gmail.com

Keywords

pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar

Abstract

package main
import (
"fmt"
"log"
"net/http"
"html/template"
"github.com/gorilla/sessions"
@ronantreacy
ronantreacy / create_exo_browser.sh
Created August 25, 2014 09:50
A script for building the breach exo browser
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH":`pwd`/depot_tools
export GYP_GENERATORS='ninja'
if [ `uname` == 'Darwin' ]; then
export GYP_DEFINES=mac_sdk=10.8
fi
echo 'p' | svn ls https://src.chromium.org/chrome
echo 'p' | svn ls https://sctp-refimpl.googlecode.com/svn/trunk
echo 'p' | svn ls https://cld2.googlecode.com/svn/trunk
mkdir chromium && cd chromium
@benmorrow
benmorrow / GradientGenerator.swift
Last active November 18, 2016 18:17
Create a gradient to use as the background. Comes preloaded with many different colors. For any view, this will allow you to insert a sublayer with a multi-color background. Using Swift, iOS 8, and Xcode 6.
//
// GradientGenerator.swift
// WatchSimulator
//
// Created by Ben Morrow on 10/12/14.
//
// The most up-to-date version of this file is hosted at https://gist.github.com/benmorrow/aa3484dd3128875afbc0
//
import UIKit
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script>