Tuesday, May 29, 2018
Linux-Shell Script to Move to specific folder using "cd" command
Shell scripts are run inside a subshell, and each subshell has its own concept of what the current directory is. The
cd
succeeds, but as soon as the subshell exits, you're back in the interactive shell and nothing ever changed there.To Resolve that we use bash command.
#!/bin/sh
#!/bin/bash
cd "/opt/azw/webapp/src/";
bash
Thursday, January 4, 2018
To pull specific directory with git
To pull specific folder from git repository or git repo
mkdir directoryName
cd directoryName
git init
git remote add origin -f <>
git config core.sparsecheckout true
echo / >> .git/info/sparse-checkout
git pull origin master
cd directoryName
git init
git config core.sparsecheckout true
git pull origin master
Monday, October 16, 2017
Friday, October 6, 2017
Connect to Microsoft SQL Server Using PHP
Connect to Microsoft SQL Server Using PHP
Below Code will connect to the Microsoft Sql Server using php script.
Labels:
apache 2.4,
apache windows 7,
Microsoft SQL Server,
php
Thursday, September 21, 2017
Authenticating with OAuth 2.0 For LinkedIn Api Access using PHP
Authenticating with OAuth 2.0 For LinkedIn Api Access using PHP
LinkedIn Oauth 2.0 PHP Access |
Follow these steps to enable your application to make
authenticated API calls to LinkedIn using OAuth 2.0:
Step 1: Configuring your LinkedIn application.
Create application in linkedin Developers Panel Link.
After Clicking on Create App. Fill the form information.
Once you save your configuration, your application will be assigned a unique "Client ID" and "Client Secret" value.
Step2: Using the below PHP code to get the LinkedIn access Token to access there apis
After Clicking on Create App. Fill the form information.
Once you save your configuration, your application will be assigned a unique "Client ID" and "Client Secret" value.
Step2: Using the below PHP code to get the LinkedIn access Token to access there apis
Friday, September 8, 2017
Reading Excel Spreadsheets with Python
Excel & Python |
Reading an Excel Spreadsheet
In this section, we will look at a function that demonstrates reads the Excel sheet data and convert that data into XML file.We Used the following libraries to do the above functionality
- Openpyxl : Openpyxl is a Python library for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files.
- xml.etree.ElementTree: To create the xml tree elements
- datetime: to conver the date time column values to specified format
Subscribe to:
Posts (Atom)