Skip to content

Instantly share code, notes, and snippets.

View prashantksharma's full-sized avatar
👨‍💻
Learning. Building.

Prashant K. Sharma prashantksharma

👨‍💻
Learning. Building.
View GitHub Profile
@prashantksharma
prashantksharma / Makefile
Created November 21, 2017 19:14 — forked from nonsleepr/Makefile
Makefile to download Kaggle's datasets
# Requires presence of credentials.txt file containing login/password in the following format:
# UserName=my_username&Password=my_password
COMPETITION=diabetic-retinopathy-detection
all: download_files
session.cookie: credentials.txt
curl -o /dev/null -c session.cookie https://www.kaggle.com/account/login
curl -o /dev/null -c session.cookie -b session.cookie -L -d @credentials.txt https://www.kaggle.com/account/login
@prashantksharma
prashantksharma / sources.list
Created August 24, 2018 21:18
sources.list for Ubuntu 14.04 on IIT B network
######### Warning: Instead of maverick, use the name of your distribution in following lines
deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty main restricted
deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty main restricted
deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty-updates main restricted
deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty-updates main restricted
deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty universe
deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ trusty universe
@prashantksharma
prashantksharma / php-to-html.sh
Last active October 11, 2018 18:54
Bash script to change all the php files with .html extension
#!/bin/bash
# Usage: bash php-to-html.sh /path/to/folder
# If you get permission denied error do:
# sudo bash php-to-html.sh /path/to/folder
for f in `find $1 -name '*.php'`
do
#echo $f
previous=$f