Skip to content

Instantly share code, notes, and snippets.

View arajkumar's full-sized avatar
🏡

Arunprasad Rajkumar arajkumar

🏡
View GitHub Profile
@arajkumar
arajkumar / dashboards.yaml
Last active March 29, 2022 10:45
Memory Analysis
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@arajkumar
arajkumar / keybase.md
Created November 12, 2021 06:13
keybase.md

Keybase proof

I hereby claim:

  • I am arajkumar on github.
  • I am arajkumar (https://keybase.io/arajkumar) on keybase.
  • I have a public key whose fingerprint is 0AC1 E8DF BE8C 30DC 0547 FD10 7DB9 3046 D468 7C2C

To claim this, I am signing this object:

@arajkumar
arajkumar / pod.yaml
Last active November 11, 2021 12:22
ResourceQuota test
apiVersion: v1
kind: Pod
metadata:
name: low-priority
spec:
containers:
- name: low-priority
image: ubuntu
command: ["/bin/sh"]
args: ["-c", "while true; do echo hello; sleep 10;done"]
@arajkumar
arajkumar / python-works.yaml
Last active January 29, 2021 04:56
python-works.yaml
python-projects:
redhat:
backbone: https://github.com/fabric8-analytics/f8a-server-backbone/commits?author=arajkumar
api-server: https://github.com/fabric8-analytics/fabric8-analytics-server/commits?author=arajkumar
pcve-api-server: https://github.com/kubesecurity/osa-api-server/commits?author=arajkumar
openshift-probable-vulnerabilities: https://github.com/kubesecurity/openshift-probable-vulnerabilities/commits?author=arajkumar
quay: https://github.com/quay/quay/commits?author=arajkumar
opensource-contributions:
python-restx: https://github.com/python-restx/flask-restx/commits?author=arajkumar
# https://pypi.org/project/requests-futures/
from requests_futures.sessions import FuturesSession
from concurrent.futures import wait, ALL_COMPLETED
from time import time
concurrent_limit = 10
total_reqs = 10
each_request_duration = 5 # simulated delay
completion_timeout = 11
@arajkumar
arajkumar / test_requests_futures.py
Created January 25, 2021 06:33
test_requests_futures.py
# https://pypi.org/project/requests-futures/
from requests_futures.sessions import FuturesSession
from concurrent.futures import wait, ALL_COMPLETED
from time import time
concurrent_limit = 10
total_reqs = 10
each_request_duration = 5 # simulated delay
completion_timeout = 11
This file has been truncated, but you can view the full file.
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
def cleanup_db_tables(self):
"""Cleanup RDS data tables on a periodic basis."""
def clean_celery_taskmeta():
num_days = os.environ.get('KEEP_DB_META_NUM_DAYS', '30')
self.cleanup_tables('celery_taskmeta', 'date_done', num_days)
def clean_worker_results()
num_days = os.environ.get('KEEP_WORKER_RESULT_NUM_DAYS', '30')
self.cleanup_tables('worker_results', 'ended_at', num_days)
@arajkumar
arajkumar / ImageManifestVuln.yaml
Created September 30, 2020 10:59
ImageManifestVuln obj with Clairv4, Snyk and Quay API changes
apiVersion: secscan.quay.redhat.com/v1alpha1
kind: ImageManifestVuln
metadata:
selfLink: >-
/apis/secscan.quay.redhat.com/v1alpha1/namespaces/quay-enterprise/imagemanifestvulns/sha256.cf785e739b3aeba8f7553b17560a4cd7d9b2a91ea9e453aa6fa5cb0b83e9ed2b
resourceVersion: '113932'
name: sha256.cf785e739b3aeba8f7553b17560a4cd7d9b2a91ea9e453aa6fa5cb0b83e9ed2b
uid: e1d548b6-2d13-427f-abba-c27b76e54c3e
creationTimestamp: '2020-09-30T10:54:23Z'
generation: 1
apiVersion: v2
publisher: redhat
name: dependency-analytics
version: 0.1.0
type: VS Code extension
displayName: Dependency Analytics
title: Insights about your application dependencies
description: Insights about your application dependencies, Security, License compatibility and AI based guidance to choose appropriate dependencies for your application.
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension