This file contains hidden or 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
echo '#!/bin/sh | |
GIT_WORK_TREE=/var/www/yourwebsite.com git checkout -f' >> hooks/post-receive | |
chmod +x hooks/post-receive |
This file contains hidden or 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
mkdir yourwebsite.git | |
cd yourwebsite.git | |
git init --bare |
This file contains hidden or 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 <[email protected]> | |
* | |
* Motivated by Vijay Anand (@vijayanands) | |
*/ | |
require('phpQuery.php'); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |