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
#!/bin/bash | |
DELAY=3600 #in secs - how often restart the script | |
RED_COLOR='\033[0;31m' | |
WITHOU_COLOR='\033[0m' | |
LATEST_BLOCK_HEIGHT=$(omniflixhubd query tendermint-validator-set | jq . | grep block_height | grep -o -E '[0-9]+') | |
YOUR_BLOCK_HEIGHT=$(omniflixhubd status 2>&1 | jq ."SyncInfo"."latest_block_height"| grep -o -E '[0-9]+') | |
DIFF_BLOCK_HEIGHT=$(expr $LATEST_BLOCK_HEIGHT - $YOUR_BLOCK_HEIGHT) | |
DIFF_BLOCK_LIMIT=0 | |
for (( ;; )); do | |
echo -e "LATEST BLOCK HEIGHT: ${LATEST_BLOCK_HEIGHT} \n" |
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
#!/bin/bash | |
LATEST_BLOCK_HEIGHT=$(omniflixhubd query tendermint-validator-set | jq . | grep block_height | grep -o -E '[0-9]+') | |
YOUR_BLOCK_HEIGHT=$(omniflixhubd status 2>&1 | jq ."SyncInfo"."latest_block_height"| grep -o -E '[0-9]+') | |
DIFF_BLOCK_HEIGHT=$(expr $LATEST_BLOCK_HEIGHT - $YOUR_BLOCK_HEIGHT) | |
DIFF_BLOCK_LIMIT=0 | |
for (( ;; )); do | |
echo -e "LATEST BLOCK HEIGHT: ${LATEST_BLOCK_HEIGHT} \n" | |
echo -e "YOUR BLOCK HEIGHT: ${YOUR_BLOCK_HEIGHT} \n" | |
echo -e "Diff are ${DIFF_BLOCK_HEIGHT}" | |
if [ $DIFF_BLOCK_HEIGHT -gt $DIFF_BLOCK_LIMIT ]; then |
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
#!/bin/bash | |
GREEN_COLOR='\033[0;32m' | |
RED_COLOR='\033[0;31m' | |
WITHOU_COLOR='\033[0m' | |
DELEGATOR_ADDRESS='rizon1_BLA_BLA' | |
VALIDATOR_ADDRESS='rizonvaloper1_BLA_BLA' | |
PWD='YOUR_PASSWORD' | |
DELAY=3600 #in secs - how often restart the script | |
ACC_NAME=YOU_WALLET_WITHOUT_QUOTES #example: = ACC_NAME=wallet_qwwq_54 | |
NODE=http://localhost:26657 #change it only if you use another rpc port of your node |
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
import android.view.View | |
import android.webkit.WebView | |
import android.widget.CheckedTextView | |
import android.widget.TextView | |
import androidx.test.espresso.ViewInteraction | |
import androidx.test.espresso.assertion.ViewAssertions | |
import com.agoda.kakao.common.views.KBaseView | |
import com.agoda.kakao.common.views.KView | |
import com.agoda.kakao.screen.Screen | |
import com.agoda.kakao.text.KTextView |
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
#!/bin/sh | |
latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
url="http://chromedriver.storage.googleapis.com/$latest/chromedriver_mac64.zip" | |
wget -P /tmp $url | |
#unzip, copy and etc. |
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
import java.math.BigInteger; | |
import java.util.Comparator; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class StringWithNumberComparator implements Comparator<CharSequence> { | |
public static final StringWithNumberComparator INSTANCE = | |
new StringWithNumberComparator(); | |
private static final Pattern PATTERN = Pattern.compile("(\\D*)(\\d*)"); |
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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.0' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets | |
gem 'uglifier', '>= 1.3.0' | |
# Use CoffeeScript for .coffee assets and views |
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
#!/bin/bash | |
echo "$1" | sudo -S chown -R `whoami` /usr/local | |
npm install -g appium | |
npm install -g authorize-ios | |
echo "$1" | sudo -S authorize-ios | |
echo "$1" | sudo -S xcode-select -s /Applications/Xcode.app/Contents/Developer | |
npm install -g ios-deploy | |
echo "$1" | gem install xcpretty | |
brew install carthage | |
brew install libimobiledevice --HEAD |