This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |