Skip to content

Instantly share code, notes, and snippets.

View prakash122's full-sized avatar

Prakash Kumar Chakka prakash122

View GitHub Profile
[
"NSE:NCC",
"NSE:SHALPAINTS"
]
@prakash122
prakash122 / nginx-cors.conf
Created July 5, 2017 12:12 — forked from algal/nginx-cors.conf
nginx configuration for CORS (Cross-Origin Resource Sharing), with an origin whitelist, and HTTP Basic Access authentication allowed
#
# 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
prakash122 / .zshrc
Created May 14, 2017 19:47
Shell shortcuts
# 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
@prakash122
prakash122 / designer.html
Created February 18, 2015 03:32
designer
<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">
@prakash122
prakash122 / udp_hole_punch_tester.py
Created November 17, 2011 05:12 — forked from somic/udp_hole_punch_tester.py
UDP Hole Punching test tool
#!/usr/bin/env python
#
# udp_hole_punch_tester.py - UDP Hole Punching test tool
#
# Usage: udp_hole_punch_tester.py 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.