Skip to content

Instantly share code, notes, and snippets.

View Lucifergene's full-sized avatar
:electron:
Committing changes to the universe

Avik Kundu Lucifergene

:electron:
Committing changes to the universe
View GitHub Profile
@Lucifergene
Lucifergene / ai-learning-paths.json
Last active April 1, 2025 09:10
AI Learning Paths JSON
[
{
"paths": 20,
"hours": 7,
"minutes": 40,
"description": "In this learning path, I'll demonstrate how anyone can run a distributed AI workload on Red Hat OpenShift using just a few nodes and GPUs. ",
"label": "RoCE multi-node AI training on Red Hat OpenShift",
"url": "https://developers.redhat.com/learn/openshift/roce-multi-node-ai-training-red-hat-openshift"
},
{
@Lucifergene
Lucifergene / user.yaml
Created March 14, 2025 11:46
RHDH User
apiVersion: backstage.io/v1alpha1
kind: User
metadata:
name: lucifergene
spec:
profile:
# Intentional no displayName for testing
email: avikkundu8d@gmail.com
memberOf: [temp-team-a]
@Lucifergene
Lucifergene / approval-task-demo.yaml
Last active May 2, 2024 15:02
Pipeline with ApprovalTask
---
#BEFORE TASK
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: before
spec:
steps:
- image: quay.io/avik6028/busybox:latest
name: before
@Lucifergene
Lucifergene / README.md
Last active June 1, 2024 09:39
Create Openshift Cluster Script

Openshift Cluster Installation Script

This script automates the installation of an OpenShift cluster on Linux systems. Below are the prerequisites and instructions to run the script on Linux and Mac.

Prerequisites

Linux

  • gh: GitHub CLI for updating the Kubeconfig Gist
  • jq: Command-line JSON processor
@Lucifergene
Lucifergene / k8s.yaml
Created November 22, 2022 22:24
Sample Application Manifest
apiVersion: v1
kind: Namespace
metadata:
name: nodejs
labels:
name: nodejs
---
apiVersion: apps/v1
kind: Deployment
metadata:
@Lucifergene
Lucifergene / index.js
Created August 28, 2021 16:20
CloudFlare Worker Script for URL Shortener Service
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
const html404 = `<!DOCTYPE html>
<body>
<h1>404 Not Found.</h1>
<p>The url you visit is not found.</p>
</body>`
#set($DDBResponse = $input.path('$'))
#if ($DDBResponse.toString().contains("Item"))
#set($context.responseOverride.header.Location = $DDBResponse.Item.longURL.S)
#end
{
"Key": {
"shortId": {
"S": "$input.params().path.shortId"
}
},
"TableName": "URL-Shortener"
}
#set($DDBResponse = $input.path('$'))
{
"shortURL": "$DDBResponse.Attributes.shortId.S",
"longURL": "$DDBResponse.Attributes.longURL.S",
"owner": "$DDBResponse.Attributes.owner.S"
}
@Lucifergene
Lucifergene / post-integration-request.json
Created August 18, 2021 19:01
Intregation Request Mapping Template of POST Method
{
"TableName": "URL-Shortener",
"ConditionExpression": "attribute_not_exists(id)",
"Key": {
"shortId": {
"S": $input.json('$.shortURL')
}
},
"ExpressionAttributeNames": {
"#u": "longURL",