Skip to content

Instantly share code, notes, and snippets.

View jim380's full-sized avatar

Jay Namsayin jim380

View GitHub Profile
@ForboleDevelopment
ForboleDevelopment / desmos-cosmovisor-installer.sh
Last active September 30, 2020 07:10
This script allows you to setup Cosmovisor inside your Desmos node so that it will be able to automatically upgrade itself for the Desmos September Upgrade
#!/usr/bin/env bash
# This script allows the easy installation of the Cosmovisor daemon to watch
# any upgrade of your Desmos node.
# In order to run it properly, just execute this script giving it the path
# to the folder where you cloned Desmos.
# Example:
# ./install-cosmovisor.sh ~/desmos
DESMOS_PATH=$1
@kwunyeung
kwunyeung / gaia_upgrade.sh
Last active January 13, 2023 06:29
script to upgrade the Cosmos gaia testnet
#!/bin/bash
# Upgrade Cosmos SDK and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
@critesjosh
critesjosh / Splitter.sol
Last active April 6, 2022 20:00
A contract to split funds between addresses. Demostrates pushing vs pulling transfers
pragma solidity ^0.4.6;
contract Splitter {
mapping(address => uint) public balances;
function unsafeSplit(address address1, address address2)
public
payable
returns(bool success)