Skip to content

Instantly share code, notes, and snippets.

View slotlocker2's full-sized avatar

Phani Kumar slotlocker2

View GitHub Profile
FROM bitnami/wordpress:5.9.3
ENV APACHE_HTTP_PORT_NUMBER 8080
ENV APACHE_HTTPS_PORT_NUMBER 8443
ADD --chown=1001 httpd-mpm.conf /opt/bitnami/apache/conf/extra/httpd-mpm.conf
ADD --chown=1001 httpd.conf /opt/bitnami/apache/conf/httpd.conf
@slotlocker2
slotlocker2 / dgraph.yaml
Created October 29, 2020 18:32
config.yaml
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: dgraph
spec:
serviceName: "dgraph"
replicas: 1
selector:
matchLabels:

Keybase proof

I hereby claim:

  • I am slotlocker2 on github.
  • I am 1p7k (https://keybase.io/1p7k) on keybase.
  • I have a public key ASDvq7XPj12CCG3NG9jdXfgRzbtJIcMw-GOKyqkCNP4fcAo

To claim this, I am signing this object:

@slotlocker2
slotlocker2 / terminate-namespace.sh
Created September 5, 2019 09:03
Terminate stuck namespaces
#!/bin/bash
# Based off of https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.1/troubleshoot/ns_terminating.html
# Check for jq
command -v jq 2>&1 > /dev/null
if [ $? -ne 0 ]
then
echo "Either jq is not installed or not in PATH. Exiting."
exit 1
@slotlocker2
slotlocker2 / ut.py
Last active August 29, 2015 14:14
Service rate bottlenecks.
import time
import threading
from random import randint
class ServiceClass:
def __init__(self, name, rate):
self.name = name #Instance as no __name__ method.
self.rate = rate # requests served per second.