Skip to content

Instantly share code, notes, and snippets.

View prashant-shahi's full-sized avatar

Prashant Shahi prashant-shahi

View GitHub Profile
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 23
Hash: 95f40996 1218e245 34de719a 1afbbf7b
6d1b5fc0 62e50d2b b13dda3a c1d464cb
e629e7f3 04d146ce eb22bff2 5ddf2ffd
fe99d9d1 3e2528b2 9dafcdcd f169d0f2
@prashant-shahi
prashant-shahi / s3.sh
Created March 16, 2022 18:54 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
@prashant-shahi
prashant-shahi / main.go
Created March 8, 2022 09:03
Fetch latest GitHub release version using Golang
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"time"
)
@prashant-shahi
prashant-shahi / Dockerfile
Last active January 18, 2022 14:19
SigNoz Frontend Dockerfile
# builder stage
FROM node:12.18.0 as builder
# Add Maintainer Info
LABEL maintainer="signoz"
ARG TARGETOS=linux
ARG TARGETARCH
WORKDIR /frontend
# uname -a
# Linux ip-172-31-1-128 5.4.0-1038-aws #40-Ubuntu SMP Fri Feb 5 23:53:34 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
git clone --depth=1 --branch=docker_server_from_ci_builds https://github.com/filimonov/ClickHouse.git
cd ClickHouse/docker/server/
docker build . --network host --build-arg single_binary_location="https://builds.clickhouse.tech/master/aarch64/clickhouse"
docker image ls
docker tag 98f169cda25a altinity/clickhouse-server:21.4.1.6307-testing-arm
docker login
@prashant-shahi
prashant-shahi / arm64.env
Created January 13, 2022 14:11
SigNoz docker-compose YAML
clickhouse_image=altinity/clickhouse-server:21.8.12.1.testingarm
@prashant-shahi
prashant-shahi / docker-compose.yaml
Last active January 13, 2022 14:20
SigNoz docker compose YAML with custom subnet
version: "2.4"
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.210.0.0/16
gateway: 10.210.0.1
@prashant-shahi
prashant-shahi / fission.md
Last active October 9, 2021 14:10
Fission 101

Fission: FaaS for Kubernetes

Fission Basics

  • Short-lived stateless "functions"
  • Defined declaratively at source-level
  • Function free when idle: on-demand starts up - coldstart of ~100ms

Fission Trigger Function Environment

@prashant-shahi
prashant-shahi / kathmandu-ringroad.geojson
Created September 30, 2021 10:13
Kathmandu Ringroad GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.