Skip to content

Commit

Permalink
metdata: bitbar -> xbar
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Mar 28, 2021
1 parent 6bc5208 commit fd33ce8
Show file tree
Hide file tree
Showing 567 changed files with 3,883 additions and 3,883 deletions.
10 changes: 5 additions & 5 deletions AWS/awsmonthcost.1h.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# <bitbar.title>AWS Cost</bitbar.title>
# <bitbar.version>v1.0.0</bitbar.version>
# <bitbar.author>Sean Luce</bitbar.author>
# <bitbar.author.github>seanluce</bitbar.author.github>
# <bitbar.desc>Show the current months AWS costs.</bitbar.desc>
# <xbar.title>AWS Cost</xbar.title>
# <xbar.version>v1.0.0</xbar.version>
# <xbar.author>Sean Luce</xbar.author>
# <xbar.author.github>seanluce</xbar.author.github>
# <xbar.desc>Show the current months AWS costs.</xbar.desc>

#Assumes AWS CLI is installed, 'pip install awscli' or 'pip3 install awscli', and 'aws configure' has been ran.

Expand Down
14 changes: 7 additions & 7 deletions AWS/cloudwatch-alarms.30s.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-

# <bitbar.title>CloudWatch Alarms Status</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Sebastian Rodriguez</bitbar.author>
# <bitbar.author.github>sebasrp</bitbar.author.github>
# <bitbar.desc>Monitor the status of your CloudWatch Alarms</bitbar.desc>
# <bitbar.dependencies>python, boto3</bitbar.dependencies>
# <bitbar.image>https://i.imgur.com/qiqHX32.png</bitbar.image>
# <xbar.title>CloudWatch Alarms Status</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Sebastian Rodriguez</xbar.author>
# <xbar.author.github>sebasrp</xbar.author.github>
# <xbar.desc>Monitor the status of your CloudWatch Alarms</xbar.desc>
# <xbar.dependencies>python, boto3</xbar.dependencies>
# <xbar.image>https://i.imgur.com/qiqHX32.png</xbar.image>

import boto3

Expand Down
12 changes: 6 additions & 6 deletions AWS/ec2-start-stop.1h.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh

# <bitbar.title>Amazon EC2 Instance Start/Stop</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Francis Mak</bitbar.author>
# <bitbar.author.github>franfran</bitbar.author.github>
# <bitbar.desc>Let you start/stop Amazon EC2 instances</bitbar.desc>
# <bitbar.dependencies>awscli,jq</bitbar.dependencies>
# <xbar.title>Amazon EC2 Instance Start/Stop</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Francis Mak</xbar.author>
# <xbar.author.github>franfran</xbar.author.github>
# <xbar.desc>Let you start/stop Amazon EC2 instances</xbar.desc>
# <xbar.dependencies>awscli,jq</xbar.dependencies>

# Dependencies:
# awscli (https://aws.amazon.com/cli/)
Expand Down
12 changes: 6 additions & 6 deletions AWS/ecs-cluster.10m.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
# <bitbar.title>Amazon ECS Cluster Status</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Bob Zoller</bitbar.author>
# <bitbar.author.github>bobzoller</bitbar.author.github>
# <bitbar.desc>Shows statistics about your Amazon ECS cluster.</bitbar.desc>
# <bitbar.dependencies>awscli,jq</bitbar.dependencies>
# <xbar.title>Amazon ECS Cluster Status</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Bob Zoller</xbar.author>
# <xbar.author.github>bobzoller</xbar.author.github>
# <xbar.desc>Shows statistics about your Amazon ECS cluster.</xbar.desc>
# <xbar.dependencies>awscli,jq</xbar.dependencies>

# Dependencies:
# awscli (https://aws.amazon.com/cli/)
Expand Down
14 changes: 7 additions & 7 deletions AWS/elb.30s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#
# by Jonathan Keith (http://github.com/joncse)
#
# <bitbar.title>AWS ELB Healthy Percentage</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Jonathan Keith</bitbar.author>
# <bitbar.author.github>joncse</bitbar.author.github>
# <bitbar.desc>Shows the percentage of healthy EC2 instances behind an ELB along with a dropdown to display the healthy and unhealthy totals.</bitbar.desc>
# <bitbar.dependencies>awscli</bitbar.dependencies>
# <bitbar.image>http://i.imgur.com/nQ6LzvZ.png</bitbar.image>
# <xbar.title>AWS ELB Healthy Percentage</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Jonathan Keith</xbar.author>
# <xbar.author.github>joncse</xbar.author.github>
# <xbar.desc>Shows the percentage of healthy EC2 instances behind an ELB along with a dropdown to display the healthy and unhealthy totals.</xbar.desc>
# <xbar.dependencies>awscli</xbar.dependencies>
# <xbar.image>http://i.imgur.com/nQ6LzvZ.png</xbar.image>
#
# Dependencies:
# awscli (https://aws.amazon.com/cli/)
Expand Down
14 changes: 7 additions & 7 deletions AWS/sqs-status.1m.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# <bitbar.title>Amazon SQS Queue Status</bitbar.title>
# <bitbar.version>v0.1</bitbar.version>
# <bitbar.author>Brandon Stilson</bitbar.author>
# <bitbar.author.github>bbstilson</bitbar.author.github>
# <bitbar.desc>Shows current queue stats for specified AWS SQS queues. Updates every minute.</bitbar.desc>
# <bitbar.dependencies>awscli,jq</bitbar.dependencies>
# <bitbar.image>https://i.imgur.com/UFhXIL5.png</bitbar.image>
# <xbar.title>Amazon SQS Queue Status</xbar.title>
# <xbar.version>v0.1</xbar.version>
# <xbar.author>Brandon Stilson</xbar.author>
# <xbar.author.github>bbstilson</xbar.author.github>
# <xbar.desc>Shows current queue stats for specified AWS SQS queues. Updates every minute.</xbar.desc>
# <xbar.dependencies>awscli,jq</xbar.dependencies>
# <xbar.image>https://i.imgur.com/UFhXIL5.png</xbar.image>

# Dependencies:
# awscli (https://aws.amazon.com/cli/)
Expand Down
14 changes: 7 additions & 7 deletions Cryptocurrency/99-crypto.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env python
# coding=utf-8
"""
# <bitbar.title>Crypto Ticker ($1USD)</bitbar.title>
# <bitbar.version>v2.0</bitbar.version>
# <bitbar.author>davidosomething</bitbar.author>
# <bitbar.author.github>davidosomething</bitbar.author.github>
# <bitbar.desc>
# <xbar.title>Crypto Ticker ($1USD)</xbar.title>
# <xbar.version>v2.0</xbar.version>
# <xbar.author>davidosomething</xbar.author>
# <xbar.author.github>davidosomething</xbar.author.github>
# <xbar.desc>
# Displays current crypto/$1 from Coinmarketcap
# </bitbar.desc>
# <bitbar.image>https://i.imgur.com/B1nq4AU.jpg</bitbar.image>
# </xbar.desc>
# <xbar.image>https://i.imgur.com/B1nq4AU.jpg</xbar.image>
"""

import json
Expand Down
8 changes: 4 additions & 4 deletions Cryptocurrency/Bitcoin/Bitcurex.10s.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

# <bitbar.title>Bitcurex stats</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Tomasz Wierzbicki tomaszwierzbicki@icloud.com</bitbar.author>
# <bitbar.author.github>Bicki</bitbar.author.github>
# <xbar.title>Bitcurex stats</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Tomasz Wierzbicki tomaszwierzbicki@icloud.com</xbar.author>
# <xbar.author.github>Bicki</xbar.author.github>

bitcoin_icon='iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpmMDk3ZWJmYS0yODA4LTRkNDUtOTYxMC01YTkzNzU4YzY4YmEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REMzOTkzNzA0OEZGMTFFNkJCNTNCODBEODQ4N0M2NzgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REMzOTkzNkY0OEZGMTFFNkJCNTNCODBEODQ4N0M2NzgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDcyMGI2M2QtZjlmNS00MDlmLWE0NGMtYjExZTc3NTZmOWRjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmYwOTdlYmZhLTI4MDgtNGQ0NS05NjEwLTVhOTM3NThjNjhiYSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pokm66sAAAFeSURBVHjatJQ/SwNBEMXvQtRKI6KdFlaWQgqLFFG00EII4geQq2wtkvscdmqhBGxiYaGopBANVkkaSytBsbCIgmITxX9v5R2Mw6ymycDv7nZn9u3dzOyFgW3DYAHMgTEQgltwBqrgIejA8uAEfBl80pf/TyQWi55AGTyCLdBSorFPpKgCL0GGAj3g2njDohbJCuceWAZLYBDkGLMIjg2xbCIyAGrC4T5nXGwyBQpivK6EatQIIk9infWLcVWIvanYKO2pQJsl/wAvfK7Tt8KcSZtOs0+0uR2HWLEJzt3zPmnEj7rLqfFZz6CXHIALFiHZtKLincZPcn05yqi5Vc6vqfmylexXsM8FfeAINMA2x84OdbKt8lf+6HyXtw1f+XVD3oAm2OTh3QUpsGOU/VdDJlZSAVdghpXLcQMtUurk0DreeeLbhkjcld9I6BEbAfNgVvTOHTjnUWnpBd8CDAClYp90pzf2twAAAABJRU5ErkJggg=='

