This file contains hidden or 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
https://theeye.io | |
theeye es la única plataforma de automatización de procesos que garantiza un retorno de inversión en menos de 6 meses | |
Theeye is the only process automation platform that guarantees a return on investment in less than 6 months | |
rpa, robotics, process, automation, devopshub, latam, argentina, colombia, peru, chile, spain, espaa, us, united states, usa, europe, uk, england, brasil, mexico, ia, artificial, intelligence, machine, learning, digital, bpm, erp |
This file contains hidden or 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 | |
token="YourToken" | |
user="YourUser" | |
id="YourID" | |
startsDay="2018-02-01" | |
endsDay="2018-02-28" | |
users=$(curl -s -H "Authorization: Token token=$token" \ | |
-H "User-Agent: Theeye ($user)" \ | |
https://www.tickspot.com/$id/api/v2/users|jq '.[]| "\(.id) \(.email)"') | |
for interactano in ${users//" "/"|"} |
This file contains hidden or 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 | |
if [ $# -ne 2 ];then echo "Run $0 db-instance-identifier freeStorageLimit" ; exit ; fi | |
database=$1 | |
limit=$2 | |
region=$(/usr/bin/curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk -F\" '{print $4}') | |
conv=$(echo '1024^3' | bc) | |
freeStorage=$(aws cloudwatch --region ${region} get-metric-statistics --start-time $(date -u +%FT%T --date '1 minute ago') --end-time $(date -u +%FT%T) --period 60 --namespace AWS/RDS --statistics Maximum --dimensions Name=DBInstanceIdentifier,Value=${database} --metric-name FreeStorageSpace | jq -r '.Datapoints[].Maximum') |
This file contains hidden or 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 | |
version="1.14.5" | |
wget https://github.com/btc1/bitcoin/releases/download/v$version/bitcoin-$version-x86_64-linux-gnu.tar.gz | |
wget https://github.com/btc1/bitcoin/releases/download/v$version/SHA256SUMS | |
sha256sum=$(sha256sum bitcoin-$version-x86_64-linux-gnu.tar.gz|awk '{ print $1 }') | |
grep $sha256sum SHA256SUMS | |
if [ $? -eq 0 ];then | |
#Install | |
tar zxvf bitcoin-$version-x86_64-linux-gnu.tar.gz | |
#Replace bitcoind binary |
This file contains hidden or 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
read -d. uptime < /proc/uptime | |
if (( uptime > 1 )) | |
then | |
echo failure | |
else | |
echo normal | |
fi |
This file contains hidden or 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 | |
cd $1 | |
lastPercentageInteger=$(tail $2|grep Percentage|cut -d':' -f6|tail -n1|cut -d'.' -f1|tr -d ' ') | |
if [ $lastPercentageInteger -lt 99 ];then | |
echo "Percentage is $lastPercentageInteger which is lower than 99"; | |
echo failure | |
else | |
echo normal | |
fi |
This file contains hidden or 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 | |
#This script gets a minum percent as a warning threshold for monitoring ETH value in USD decrease. | |
#Receives | |
# { | |
# "ask": 156.36401186, | |
# "bid": 156.08050201, | |
# "high": "160", | |
# "last": "156.38627418", | |
# "low": "125.27376294", | |
# "timestamp": "1495427025", |
This file contains hidden or 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 | |
limit=$1 | |
file=$2 | |
echo "Checking $file . Limit $limit" | |
echo | |
# remove trash lines and apply format | |
# output get out in two columns NAME > VALUE |
This file contains hidden or 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 | |
# | |
# Script Parameters. | |
# ============== | |
# @param $1 device | |
# @param $2 limit | |
# @param $3 column | |
# | |
# do man iostat for more data | |
# columns |
This file contains hidden or 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
var exec = require('child_process').exec; | |
var url = process.argv[2]; | |
var threshold = parseFloat(process.argv[3]); | |
var eventName; | |
var state; | |
var cmd = 'curl -o /dev/null -s -w %{time_total} ' + url; |
NewerOlder