Skip to content

Instantly share code, notes, and snippets.

View 0hlov3's full-sized avatar
😇

0hlov3 0hlov3

😇
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0hlov3
0hlov3 / test-csy-ceph.yaml
Created January 27, 2022 08:15
Tests External Ceph-CSI on Openshift
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc
spec:
storageClassName: ocs-external-storagecluster-cephfs
accessModes:
- ReadWriteOnce
resources:
@0hlov3
0hlov3 / test-s3.yaml
Created January 27, 2022 08:15
Test s3 ObjectStore on Openshift
---
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
labels:
app: my-s3-app
bucket-provisioner: openshift-storage.noobaa.io-obc
noobaa-domain: openshift-storage.noobaa.io
name: my-s3-app
spec:
# Generated by Powerlevel10k configuration wizard on 2020-04-30 at 16:59 CEST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 13818.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark,
# 12h time, angled separators, slanted heads, flat tails, 2 lines, disconnected,
# left frame, compact, many icons, concise, transient_prompt, instant_prompt=quiet.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
#!/bin/bash
install_dependencies()
{
echo "Installing Java 1.8 (openjdk)"
yum -y install java-1.8.0-openjdk
}
install_cassandra()
{
@0hlov3
0hlov3 / git-pull-all.sh
Last active May 5, 2020 10:06
Git pull All repos
#!/bin/bash
find ~/git/ -name ".git" -type d | sed 's/\/.git//' | xargs -P10 -I{} git -C {} pull origin master
@0hlov3
0hlov3 / docker-prune.sh
Last active February 15, 2021 08:59
DOCKER PRUNE EVERYTHING
#!/bin/bash
echo 'Stop Containers'
docker stop $(docker ps -a -q)
echo 'Remove Containers'
docker rm -f $(docker ps -a -q)
echo 'Remove Images'
docker rmi -f $(docker images -a -q)
echo 'Prune Volumes'
docker volume prune
@0hlov3
0hlov3 / install-config.yaml
Created December 1, 2019 10:46
Openshift4-install-conifg
apiVersion: v1
baseDomain: openshift.plus
controlPlane:
hyperthreading: Enabled
name: master
platform:
gcp:
rootVolume:
iops: 4000
size: 500