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
#!/bin/sh | |
set -e | |
if [ $# -lt 2 ]; then | |
echo 1>&2 "Usage: $0 jobname <fromNum> [<toNum>]" | |
exit 1 | |
fi | |
JOBNAME=$1 | |
START=$2 |
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
Package documentation | |
By default, the CentOS containers are built using yum's nodocs option, which helps reduce the size of the image. If you install a package and discover files missing, please comment out the line tsflags=nodocs in /etc/yum.conf and reinstall your package. | |
Systemd integration | |
Currently, systemd in CentOS 7 has been removed and replaced with a fakesystemd package for dependency resolution. This is due to systemd requiring the CAP_SYS_ADMIN capability, as well as being able to read the host's cgroups. If you wish to replace the fakesystemd package and use systemd normally, please follow the steps below. | |
Dockerfile for systemd base image | |
FROM centos:7 | |
MAINTAINER "you" <your@email.here> | |
ENV container docker | |
RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs |
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
win_path = "C:/Users/mangesh.b/SonarAnalysis" | |
linux_path = "/home/ec2-user/SonarAnalysis" | |
import os, platform, git, subprocess | |
from array import * | |
ostype=os.name | |
def create_dir(): | |
if ostype == 'nt': | |
if not os.path.exists(win_path): |
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
// Hello1.cs | |
public class Hello1 | |
{ | |
public static void Main() | |
{ | |
System.Console.WriteLine("Hello, World!"); | |
} | |
} |
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
public class Helloworld1 { | |
public void printHelloWorld1() { | |
System.out.println("Hello World 1!"); | |
System.out.println("Oracle Java!"); | |
} | |
} | |
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
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
# Install NRPE Plugin on Server Side | |
cd /tmp/ | |
wget http://garr.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz | |
tar -xzf nrpe-2.15.tar.gz | |
cd nrpe-2.15 |
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
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel | |
useradd nagios | |
cd /tmp/ |
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
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
#Automated Installation of NAGIOS ON SERVER SIDE | |
cd /tmp/ | |
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.1.tar.gz | |
wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz | |
echo " " | |
echo "Adding users" |
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
#!/bin/bash | |
#Author: MANGESHKUMAR B BHARSAKLE | |
#PROBLEM:How to download latest timestamp file from FTP remote SERVER to local | |
if [ -f tempfile ] | |
then | |
rm -rf tempfile | |
fi | |
ftp -n 192.168.127.151 >tempfile <<EOF | |
user ftp ftp |
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
#! /bin/bash | |
# Aim : This Script is mainly written to take a backup of User's Home Directory | |
# Author : MANGESHKUMAR B BHARSAKLE | |
# 1: userslist.txt root@192.168.0.24 /var/tmp/backup root@desktop24.example.com 7 | |
if [ $# -ne 4 -a $# -ne 5 ]; then | |
echo "cla msg" | |
exit 9 | |
fi |
NewerOlder