Skip to content

Instantly share code, notes, and snippets.

View bufrr's full-sized avatar
:shipit:
Remote

bytenoob bufrr

:shipit:
Remote
View GitHub Profile
@bufrr
bufrr / local_multinode.sh
Last active February 1, 2025 03:23
evmos multiple node deploy script
#!/bin/bash
# Exit on error, undefined variables, and propagate pipeline failures
set -e
################################################################################
# Configuration
################################################################################
# Default values
use std::collections::HashMap;
use std::time::{SystemTime, UNIX_EPOCH};
#[derive(Debug, Clone)]
struct Transaction {
vector_clock: HashMap<String, u64>,
timestamp: f64,
content: String,
}
@bufrr
bufrr / token.sol
Created June 24, 2019 03:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.8+commit.23d335f2.js&optimize=true&gist=
pragma solidity ^0.5.0;
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev Give an account access to this role.
*/
@bufrr
bufrr / Untitled.sol
Created June 24, 2019 03:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.8+commit.23d335f2.js&optimize=true&gist=
// this line is added to create a gist. Empty file is not allowed.

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l