Skip to content

Instantly share code, notes, and snippets.

View Nancy-Chauhan's full-sized avatar
☀️
learning

Nancy Chauhan Nancy-Chauhan

☀️
learning
View GitHub Profile
@Nancy-Chauhan
Nancy-Chauhan / CracklePop.py
Created June 15, 2021 12:20 — forked from Priya997/CracklePop.py
Write a program that prints out the numbers 1 to 100 (inclusive). If the number is divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop. You can use any language.
for i in range(1,101):
if i%3==0 and i%5==0:
print("CracklePop")
elif i%3==0:
print("Crackle")
elif i%5==0:
print("Pop")
else:
print(i)
import os
import re
from time import sleep
from prometheus_client import start_http_server, Counter
def main():
start_http_server(8000)
gather_metrics()
apiVersion: v1
kind: ServiceAccount
metadata:
name: tekton-ci
secrets:
- name: ghcr
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: ci
spec:
params:
- name: git-revision
type: string
- name: git-url
type: string
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: keystore-ci-
spec:
pipelineRef:
name: ci
serviceAccountName: tekton-ci
params:
- name: git-revision
apiVersion: 1
datasources:
- version: 1
name: prometheus
type: prometheus
access: proxy
isDefault: true
url: http://prometheus:9090
apiVersion: 1
providers:
- name: 'KeyValue'
type: file
options:
path: /var/lib/grafana/dashboards
global:
scrape_interval: 5s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "key-value"
static_configs:
- targets: ['app:4567']
stage("Docker run"){
parallel{
stage("verilator"){
environment{
JOB = 'verilator'
}
steps{
dockerrun()
}
}
version: "3"
services:
app:
build: .
ports:
- 4567:4567
prometheus:
image: prom/prometheus
ports: