Skip to content

Instantly share code, notes, and snippets.

View manimike00's full-sized avatar
:octocat:
spotified

mani manimike00

:octocat:
spotified
View GitHub Profile
pipeline {
agent any
stages {
stage('Build') {
steps {
script {
if (env.BRANCH_NAME == 'test') {
sshPublisher(
publishers: [
sshPublisherDesc(
@manimike00
manimike00 / sftp
Last active April 25, 2020 06:11
SFTP setup
To Create a SFTP server for user to login and access particular folder
Steps 1: Create an additional folder and assign root access alone
# mkdir -p /data
# chmod 701 /data
Step 2: Create a group for the SFTP user's
@manimike00
manimike00 / uptimeEC2instancesAws.py
Last active June 28, 2019 06:11
Overall Uptime Time of EC2 instances in Running State
#### Requirements
#### AWSCLI
#### Must execute aws configure command before Running the Script
import boto3
import datetime
import itertools
client = boto3.client("ec2")
@manimike00
manimike00 / bb2gh.sh
Last active June 27, 2019 08:18
Script for MIgrating Repo From Bitbucket to GitHub
### Step 1: Set the RSA Public Key in Both SCM (BitBucket and Github)
### Step 2: Ensure StrictHostKeyChecking no in /etc/ssh/ssh_config
### Step 3: Pass repo names as Parameter while executing the Script
### For Example: bash test.sh reponame
### Step 4: Make Sure Ensure You have same repo name in both SCM
for i in "$@"
do
git clone git@bitbucket.org:username/${i}.git
cd bbgg