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
git reset --hard HEAD | |
git pull |
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
Please send an email to [email protected] from yours |
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 | |
echo "<h4 class='text-primary'>".$row['id'].". ".$row['ques']."</h4>"; | |
echo "<div class='radio'>"; | |
echo "<input type='radio' value='A' name='q".$row['id']."a'>".$row['opt1'].".<br>"; | |
echo "<input type='radio' value='B' name='q".$row['id']."a'>".$row['opt2'].".<br>"; | |
echo "<input type='radio' value='C' name='q".$row['id']."a'>".$row['opt3'].".<br>"; | |
echo "<input type='radio' value='D' name='q".$row['id']."a'>".$row['opt4'].".<br>"; | |
echo "</div>"; |
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
var i; | |
for (i = 27; i < 35; i++) { | |
var name = document.getElementsByClassName('wikitable sortable jquery-tablesorter')[0].getElementsByTagName("tbody")[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('a')[0].title; | |
console.log("<option>"+name+"</option>"); | |
} |
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
//Update linux distro | |
sudo apt-get update | |
//install lampp stack | |
follow this tutorial | |
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04 | |
//install phpmyadmin | |
follow this tutorial | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04 |
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
Task List: | |
1. Setup Laravel 4.2 | |
2. Create a Migration for User Table | |
3. Create a Seeder for User Table | |
4. Create a Register Page (Name, Email, Password) | |
5. Create a Login Page (Email and Password) |
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 | |
$file = 'http://45.55.242.143/cse_carnival_2015.tar.gz'; | |
$newfile = '/home/csecarnival/public_html/cse_carnival_2015.tar.gz'; | |
if ( copy($file, $newfile) ) { | |
echo "Copy success!"; | |
}else{ | |
echo "Copy failed."; | |
} |
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
// Contact Support Ticke | |
1. Login to Web Console | |
* Link3 will not work, need to use Qubee | |
2. Backup MySQL | |
mysqldump -u username -p database_to_backup > backup_name.sql | |
3. Move that database file to /var/www/html |
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 | |
$zip = new ZipArchive; | |
if ($zip->open('sedona.zip') === TRUE) { | |
$zip->extractTo('newcode'); | |
$zip->close(); | |
echo 'ok'; | |
} else { | |
echo 'failed'; | |
} | |
?> |
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
sudo apt-get install ibus-m17n m17n-db m17n-contrib ibus-gtk | |
sudo dpkg -L m17n-db|grep bn | |
sudo dpkg -L m17n-contrib|grep bn | |
If ibus is not installed on your system, install it by providing the following commands on terminal. | |
sudo apt-get install ibus |