Skip to content

Instantly share code, notes, and snippets.

chennaiah vikaschenny

Block or report user

Report or block vikaschenny

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
vikaschenny / ansible-galaxy.bat
Created Mar 1, 2019 — forked from maurizi/ansible-galaxy.bat
Running Ansible on Windows
View ansible-galaxy.bat
@echo off
cygwin-shim.bat /bin/ansible-galaxy %*
vikaschenny / playbook-install-jdk8.yml
Created Sep 19, 2018 — forked from andershedstrom/playbook-install-jdk8.yml
Ansible playbook for installing Oracle Java 8 on CentOS
View playbook-install-jdk8.yml
- hosts: app
remote_user: vagrant
sudo: yes
download_folder: /opt
java_name: "{{download_folder}}/jdk1.8.0_05"
java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz"
vikaschenny / bamboo_build.ps1
Created Aug 28, 2018 — forked from crejb/bamboo_build.ps1
Remotely trigger/queue a Bamboo build from command line via the Rest API
View bamboo_build.ps1
# Disable progress bars created by Invoke-RestMethod which internally uses Write-Progress)
$progressPreference = 'silentlyContinue'
$url = 'http://bamboohost:8085/'
$apiUrl = $url + "rest/api/latest/"
$project = 'ZZ-ZZZ'
$queueUrl = ("{0}queue/{1}" -f $apiUrl, $project)
vikaschenny / postgres istallation and configuration.txt
Last active May 22, 2018
postgres istallation and configuration
View postgres istallation and configuration.txt
How To Install and Use PostgreSQL on Ubuntu 16.04
wget -q -O - | sudo apt-key add -
$ sudo sh -c 'echo "deb `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib
$ sudo su - postgres
$ psql
vikaschenny /
Created May 8, 2018 — forked from jeremyharris/
Quick bash script to backup mysql databases as separate files similar to how MySQL Workbench does
# Script to backup all mysql tables as separate files
# $BACKUP_PATH/<date>/<db_name>/<host>_<table_name>.gz
# MySQL settings
vikaschenny /
Created May 8, 2018 — forked from NARKOZ/
MySQL backup shell script
# Shell script to backup MySQL database
# Set these variables
# Backup Dest directory
DEST="" # /home/username/backups/DB
View unused catche remove script
usep=$( free -m | awk 'NR==2{printf "%.f\t\t", $3*100/$2 }')
if [ $usep -ge 20 ]; then
sync; echo 1 > /proc/sys/vm/drop_caches
script -2
memory, cpu and disk space display script
View docker solar cluster
Example of Zookeeper and Solr cluster with Docker networking
In this example I'll create a cluster with 3 ZooKeeper nodes and 3 Solr nodes, distributed over 3 machines (trinity10, trinity20, trinity30).
I'll use an overlay network, specify fixed IP addresses when creating containers, and I'll pass in explicit `/etc/hosts` entries to make sure they are available even when nodes are down.
I won't show the configuration of the key-value store to configuration to enable networking, see [the docs]( for that.
I'll not use Docker Swarm in this example, but specifically place and configure containers where I want them by ssh'ing into the appropriate Docker host.
To make this example easier to understand I'll just use shell commands.
For actual use you may want to use a fancier deployment tool like [Fabric](
View build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="My Project" default="help" xmlns:sonar="antlib:org.sonar.ant">
<!-- Define the SonarQube global properties (the most usual way is to pass these properties via the command line) -->
<property name="sonar.jdbc.url" value="jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8" />
<property name="sonar.jdbc.username" value="sonar" />
<property name="sonar.jdbc.password" value="sonar" />
<!-- Define the SonarQube project properties -->
<property name="sonar.projectKey" value="my-project" />
vikaschenny / nginx.conf
Created Jan 29, 2018 — forked from phpdude/nginx.conf
Nginx image filter + caching of results.
View nginx.conf
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
You can’t perform that action at this time.