Skip to content

Instantly share code, notes, and snippets.

View stocks.json
prakash122 / nginx-cors.conf
Created Jul 5, 2017 — forked from algal/nginx-cors.conf
nginx configuration for CORS (Cross-Origin Resource Sharing), with an origin whitelist, and HTTP Basic Access authentication allowed
View nginx-cors.conf
# A CORS (Cross-Origin Resouce Sharing) config for nginx
# == Purpose
# This nginx configuration enables CORS requests in the following way:
# - enables CORS just for origins on a whitelist specified by a regular expression
# - CORS preflight request (OPTIONS) are responded immediately
# - Access-Control-Allow-Credentials=true for GET and POST requests
prakash122 / .zshrc
Created May 14, 2017
Shell shortcuts
View .zshrc
# GIT Commands
alias gpl="git pull"
alias gsh="git stash"
alias gsp="git stash pop"
alias gci="git commit"
alias gd="git diff"
alias gpu="git push"
#NPM Commands
View designer.html
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
#!/usr/bin/env python
# - UDP Hole Punching test tool
# Usage: remote_host remote_port
# Run this script simultaneously on 2 hosts to test if they can punch
# a UDP hole to each other.
# * remote_port should be identical on 2 hosts.