Skip to content

Instantly share code, notes, and snippets.

View daniel-vera-g's full-sized avatar
💭
Present

Daniel VG daniel-vera-g

💭
Present
View GitHub Profile
@daniel-vera-g
daniel-vera-g / .hyper
Created April 19, 2019 11:52
Hyper terminal config for windows and linux
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
windowSize: [1000, 500],
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@daniel-vera-g
daniel-vera-g / .zshrc
Created April 19, 2019 11:46
zsh shell config for windows
# Path to your dotfiles installation.
export DOTFILES=$HOME/.dotfiles
ZSH_DISABLE_COMPFIX=true
# CONFIG FOR Hyper
# IF BABUN use THIS
# export HOME="/cygdrive/c/Users/danielVg/"
@daniel-vera-g
daniel-vera-g / update-lnd.txt
Last active May 10, 2019 19:20
Update LND to v0.6
# Release at: https://github.com/lightningnetwork/lnd/releases/tag/v0.6-beta
# Stop lnd service
sudo systemctl stop lnd
cd /home/admin/download
# Get all required release files
wget https://github.com/lightningnetwork/lnd/releases/download/v0.6-beta/lnd-linux-armv7-v0.6-beta.tar.gz

Keybase proof

I hereby claim:

  • I am daniel-vera-g on github.
  • I am dvg (https://keybase.io/dvg) on keybase.
  • I have a public key whose fingerprint is 6801 C794 C170 906E C260 8F40 CEBB D7D1 3F1E 01E3

To claim this, I am signing this object:

@daniel-vera-g
daniel-vera-g / asyncJs.js
Created January 20, 2018 06:43
Asynchronous Javascript
/*
Different Methods to make code work the sync-way:
1. Callbacks
- Problem --> Callback hell
2. Promises
- Problem --> Not DRY-Method comfortable
3. Async/Await
*/
/* Examples: