Skip to content

Instantly share code, notes, and snippets.

View makr123's full-sized avatar

MALEPATI ASHOK KUMAR makr123

View GitHub Profile
@makr123
makr123 / jboss.sh
Created January 8, 2020 12:49 — forked from fkleon/jboss.sh
A shell script to perform simple management operations on a JBoss instance.
#!/bin/sh
#########################################################
# A shell script to manage a JBoss instance. #
# #
# For a detailed description see wiki. #
# #
# Version: #
# 1.1.4 #
# Author(s): #
# Start minikube cluster in local
minikube start
# optionally start with cpu s and memory
minikube start --cpus=4 --memory=4096
# to change the docker machine to point to the kubernetes cluster
eval $(minikube docker-env)
# Note: Kubernetes supports docker version - 1.11.1.
@makr123
makr123 / ArrayObjectDemo.coffee
Created December 7, 2018 07:12 — forked from frane/ArrayObjectDemo.coffee
Traversing arrays and objects in CoffeeScript
# Traversing arrays and objects in CoffeeScript
# The array and object we use for testing
arr = [1, 2, 3, 4, 5]
obj = {a: 1, b: 2, c: 3, d: 4, e: 5}
# 'in' has a different meaning in CoffeeScript than in JavaScript
# CS: element in array -> JS: array.indexOf(element) >= 0
console.log '5 in arr: ' + (5 in arr)
@makr123
makr123 / iis.yml
Created November 23, 2018 09:40 — forked from dgmorales/iis.yml
Ansible Windows playbook example - creates an IIS website and deploys files for it
---
- hosts: windows
vars:
ansible_site_path: "c:\\inetpub\\wwwroot\\ansibletest"
staging_path: "c:\\deploy"
ansible_test_staging_path: "{{ staging_path }}\\ansible-test-site-{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}"
tasks:
- name: install-iis
win_feature:
name: "Web-Server"
@makr123
makr123 / NonAdmin.cmd
Created November 7, 2018 17:09 — forked from ferventcoder/NonAdmin.cmd
Installing Software as a Non-Administrator Using Chocolatey
:: Pick one of these two files (cmd or ps1)
:: Set directory for installation - Chocolatey does not lock
:: down the directory if not the default
SET INSTALLDIR=c:\ProgramData\chocoportable
setx ChocolateyInstall %INSTALLDIR%
:: All install options - offline, proxy, etc at
:: https://chocolatey.org/install
@powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"