Skip to content

Instantly share code, notes, and snippets.

Setup the stack using docker-compose. I have disabled the opa logging so it will not clutter the logging.

cat > docker-compose.yaml <<EOF
version: '3'
services:
  opa:
    container_name: opa
    image: openpolicyagent/opa:0.12.1
    ports:
#!/bin/bash
#making directory in home folder
mkdir -p ~/vim
#cloning dotfiles in vim folder
git clone https://www.github.com/urvil38/dotfiles ~/vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/vim/bundle/Vundle.vim
rm -f ~/.vimrc
@urvil38
urvil38 / str.java
Last active July 26, 2017 03:08
simple pyramid program in java
import java.util.Scanner;
class pyramid{
void printPyramid(String str){
int l = str.length();
for(int i=0 ; i< l ; i++){
for(int k = 1 ; k < str.length() - i ; k++){
System.out.print(" ");
}
for(int j = 0 ; j <= i ; j++){
wget -qO- https://get.docker.com/ | sh
sudo apt-get install -y python-pip python-dev build-essential
export LC_ALL=C
sudo pip install docker-compose
sudo groupadd docker
sudo gpasswd -a $USER docker