Skip to content

Instantly share code, notes, and snippets.

View bhushanm90's full-sized avatar
🎯
Focusing

Bhushan Mahajan bhushanm90

🎯
Focusing
View GitHub Profile
@bhushanm90
bhushanm90 / install.sh
Created January 28, 2020 02:34 — forked from geowa4/install.sh
Simple Bash script to download Tomcat 7.0.23 and deploy a WAR.
#!/bin/bash
TOMCAT=apache-tomcat-7.0.23
TOMCAT_WEBAPPS=$TOMCAT/webapps
TOMCAT_CONFIG=$TOMCAT/conf/server.xml
TOMCAT_START=$TOMCAT/bin/startup.sh
TOMCAT_ARCHIVE=$TOMCAT.tar.gz
TOMCAT_URL=http://apache.mirrorcatalogs.com/tomcat/tomcat-7/v7.0.23/bin/$TOMCAT_ARCHIVE
WAR_FILE=whatever.war
@bhushanm90
bhushanm90 / ansible-summary.md
Created January 14, 2020 03:33 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@bhushanm90
bhushanm90 / bash-cheatsheet.sh
Created April 20, 2019 04:44 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@bhushanm90
bhushanm90 / install_jenkins.yml
Created April 19, 2019 13:58 — forked from seancallaway/install_jenkins.yml
Ansible Playbook for Installing Jenkins on Centos 7
---
- hosts: jenkins
roles:
- role: ansiblebit.oracle-java
oracle_java_set_as_default: yes
tasks:
- name: Ensure Jenkins Repository is Installed
yum_repository:
name: jenkins
state: present
@bhushanm90
bhushanm90 / Email Server (Linux, Unix, Mac).md
Created March 22, 2019 05:13 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@bhushanm90
bhushanm90 / wget-jdk-oracle-install-example.txt
Created March 17, 2019 09:31 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu