Skip to content

Instantly share code, notes, and snippets.

💭
Founder Fistreet India

Rahul Chhangani rahulchhangani

💭
Founder Fistreet India
Block or report user

Report or block rahulchhangani

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rahulchhangani
rahulchhangani / jdk_download.sh
Created Feb 20, 2017 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
View jdk_download.sh
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@rahulchhangani
rahulchhangani / README.md
Created Oct 21, 2016 — forked from hugolpz/README.md
Topography via D3js image processing
View README.md

Proof of concept of grayscale image recolored directly via D3js color scale. Wikimaps colors used.

Source: The source image is a global heightmap from the Shuttle Radar Topography Mission, released as part of NASA’s Blue Marble collection at 8km resolution. The topography data is stored in a simple 130KB black&white, 8-bit PNG. In it, darker values represent lower elevations (sea floor), lighter values represent higher elevations (mountains).

Colors are read out of the image using the Canvas API.

Data properties:

@rahulchhangani
rahulchhangani / MY_Security.php
Created Oct 2, 2016 — forked from CMCDragonkai/MY_Security.php
PHP: Codeigniter CSRF functionality does not support putting the CSRF token in the HTTP headers for the purposes of the double submit cookie method. It also only runs the CSRF check on POST and not on PUT or DELETE. This drop in MY_Security.php makes sure CSRF runs on POST, PUT or DELETE and checks the HTTP headers for X-XSRF-TOKEN recommended b…
View MY_Security.php
<?php
class MY_Security extends CI_Security{
//overriding the normal csrf_verify, this gets automatically called in the Input library's constructor
//verifying on POST and PUT and DELETE
public function csrf_verify(){
$request_method = strtoupper($_SERVER['REQUEST_METHOD']);
@rahulchhangani
rahulchhangani / html_form
Created Sep 9, 2016 — forked from zvineyard/html_form
PHP: Upload and Rename File
View html_form
<form action="" enctype="multipart/form-data" method="post">
<input id="file" name="file" type="file" />
<input id="Submit" name="submit" type="submit" value="Submit" />
</form>
@rahulchhangani
rahulchhangani / eclipse-install.md
Created Sep 7, 2016 — forked from tuxdna/eclipse-install.md
Install Eclipse on Fedora 23
View eclipse-install.md
sudo dnf install -y eclipse-{platform,pydev,cdt-sdk,egit,webtools-javaee}
sudo dnf install -y eclipse-dltk-{ruby,mylyn,rse,tests,sdk,tcl,itcl,xotcl}
sudo dnf install -y eclipse-color-theme
    
You can’t perform that action at this time.