Skip to content

Instantly share code, notes, and snippets.

View yesoreyeram's full-sized avatar

Sriram yesoreyeram

View GitHub Profile
@yesoreyeram
yesoreyeram / numeric-sample.json
Created March 3, 2023 10:23
Grafana Data Frame Contrac
[
{
"schema": {
"refId": "A",
"meta": {
"type": "numeric-long",
"typeVersion": [0, 1]
},
"fields": [
{
@yesoreyeram
yesoreyeram / petstore.json
Created December 30, 2022 11:08
Open API 3
{
"openapi": "3.0.2",
"info": {
"title": "Swagger Petstore - OpenAPI 3.0",
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)",
"termsOfService": "http://swagger.io/terms/",
"contact": { "email": "apiteam@swagger.io" },
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
@yesoreyeram
yesoreyeram / users.csv
Last active October 20, 2022 10:06
Infinity Datasource
name age country occupation salary
Leanne Graham 38 USA Devops Engineer 3000
Ervin Howell 27 USA Software Engineer 2300
Clementine Bauch 24 Canada Student
Patricia Lebsack 42 UK Software Engineer 2800
Leanne Bell 38 USA Senior Software Engineer 4000
Chelsey Dietrich 32 USA Software Engineer 3500
@yesoreyeram
yesoreyeram / empty-frames.json
Last active April 28, 2022 04:19
Grafana Data Frames
[]
<?xml version="1.0" encoding="UTF-8"?>
<CATALOG><CD><TITLE>Empire Burlesque</TITLE></CD><CD><TITLE>Hide your heart</TITLE></CD></CATALOG>
[
{
"name": "Afghanistan",
"topLevelDomain": [
".af"
],
"alpha2Code": "AF",
"alpha3Code": "AFG",
"callingCodes": [
"93"
@yesoreyeram
yesoreyeram / data.csv
Last active May 11, 2021 06:29
grafana mock data
country population capital
india 230 mumbai
india 100 chennai
china 450 beijing
usa 220 washinton
canada 100 ottawa
@yesoreyeram
yesoreyeram / git_rebase.md
Created October 10, 2019 13:32 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@yesoreyeram
yesoreyeram / bootstrap-centos.sh
Last active May 7, 2019 16:18
DSC Installtion
#!/bin/sh
# $1 - DSC ServerURL
# $2 - DSC RegistrationKey
# $3 - DSC ConfigurationName
mkdir -p /opt/downloads;
# https://github.com/microsoft/PowerShell-DSC-for-Linux/issues/432
mount -o remount,exec /tmp;
@yesoreyeram
yesoreyeram / harden.sh
Created December 3, 2018 15:31 — forked from jumanjiman/harden.sh
hardening script for an alpine docker container
#!/bin/sh
set -x
set -e
#
# Docker build calls this script to harden the image during build.
#
# NOTE: To build on CircleCI, you must take care to keep the `find`
# command out of the /proc filesystem to avoid errors like:
#
# find: /proc/tty/driver: Permission denied