Expand Down
14 changes: 7 additions & 7 deletions Cryptocurrency/Bitcoin/bitcoin.de/last.30s.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# <bitbar.title>Bitcoin.de price ticker</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>alex_rockt</bitbar.author>
# <bitbar.author.github>alex_rockt</bitbar.author.github>
# <bitbar.desc>Shows the current bitcoin price for Bitcoins from Bitcoin.de.</bitbar.desc>
# <bitbar.image>http://i.imgur.com/mP8Vec2.png</bitbar.image>
# <bitbar.dependencies>none</bitbar.dependencies>
# <xbar.title>Bitcoin.de price ticker</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>alex_rockt</xbar.author>
# <xbar.author.github>alex_rockt</xbar.author.github>
# <xbar.desc>Shows the current bitcoin price for Bitcoins from Bitcoin.de.</xbar.desc>
# <xbar.image>http://i.imgur.com/mP8Vec2.png</xbar.image>
# <xbar.dependencies>none</xbar.dependencies>

DATA=$(curl -s "https://bitcoinapi.de/widget/current-btc-price/rate.json")

Expand Down
12 changes: 6 additions & 6 deletions Cryptocurrency/Bitcoin/bitfinex.com/bitfinex_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# Shows (Ask, Bid, Mid, High, Low, Volume and Timestamp from Bitfinex REST API Ticker BTCUSD
#
# <bitbar.title>Bitfinex REST API Ticker BTCUSD plugin</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Roberto Santacroce Martins</bitbar.author>
# <bitbar.author.github>mileschet</bitbar.author.github>
# <bitbar.desc>Shows (Ask, Bid, Mid, High, Low, Volume and Timestamp from Bitfinex REST API Ticker BTCUSD </bitbar.desc>
# <bitbar.image>http://i.imgur.com/V8dABjz.png</bitbar.image>
# <xbar.title>Bitfinex REST API Ticker BTCUSD plugin</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Roberto Santacroce Martins</xbar.author>
# <xbar.author.github>mileschet</xbar.author.github>
# <xbar.desc>Shows (Ask, Bid, Mid, High, Low, Volume and Timestamp from Bitfinex REST API Ticker BTCUSD </xbar.desc>
# <xbar.image>http://i.imgur.com/V8dABjz.png</xbar.image>
#
# by Roberto Santacroce Martins
# Based on Coinbase bitbar plugin by Mat Ryer
Expand Down
12 changes: 6 additions & 6 deletions Cryptocurrency/Bitcoin/bitfinex.com/bitfinex_btcusd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# Shows last BTC price (in USD) on Bitfinex BTCUSD Order Book.
#
# <bitbar.title>Bitfinex BTCUSD last price</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Roberto Santacroce Martins</bitbar.author>
# <bitbar.author.github>mileschet</bitbar.author.github>
# <bitbar.desc>Shows last BTC price (in USD) on Bitfinex BTCUSD Order Book.</bitbar.desc>
# <bitbar.image>http://i.imgur.com/AJU4wmc.png</bitbar.image>
# <xbar.title>Bitfinex BTCUSD last price</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Roberto Santacroce Martins</xbar.author>
# <xbar.author.github>mileschet</xbar.author.github>
# <xbar.desc>Shows last BTC price (in USD) on Bitfinex BTCUSD Order Book.</xbar.desc>
# <xbar.image>http://i.imgur.com/AJU4wmc.png</xbar.image>
#
# by Roberto Santacroce Martins
# Based on Coinbase bitbar plugin by Mat Ryer
Expand Down
10 changes: 5 additions & 5 deletions Cryptocurrency/Bitcoin/bitoex.com/bitoex-buy-and-sell.10s.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
# <bitbar.title>BitoEX Buy and Sell</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Ryan Chen</bitbar.author>
# <bitbar.author.github>ryanchentw</bitbar.author.github>
# <bitbar.desc>Show latest buy and seller values in TWD from BitoEX. BitoEX is a popular BTC exchange in TW https://www.bitoex.com</bitbar.desc>
# <xbar.title>BitoEX Buy and Sell</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Ryan Chen</xbar.author>
# <xbar.author.github>ryanchentw</xbar.author.github>
# <xbar.desc>Show latest buy and seller values in TWD from BitoEX. BitoEX is a popular BTC exchange in TW https://www.bitoex.com</xbar.desc>


