Skip to content

Instantly share code, notes, and snippets.

View sandeep540's full-sized avatar
🏠
Working from home

Sandeep Kongathi sandeep540

🏠
Working from home
View GitHub Profile
@tranminhan
tranminhan / ExcelReading.java
Created May 25, 2011 15:43 — forked from Munawwar/ExcelReading.java
Java - Apache POI - Convert XLS/XLSX to CSV
/*
* Dependencies: Apache POI Library from http://poi.apache.org/
*/
package poi_excels;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
@madis
madis / gist:4650014
Created January 27, 2013 19:40
Testing CORS OPTIONS request with curl
curl \
--verbose \
--request OPTIONS \
http://localhost:3001/api/configuration/visitor \
--header 'Origin: http://localhost:9292' \
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
--header 'Access-Control-Request-Method: GET'
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE
@sandeep540
sandeep540 / rdiff.ps1
Created November 26, 2015 05:40 — forked from cchamberlain/rdiff.ps1
Recursively diffs 2 directories (files and contents) using MD5 hashes - Includes validation for paths and optional summary export. Requires PowerShell 3.0 or later.
#########################################################################
### USAGE: rdiff path/to/left,path/to/right [-s path/to/summary/dir] ###
### ADD LOCATION OF THIS SCRIPT TO PATH ###
#########################################################################
[CmdletBinding()]
param (
[parameter(HelpMessage="Stores the execution working directory.")]
[string]$ExecutionDirectory=$PWD,
[parameter(Position=0,HelpMessage="Compare two directories recursively for differences.")]
@turtlemonvh
turtlemonvh / README.md
Created August 8, 2016 18:27
Example vagrant file

Example vagrantfile

With ssh config adding, data directory mounted, provision script setup. 2 CPUs and 4 GB of RAM.

Create a setup bash script at provision/setup.sh and it will be run.

@MCheli
MCheli / gist:d0e90e96b8afccfa55613f2e6b6274c7
Last active September 25, 2017 06:13 — forked from madis/gist:4650014
Testing CORS OPTIONS request with curl
curl \
--verbose \
--request OPTIONS \
https://academic-dev1.cloud.thingworx.com/Thingworx/Things/testingCORS/Properties/test \
--header 'Origin: http://localhost:3000' \
--header 'appKey: 29506e99-bca6-4522-b60e-55bd891716f7' \
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
--header 'Access-Control-Request-Method: GET'