Skip to content

Instantly share code, notes, and snippets.

Sangeeth Saravanaraj sangeeths

  • Bangalore - India
Block or report user

Report or block sangeeths

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sangeeths / py.test
Created May 10, 2014
Most frequently used py.test commands
View py.test
py.test -s -v --cov-report html --cov path/to/source/dir path/to/
py.test --cov-report html
--cov-report xml
--cov-report annotate
--cov-report term
--cov path/to/soruce path/to/unittest
sangeeths / github-to-bitbucket
Created Mar 10, 2014
Forking a Github repo to Bitbucket
View github-to-bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v
sangeeths / git-commands
Last active May 10, 2018
Some of the most frequently required Git commands
View git-commands
List of pending commits to be pushed from local to remote repo
git log origin/master..HEAD
git diff origin/master..HEAD
git diff origin/feature_branch..HEAD
Branch commands:
git branch list all the branches in the local machine
git branch -a list all the branches (local + remote)
sangeeths / tar-FUC
Created Jan 25, 2014
Frequently Used Commands - tar
View tar-FUC
Compose a tar file:
tar -cvf file.tar dir1/
tar -zcvf file.tar.gz dir1/
tar -jcvf file.tar.bz2 dir1/
Extract a tar file:
tar -xvf file.tar
sangeeths / openssl-commands
Created Jan 3, 2014
To get the server certificates that are used during the HTTPS connection initiation, run the following commands
View openssl-commands
OpenSSL commands
To get the server certificates that are used during the HTTPS connection initiation, run the following commands:
openssl s_client -showcerts -connect <hostname>:<port> < /dev/null > <outfile.txt>
openssl x509 -inform PEM -in <outfile.txt> -text -out <certificatefile.txt>
openssl s_client -showcerts -connect < /dev/null > outfile
openssl x509 -inform PEM -in outfile -text -out cdata
sangeeths / git-submodule
Last active Jan 2, 2016
Git commands to create and update submodules
View git-submodule
Creating a submodule:
git clone <parent-repo-url>
cd path/to/parent/repo
git submodule add <repo-url> path/to/submodule
Initializing a submodule:
git submodule init
git submodule update
Updating a submodule:
You can’t perform that action at this time.