regexp='"([0-9,]+)","([0-9,]+)"'
Expand Down
12 changes: 6 additions & 6 deletions Cryptocurrency/Bitcoin/bitstamp.net/last.10s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# Shows last BTC price (in USD) on Bitstamp exchange.
#
# <bitbar.title>Bitstamp last price</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Damien Lajarretie</bitbar.author>
# <bitbar.author.github>dlajarretie</bitbar.author.github>
# <bitbar.desc>Shows last BTC price (in USD) on Bitstamp exchange.</bitbar.desc>
# <bitbar.image>http://i.imgur.com/aQCqOW6.png</bitbar.image>
# <xbar.title>Bitstamp last price</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Damien Lajarretie</xbar.author>
# <xbar.author.github>dlajarretie</xbar.author.github>
# <xbar.desc>Shows last BTC price (in USD) on Bitstamp exchange.</xbar.desc>
# <xbar.image>http://i.imgur.com/aQCqOW6.png</xbar.image>
#
# by Damien Lajarretie
# Based on Coinbase bitbar plugin by Mat Ryer
Expand Down
14 changes: 7 additions & 7 deletions Cryptocurrency/Bitcoin/bitx.co/buy-and-sell.1m.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python
# <bitbar.title>BitX Buy and Sell</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Konrad Blum</bitbar.author>
# <bitbar.author.github>kblum</bitbar.author.github>
# <bitbar.desc>Shows latest buy and sell values (in ZAR) for Bitcoins on the BitX exchange.</bitbar.desc>
# <bitbar.image>https://cloud.githubusercontent.com/assets/868608/24828465/e257fc20-1c5d-11e7-9641-5abed32bcb9b.png</bitbar.image>
# <bitbar.dependencies>python</bitbar.dependencies>
# <xbar.title>BitX Buy and Sell</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Konrad Blum</xbar.author>
# <xbar.author.github>kblum</xbar.author.github>
# <xbar.desc>Shows latest buy and sell values (in ZAR) for Bitcoins on the BitX exchange.</xbar.desc>
# <xbar.image>https://cloud.githubusercontent.com/assets/868608/24828465/e257fc20-1c5d-11e7-9641-5abed32bcb9b.png</xbar.image>
# <xbar.dependencies>python</xbar.dependencies>


import urllib2
Expand Down
8 changes: 4 additions & 4 deletions Cryptocurrency/Bitcoin/btc.5m.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

# <bitbar.title>BTC</bitbar.title>
# <bitbar.image>http://i.imgur.com/V8dABjz.png</bitbar.image>
# <bitbar.author>Tim Paine</bitbar.author>
# <bitbar.author.github>theocean154</bitbar.author.github>
# <xbar.title>BTC</xbar.title>
# <xbar.image>http://i.imgur.com/V8dABjz.png</xbar.image>
# <xbar.author>Tim Paine</xbar.author>
# <xbar.author.github>theocean154</xbar.author.github>
#

# Bitfinex
Expand Down
12 changes: 6 additions & 6 deletions Cryptocurrency/Bitcoin/coinbase.com/accounts.1h.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
# <bitbar.title>Coinbase.com Account Balances</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.dependencies>ruby</bitbar.dependencies>
# <bitbar.author>Bryan Stone</bitbar.author>
# <bitbar.author.github>aegixx</bitbar.author.github>
# <bitbar.desc>Shows your balances in BTC & USD. Be sure you add you API key & secret.</bitbar.desc>
# <xbar.title>Coinbase.com Account Balances</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.dependencies>ruby</xbar.dependencies>
# <xbar.author>Bryan Stone</xbar.author>
# <xbar.author.github>aegixx</xbar.author.github>
# <xbar.desc>Shows your balances in BTC & USD. Be sure you add you API key & secret.</xbar.desc>

