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 | |
/** | |
* @author : Meraj Ahmad Siddiqui <[email protected]> | |
* @package: Ved Parser | |
* @description : This parser parse the ved parameter of the url form google to know its type | |
*/ | |
function decodeVedParameter($vedParameter) { | |
$knownVedParams = [ |
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
Building Repository | |
1. Login to github account | |
2. Create a Repository of your choice | |
3. git clone your repository on your local machine | |
Setting up CircleCI | |
1. ad .circleci folder in root | |
2. ad config.yaml in .circleci folder |
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
#Installing Sublime text | |
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
sudo apt-get install sublime-text | |
#Installing git | |
sudo apt-get install git |
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
To Enter into mongo shell type in terminal | |
mongo | |
To create a new database just type | |
use Database_name | |
To see current database | |
db | |
To list all databses |
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
sudo su | |
#uninstalling previous data.. | |
apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common php5-mysql | |
apt-get purge mysql-client-core-5.5 mysql-server-core-5.5 | |
#installing all modules | |
apt-get update && apt-get upgrade |
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
connect to terminal | |
echo "hostname" > /etc/hostname | |
hostname -F /etc/hostname | |
nano /etc/hosts | |
ip hostname | |
--set ip there | |
timezone | |
dpkg-reconfigure tzdata |
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
Download NodeJs Source Code | |
wget https://nodejs.org/dist/v4.4.2/node-v4.4.2.tar.gz | |
Extract Tar file | |
tar -xvf node-v4.4.2.tar.gz | |
Move to Extracted Folder to install | |
cd node-v4.4.2/ | |
Addons Before Installation needed | |
make | |
sudo apt-get install make |
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
#for Help use this link https://gist.github.com/Hemant-Mann/2d35e4b6fb280b8910cd | |
#! /bin/bash | |
#This is the Program to backup your server code by ssh method to bitbucket | |
#All you need to do is go to bitbucket account create a repository and copy the pucblic ssh key to the repository access | |
#Copy the repositry name here we will create a backup automatically | |
mysql -u root -pabcroot -e "SELECT * FROM admin_test.Backup">backup.csv |
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
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-name=windows --domains {domain-name} --no-parent http://domain-name/ | |
in case the above code gives 403 error try this | |
wget --limit-rate=500k --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla http://www.xyz.com/abc/ |
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
Extracting diffrent tar files | |
tar xzf file.tar.gz | |
tar xjf file.tar.bz2 | |
tar xvf file.tar -C newfile | |
After that just to make sure see the folder name by | |
ls -la | |
then install by | |
sudo apt-get install extractedfilename |
NewerOlder