Skip to content

Instantly share code, notes, and snippets.

View Hyperclaw79's full-sized avatar
🐍
Taming Pythons

Harshith Thota Hyperclaw79

🐍
Taming Pythons
View GitHub Profile
prometheus:
# Make the Prometheus CRD consider *our* extra monitors
prometheusSpec:
serviceMonitorSelectorNilUsesHelmValues: false
podMonitorSelectorNilUsesHelmValues: false
additionalPodMonitors:
- name: linkerd-proxy
namespaceSelector:
any: true
@Hyperclaw79
Hyperclaw79 / coverage_plotter.py
Created January 2, 2024 14:27
Parses coverage.xml (generated by Pytest) and plots it as a Bar chart.
"""
This script is used to plot the coverage of the project.
It is based on the coverage.xml file generated by pytest-cov.
"""
import argparse
import xml.etree.ElementTree as ET
from pathlib import Path
# import matplotlib
# matplotlib.use('Qt5Agg')
{
"name": "PokeChip",
"symbol": "PKCHP",
"description": "Crypto version of Pokegambler's Pokechip.",
"image": "https://i.imgur.com/y2XCFU1.png"
}
@Hyperclaw79
Hyperclaw79 / sorter.py
Created November 8, 2019 15:51
Horriblesubs Episode Sorter
import os
import shutil
import tqdm
files = [
filename
for filename in os.listdir('.')
if all([
os.path.isfile(filename),
any([
import os
import sys
import subprocess
cores = os.cpu_count()
python = 'python'
if sys.platform.lower() == "linux":
python = "python3"
root_ip = "localhost"
if len(sys.argv) > 1:
@Hyperclaw79
Hyperclaw79 / config.json
Last active November 9, 2018 16:37
Python Discord Bot Basic Template
{
"token": "",
"command_prefix": "",
"env": "dev",
"version": "0.0.1",
"owner_id": 0
}