Skip to content

Instantly share code, notes, and snippets.

View lolgolflol's full-sized avatar

Watcharapon Sarnsanit lolgolflol

View GitHub Profile
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@miguelmota
miguelmota / sha256.cpp
Last active October 16, 2019 15:52
EOS C++ SHA256 hash
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
#include <eosiolib/crypto.h>
using namespace eosio;
std::string data = "hello";
checksum256 digest;
sha256(&data[0], data.size(), &digest);
printhex(&digest, sizeof(digest)); // 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
@obbaeiei
obbaeiei / setting-mac.txt
Last active August 17, 2018 07:36
repeat keys mac os x
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
#eval $(thefuck --alias)
function myPk() {
cd ~/workspaces/obbaeiei/my-code;
node -e "a = require('stellar-sdk').Keypair.fromSecret(\"$1\").publicKey(); console.log(a)";
}
alias work1='cd ~/workspaces/thesixnetwork/six-web-wallet'
alias work2='cd ~/go/src/github.com/thesixnetwork/six.network'
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 25, 2024 07:26
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname