Skip to content

Instantly share code, notes, and snippets.

View ghost-not-in-the-shell's full-sized avatar

ghost!@shell ghost-not-in-the-shell

View GitHub Profile
@ghost-not-in-the-shell
ghost-not-in-the-shell / genesis.json
Last active April 1, 2024 19:46
devnet 3-22 genesis.json
{
"genesis": {
"genesis_state_timestamp": "2024-03-25T23:38:16Z"
},
"proof": {
"fork": {
"state_hash": "3NKoUJX87VrfmNAoUdqoWUykVvt66ztm5rzruDQR7ihwYaWsdJKq",
"blockchain_length": 290600,
"global_slot_since_genesis": 438712
deployment:
enabled: true
daemonset:
enabled: false
extraVolumeMounts:
- name: "pubsub-key"
mountPath: "/var/run/secret/cloud.google.com"
import requests
import json
import time
query = """query {
pooledUserCommands {
hash
}
}"""
@ghost-not-in-the-shell
ghost-not-in-the-shell / auto-kill-node.sh
Created March 22, 2021 18:35
Script to automatically kill the node if it's "not" synced
function is_synced {
local sync_status=$(mina client status | grep "Sync status" | cut -d":" -f2)
if [ $? -ne 0 ];
then
echo Fail to fetch sync status
return 0
fi
if [ $sync_status != "Synced" ];
then
echo Nodes not synced
@ghost-not-in-the-shell
ghost-not-in-the-shell / terraform-plan
Created August 20, 2020 23:39
terraform-plan-result-for-permission-change
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.buildkite-east1-compute.aws_iam_user_policy.buildkite_aws_policy will be updated in-place
~ resource "aws_iam_user_policy" "buildkite_aws_policy" {
{-# OPTIONS --cubical #-}
module Term where
open import Cubical.Core.Everything hiding (_,_)
data Ty : Set where
ι : Ty
_⇒_ : Ty → Ty → Ty
infixl 5 _,_
data Con : Set where
{-# OPTIONS --cubical #-}
open import Cubical.Core.Everything hiding (_,_)
data Ty : Set where
ι : Ty
_⇒_ : Ty → Ty → Ty
data Con : Set where
· : Con
_,_ : Con → Ty → Con
{-# OPTIONS --cubical #-}
open import Cubical.Core.Everything hiding (_,_)
data Ty : Set where
ι : Ty
_⇒_ : Ty → Ty → Ty
data Con : Set where
· : Con
_,_ : Con → Ty → Con
{-# OPTIONS --cubical #-}
open import Cubical.Core.Everything
refl₍_₎ : {A : Set} (x : A) → x ≡ x
refl₍ x ₎ = λ i → x
refl : {A : Set} {x : A} → x ≡ x
refl = refl₍ _ ₎
sym : {A : Set} {x y : A} → x ≡ y → y ≡ x
{-# OPTIONS --without-K #-}
open import Data.Empty
open import Data.Sum
open import Function
open import Relation.Binary.PropositionalEquality
open import Relation.Nullary
_∙_ = trans
∙-unitʳ : ∀ {A : Set} {x y : A} (p : x ≡ y) → p ∙ refl ≡ p