Skip to content

Instantly share code, notes, and snippets.

View SudeepParajuli's full-sized avatar

Sudeep Parajuli SudeepParajuli

  • LogPoint
  • Jwalakhel
View GitHub Profile
@SudeepParajuli
SudeepParajuli / 0_reuse_code.js
Last active September 11, 2015 09:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@SudeepParajuli
SudeepParajuli / kannel.ini
Last active April 20, 2016 06:06
Configuration file for kannel
group = core
admin-port = 13000
admin-password = test
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = internal
log-level = 0
@SudeepParajuli
SudeepParajuli / lvm.md
Last active July 25, 2018 04:41
LVM and creating a snapshot

#LVM

  1. There are multiple physical disk in your system . use lsblk command to see it . Eg : /sda /sdb
  2. Each of the physical disk has partition like /sda1 /sda2
  3. use any of the physical disk partition to create a phyical volume . we can use only one disk or more . To create a physical disk use : pvcreate /dev/sdb 4.put these physical volume in the volume group by " vgcreate <vg-name> <physical-disk> vgcreate test /dev/sda1 /dev/sda2 5.we can use pvdisplay and vgdisplay to see information about physical and volume group . similarly we can find information regarding volume group via vgscan.
  4. we will create a new logical volume from volume group .
@SudeepParajuli
SudeepParajuli / git_rename_branch.md
Created October 11, 2017 03:57
renaming a git branch locally and remotely
git branch -m old_branch new_branch         # Rename branch locally    
git push origin :old_branch                 # Delete the old branch    
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote
  1. check whether the script has permission or not
ls -la /usr/local/bin/stop_lifecycle
ls -la /usr/local/bin/start_lifecycle

if it has executable permission do nothing else please execute :

JOB_NAME="master"
score_status=`cat $JENKINS_HOME/jobs/$JOB_NAME/builds/lastSuccessfulBuild/log | grep Score: | sed -n 2p | awk {'print $2'}`
echo "****"
echo $score_status
if [ $score_status -gt 4 ]
then
@SudeepParajuli
SudeepParajuli / Python3 Virtualenv Setup.md
Created May 5, 2020 03:53 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3