require 'coinbase/wallet'

Expand Down
10 changes: 5 additions & 5 deletions Cryptocurrency/Bitcoin/coinbase.com/balance.1h.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
# <bitbar.title>Coinbase.com Your Balance</bitbar.title>
# <bitbar.version>v1.1</bitbar.version>
# <bitbar.author>Mat Ryer</bitbar.author>
# <bitbar.author.github>matryer</bitbar.author.github>
# <bitbar.desc>Shows your balance in BTC. Be sure you add your API & account details.</bitbar.desc>
# <xbar.title>Coinbase.com Your Balance</xbar.title>
# <xbar.version>v1.1</xbar.version>
# <xbar.author>Mat Ryer</xbar.author>
# <xbar.author.github>matryer</xbar.author.github>
# <xbar.desc>Shows your balance in BTC. Be sure you add your API & account details.</xbar.desc>

API_KEY="YOUR_API_KEY"
API_SECRET="YOUR_API_SECRET"
Expand Down
10 changes: 5 additions & 5 deletions Cryptocurrency/Bitcoin/coinbase.com/buy-and-sell.10s.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
# <bitbar.title>Coinbase.com Buy and Sell</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Mat Ryer</bitbar.author>
# <bitbar.author.github>matryer</bitbar.author.github>
# <bitbar.desc>Shows latest Buy and Sell values (in USD) for Bitcoins in the Coinbase exchange.</bitbar.desc>
# <xbar.title>Coinbase.com Buy and Sell</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Mat Ryer</xbar.author>
# <xbar.author.github>matryer</xbar.author.github>
# <xbar.desc>Shows latest Buy and Sell values (in USD) for Bitcoins in the Coinbase exchange.</xbar.desc>

echo -n "Buy: $"; curl -s "https://coinbase.com/api/v1/prices/buy?currency=USD" | egrep -o ',"amount":"[0-9]+(\.)?([0-9]{0,2}")?' | sed 's/,"amount"://' | sed 's:^.\(.*\).$:\1:'
echo -n "Sell: $"; curl -s "https://coinbase.com/api/v1/prices/sell?currency=USD" | egrep -o ',"amount":"[0-9]+(\.)?([0-9]{0,2}")?' | sed 's/,"amount"://' | sed 's:^.\(.*\).$:\1:'
10 changes: 5 additions & 5 deletions Cryptocurrency/Bitcoin/coinbase.com/buy.10s.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# <bitbar.title>Coinbase.com Buy</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Mat Ryer</bitbar.author>
# <bitbar.author.github>matryer</bitbar.author.github>
# <bitbar.desc>Shows latest buy values (in USD) for Bitcoins in the Coinbase exchange.</bitbar.desc>
# <xbar.title>Coinbase.com Buy</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Mat Ryer</xbar.author>
# <xbar.author.github>matryer</xbar.author.github>
# <xbar.desc>Shows latest buy values (in USD) for Bitcoins in the Coinbase exchange.</xbar.desc>

echo -n "Buy: $"; curl -s "https://coinbase.com/api/v1/prices/buy?currency=USD" | egrep -o ',"amount":"[0-9]+(\.)?([0-9]{0,2}")?' | sed 's/,"amount"://' | sed 's:^.\(.*\).$:\1:'
10 changes: 5 additions & 5 deletions Cryptocurrency/Bitcoin/coinbase.com/sell.10s.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# <bitbar.title>Coinbase.com Buy</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Mat Ryer</bitbar.author>
# <bitbar.author.github>matryer</bitbar.author.github>
# <bitbar.desc>Shows latest sell values (in USD) for Bitcoins in the Coinbase exchange.</bitbar.desc>
# <xbar.title>Coinbase.com Buy</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Mat Ryer</xbar.author>
# <xbar.author.github>matryer</xbar.author.github>
# <xbar.desc>Shows latest sell values (in USD) for Bitcoins in the Coinbase exchange.</xbar.desc>

echo -n "Sell: $"; curl -s "https://coinbase.com/api/v1/prices/sell?currency=USD" | egrep -o ',"amount":"[0-9]+(\.)?([0-9]{0,2}")?' | sed 's/,"amount"://' | sed 's:^.\(.*\).$:\1:'
Loading

0 comments on commit fd33ce8

Please sign in to comment.