Skip to content

Instantly share code, notes, and snippets.

@s-rohith
s-rohith / docker-compose.yml
Last active February 27, 2024 02:15
To Install OSS Jfrog artifactory
version: '3'
services:
artifactory:
image: docker.bintray.io/jfrog/artifactory-oss:latest
container_name: artifactory
ports:
- "8081:8081"
- "8082:8082"
volumes:
- /home/$whoami/jfrog:/var/opt/jfrog/artifactory
@s-rohith
s-rohith / flask_app_prettyTable.py
Created September 22, 2023 16:21
Flask app to print pretty Table output
from flask import Flask, render_template
from prettytable import PrettyTable
app = Flask(__name__)
@app.route('/')
def index():
# Create a PrettyTable instance
table = PrettyTable()
@s-rohith
s-rohith / policy.json
Created April 29, 2023 16:12
read-only s3 bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Effect": "Allow",
"Principal": {
FROM ubuntu
RUN apt update && apt install git -y
# Install rbenv
RUN git clone https://github.com/rbenv/rbenv.git /usr/local/.rbenv
ENV PATH /usr/local/.rbenv/bin:$PATH
RUN eval "$(rbenv init -)"
# Update runtime config on the Director, bosh update-runtime-config
Example:
bosh update-runtime-config runtime.yml
bosh runtime-config
# To remove all addons, specify empty arrays as follows:
releases: []
addons: []