This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const BigNumber = require('bignumber.js'); | |
const lcdEndpoint = 'http://localhost:1317'; | |
const rpcEndpoint = 'http://localhost:26657'; | |
const nilVote = 'nil-Vote'; | |
const lcd = axios.create({ | |
baseURL: lcdEndpoint, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ubiquiti Unifi Controller on Ubuntu 20.04. | |
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020. | |
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps. | |
sudo apt update | |
sudo apt install --yes apt-transport-https | |
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list | |
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.sudoku; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import io.skygear.meta.RecordWrapper; | |
import io.skygear.skygear.Record; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[homebrew setting for installing to each user directory] | |
#[ENV: put them into "$HOME/.bash_profile"] | |
HOMEBREW=$HOME/.brew | |
export PATH=$HOMEBREW/bin:$PATH | |
export LD_LIBRARY_PATH=$HOMEBREW/lib:/usr/lib | |
export DYLD_FALLBACK_LIBRARY_PATH=$HOMEBREW/lib | |
export C_INCLUDE_PATH=$HOMEBREW/include | |
export CPLUS_INCLUDE_PATH=$HOMEBREW/include |