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 | |
# | |
# Bash hack to install Dropbox Daemon | |
# @author : Vignesh Rajagopalan | |
# | |
### | |
cat <<EOF | sed -e "s,%,$,g" >/etc/init.d/dropbox | |
### BEGIN INIT INFO | |
# Provides: dropbox |
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 | |
adduser deploy | |
#answer the relevant questions | |
#After creating the deploy user, add the following line below the root, to give sudo permission. | |
#deploy ALL=(ALL) ALL | |
visudo |
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
PermitRootLogin no | |
PubKeyAuthentication yes | |
PasswordAuthentication no |
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
PermitRootLogin no | |
PubKeyAuthentication yes | |
PasswordAuthentication no |
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 | |
wget -O /tmp/dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86 | |
mkdir -p /usr/local/deploy /etc/dropbox | |
sudo chmod 700 /etc/dropbox | |
tar xvzf /tmp/dropbox.tar.gz -C /usr/local/dropbox --strip 1 | |
rm /tmp/dropbox.tar.gz | |
#now run the following command and link your dropbox account | |
/usr/local/deploy/dropboxd |
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
<?php | |
include('pwi/pwi.php'); | |
$student = new PWI(array( | |
'regno' => 'xxxxxxxxx', | |
'pass' => 'ddmmyyyy', | |
)); | |
echo $student->getAttendance(); |
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
{"0":{"SUBCODE":" BCSCCS501R01","SUBNAME":" DESIGN AND ANALYSIS OF ALGORITHMS","TOTAL":" 2","PRESENT":" 0","ABSENT":" 2","%":" 0"},"1":{"SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","TOTAL":" 6","PRESENT":" 0","ABSENT":" 6","%":" 0"},"2":{"SUBCODE":" BCSDCS502","SUBNAME":" PERVASIVE COMPUTING","TOTAL":" 3","PRESENT":" 2","ABSENT":" 1","%":" 67"},"%":" 18.18 "} |
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
<?php | |
include('pwi/pwi.php'); | |
$student = new PWI(array( | |
'regno' => 'xxxxxxxxx', | |
'pass' => 'ddmmyyyy', | |
)); | |
echo $student->getAttendanceDetails(); |
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
[{"DATE":" 29-Jun-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" VI"},{"DATE":" 30-Jun-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" II"},{"DATE":" 30-Jun-2011","SUBCODE":" BCSCCS501R01","SUBNAME":" DESIGN AND ANALYSIS OF ALGORITHMS","HOUR":" VI"},{"DATE":" 01-Jul-2011","SUBCODE":" BCSCCS501R01","SUBNAME":" DESIGN AND ANALYSIS OF ALGORITHMS","HOUR":" II"},{"DATE":" 01-Jul-2011","SUBCODE":" BCSDCS502","SUBNAME":" PERVASIVE COMPUTING","HOUR":" III"},{"DATE":" 01-Jul-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" VI"},{"DATE":" 05-Jul-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" VIII"},{"DATE":" 06-Jul-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" VI"},{"DATE":" 07-Jul-2011","SUBCODE":" BCSCCS503R01","SUBNAME":" DATABASE MANAGEMENT SYSTEMS","HOUR":" II"}] |
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
<?php | |
/** | |
* A Naive HN Crawler to get news about Javascript | |
* @author Vignesh Rajagopalan <vignesh@campuspry.com> | |
* | |
* Motivated by Vijay Anand (@vijayanands) | |
*/ | |
require('phpQuery.php'); |
OlderNewer