Skip to content

Instantly share code, notes, and snippets.

View parth-gr's full-sized avatar
🏠
Working from home

Parth Arora parth-gr

🏠
Working from home
View GitHub Profile
@parth-gr
parth-gr / try.sh
Created September 16, 2022 15:12
try
#!/bin/bash
# config_file="/opt/cal/cipe/output/node.json"
wipefs_opts="--all --force"
function get_odf_disks() {
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null core@$1 " \
for i in $(echo $2); do \
LANG=C; \
sudo fdisk -lu \"\$i\" | tr '\n' ' ' | grep 'Disk ' |grep -v 'Disklabel type:' | grep -o \"\$i\"; \
done;"
@parth-gr
parth-gr / disk_cleanup.sh
Last active September 15, 2022 16:12
uninstall_ODF
#!/bin/bash
config_file="/opt/cal/cipe/output/node.json"
wipefs_opts="--all --force"
function get_odf_disks() {
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null core@$1 " \
for i in $(echo $2); do \
LANG=C; \
sudo fdisk -lu \"\$i\" | tr '\n' ' ' | grep 'Disk ' |grep -v 'Disklabel type:' | grep -o \"\$i\"; \
done;"
@parth-gr
parth-gr / update-golang.md
Created September 15, 2022 10:19 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

2022-07-07T12:35:49.1963633Z Requested labels: ubuntu-latest
2022-07-07T12:35:49.1963682Z Job defined at: parth-gr/auto-assign-issue/.github/workflows/assign1.yaml@refs/heads/main
2022-07-07T12:35:49.1963704Z Waiting for a runner to pick up this job...
2022-07-07T12:35:50.0836720Z Job is waiting for a hosted runner to come online.
2022-07-07T12:35:54.3890312Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-07-07T12:35:57.8081397Z Current runner version: '2.294.0'
2022-07-07T12:35:57.8109448Z ##[group]Operating System
2022-07-07T12:35:57.8109974Z Ubuntu
2022-07-07T12:35:57.8110385Z 20.04.4
2022-07-07T12:35:57.8110712Z LTS
@parth-gr
parth-gr / install-config.yaml
Last active September 27, 2021 04:52
Create OCP Cluster
apiVersion: v1
baseDomain: qe.devcluster.openshift.com
compute:
- architecture: amd64
hyperthreading: Enabled
name: worker
platform:
aws:
type: m5.4xlarge
replicas: 4
@parth-gr
parth-gr / rook-cluster.sh
Last active May 26, 2022 16:34
Rook-ceph Cluster installation on minikube.(3 nodes)
# for running ->
# 1) chmod +x rook-cluster.sh
# 2) ./rook-cluster.sh
#!/bin/bash -e
echo "*** Rook-Cluster ***"
# Create a minikube cluster
minikube start --driver=kvm2 --nodes 3
# Add storage to a minikube cluster
@parth-gr
parth-gr / Gsoc2020.md
Last active August 28, 2020 12:36
Google Summer of Code 2020 — Parth Arora — moja global (under DIAL)

Google Summer of Code 2020 Final Work Product -

(This document contains a brief summary of all the work that I did as part of my Google Summer of Code 2020)

Student Parth Arora
Github @parth-gr
Organisation Moja Global (under the umbrella of organization DIAL)
Project Refactor FLINT Core Code Base
Mentors [Guy], [Mal]
https://drive.google.com/file/d/1o2Qf1WGCH9V4GMzlst8bMkCblCP69Tw9/view?usp=sharing