Skip to content

Instantly share code, notes, and snippets.

View gridhead's full-sized avatar
🚀
Underpromise and overdeliver

Akashdeep Dhar gridhead

🚀
Underpromise and overdeliver
View GitHub Profile
@gridhead
gridhead / speakernotes-for-metrics-for-apps-f35-release-party-talk.md
Created November 12, 2021 12:12
Speakernotes for Metrics for Apps F35 Release Party Talk

Speakernotes

Akashdeep Dhar - Slide #6

  • Thanks for the demonstration, David
  • All right - so what are the next steps forward for the developers -
  • The cluster now corresponds to Noggin/IPA for authentication/authorization - so you can login to the cluster via your Fedora Accounts.
  • The infrastructure and release engineering team will work on migrating the existing applications from the older OCP cluster to the newer 4.x version.
  • One can help us with the existing running applications, they can help us -
    • By reworking their OpenShift applications playbook to fall in line with the new cluster and make a PR against our Fedora Infrastructure's Ansible repositories [1]
@gridhead
gridhead / new_app.py
Created November 9, 2021 09:09
Duffy Logging
import logging
import click
import uvicorn
from ..configuration import config, read_configuration
from ..version import __version__
DEFAULT_CONFIG_FILE = "/etc/duffy.yaml"
@gridhead
gridhead / gist:cb84d7374cc2f8204082268773f84085
Created November 8, 2021 10:41 — forked from nphilipp/gist:dd14f54a28ab00ac709b40c7d7fa2b52
Auto-activate Python virtualenvwrapper environment if shell is started within a project directory
# ...
# Copyright © 2021 Nils Philippsen <[email protected]>
# Licensed under the MIT license as published by the Open Source Initiative
# Auto-activate Python virtualenvwrapper environment if shell is started within a project directory
_old_nullglob=$(shopt -p nullglob)
shopt -s nullglob
unset _projdirs_venvs
declare -A _projdirs_venvs
@gridhead
gridhead / 05112021.yml
Last active November 20, 2021 05:15
Gaming PC Performance Build Writeups
Metadata:
Author: "Akashdeep Dhar"
Email: "[email protected]"
Datetime: "17:18, 05 Nov 2021"
Timezone: "Asia/Kolkata"
Components:
CentralProcessingUnit:
Name: "AMD Ryzen 7 5800X"
Quantity: 1
TDP: 105
@gridhead
gridhead / chanlist.md
Last active November 12, 2021 07:01
Channels that I am a part of

Host:

irc.libera.chat:6697

List:

#fedora-aaa
#fedora-admin
#fedora-apps
@gridhead
gridhead / easyfix.md
Created August 30, 2021 13:37
Websites and Apps Architecture Diagram

1

@gridhead
gridhead / zeb_py_usage.md
Created August 28, 2021 15:57
Zeb Py Usage
  1. git clone https://github.com/zebpay/zeb_py.git
  2. cd zeb_py
  3. virtualenv venv
  4. source venv/bin/activate
  5. python3 setup.py install
  6. pip3 install requests pycrypto
  7. Add from zebpay_client import zebpay_rest_client in your module to use functions
@gridhead
gridhead / gitblit-noarch.Dockerfile
Last active August 22, 2021 16:11
GitBlit Dockerfile
FROM centos:latest
LABEL maintainer "Akashdeep Dhar <[email protected]>"
RUN ["dnf", "install", "java", "wget", "-y"]
RUN ["wget", "https://github.com/gitblit/gitblit/releases/download/v1.9.1/gitblit-1.9.1.tar.gz"]
RUN ["tar", "-xvzf", "gitblit-1.9.1.tar.gz"]
RUN ["rm", "gitblit-1.9.1.tar.gz"]
WORKDIR /gitblit-1.9.1
EXPOSE 8080 8443 9418 29418
ENTRYPOINT ["sh", "/gitblit-1.9.1/gitblit.sh"]
@gridhead
gridhead / etherpad-noarch.Dockerfile
Created August 22, 2021 13:11
Etherpad Dockerfile
FROM docker.io/library/node:latest
LABEL maintainer "Akashdeep Dhar <[email protected]>"
WORKDIR /data
RUN git clone --branch master https://github.com/ether/etherpad-lite.git .
EXPOSE 9001
ENTRYPOINT ["sh", "/data/src/bin/run.sh", "--root"]