Skip to content

Instantly share code, notes, and snippets.

View Jeongseup's full-sized avatar
🏃‍♂️
Running

Jeongseup Jeongseup

🏃‍♂️
Running
View GitHub Profile
set your private key and validator address as a env. (If you don't know where your private key is, it is in a file called validator.key. or it should also be included in the mail you received during onboarding. )
PRIVATE_KEY="PUT YOUR PRIVATE KEY HERE"
VAL_ADDRESS="PUT YOUR VALIDATOR ADDRESS HERE"
All steps are necessary.
- Step 1
@wonhyeongseo
wonhyeongseo / README.md
Created July 7, 2023 11:49
GitHub Resume Template

Hello, I'm [Your Name] 👋

🚀 About Me

I'm a [Your Job Title], currently working at [Your Company Name]. I have [Number of Years of Experience] years of experience in [Your Field of Expertise].

🛠 Skills

  • Programming Languages: [List of Programming Languages]
  • Tools/Frameworks: [List of Tools/Frameworks]
  • Databases: [List of Databases]
  • Other Skills: [List of Other Skills]
@junha1
junha1 / rust_study.md
Last active April 21, 2025 05:49
Rust 공부하는법

Rust 공부하는법

2022년 9월 5일 양준하

왜 Rust를 배워야 하는가?

  • 2021년 4분기 기준 Github 점유율 15위 언어
  • C++ 암살자 포지션 (개인적으로 10년안에 C++ 넘어설 듯)
  • 블록체인, 임베디드, 시스템프로그래밍, 서버, 분산처리, WASM 등에서 활발히 사용되는 고성능 언어
  • 모던하고 깔끔한 언어 디자인, 훌륭한 개발툴과 패키지 매니저
  • 수준높은 사용자들과 커뮤니티, 독보적인 UX를 기반으로 한 철옹성 같은 팬덤들
#!/bin/bash
curl -s http://localhost:26657/dump_consensus_state | jq '.result.round_state.votes[0].prevotes' | awk '{print $1}' | grep -i "\"V" | cut -f 2 -d':' | sort > votedadresses
while read line; do curl -s http://localhost:26657/dump_consensus_state -s | grep $line -A4 | grep "\"value\"" |head -n1 | awk '{print $2}' >> votestkeys; done < votedadresses
curl -s http://localhost:26657/dump_consensus_state | grep "value" | awk '{print $2}' | sort |uniq > allvotes
while read line; do sed -i -e "s#$line##g" allvotes;done < votestkeys
cat allvotes | sort > filterednovotes
sed -i -e '/^[[:space:]]*$/d' filterednovotes
sed -i -e 's/"//g' filterednovotes
while read line; do gravity query staking validators --limit 1000 | grep $line -A11 | grep moniker; done < filterednovotes
func SendPushNotification(deviceTokens []string) error {
decodedKey, err := getDecodedFireBaseKey()
if err != nil {
return err
}
opts := []option.ClientOption{option.WithCredentialsJSON(decodedKey)}
app, err := firebase.NewApp(context.Background(), nil, opts...)

Minglejingle: Scalable blockchain with non-interactive transactions

This article describes the Minglejingle (MJ) protocol: a redesign of Mimblewimble (MW) for non-interactive transactions. It preserves the security and privacy properties, supports payment proofs, non-interactive coinjoin and secure pruning of spent outputs.

1. Introduction

Blockchains are distributed ledgers that preserve the transaction history so that new network participants can, at any point in the future, verify these two security properties:

  1. Supply security: No counterfeit coins have been created.
  2. Ownership security: No coins have been moved without the authorization by the owner of the associated private keys.
@maratori
maratori / .golangci.yml
Last active April 29, 2025 07:05
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.1.5
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@krishnasrinivas
krishnasrinivas / bucket-policies-primer.md
Created September 9, 2017 19:51 — forked from harshavardhana/bucket-policies-primer.md
Explanation of bucket polices by example

Bucket Policy

Bucket policy is an access policy available for you to grant anonymous permissions to your Minio resources. Bucket policy uses JSON-based access policy language.

This section presents a few examples of typical use cases for bucket policies. The policies use testbucket strings in the resource value. To test these policies, you need to replace these strings with your bucket name. For more information please read Amazon S3 access policy language

Granting Read-Only Permission to an Anonymous User

The following example policy grants the s3:GetObject permission to any public anonymous users. This permission allows anyone to read the object data under testbucket, which is useful for when you have publicly readable assets. A typical example is a website assets stored in testbucket.

@cherti
cherti / alert.sh
Created December 9, 2016 13:47
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@kylelemons
kylelemons / httpget.go
Created July 23, 2011 01:40
Send a bunch of HTTP requests via threads and goroutines
package main
import (
"fmt"
"http"
"flag"
"runtime"
"bytes"
"log"
)