Tutorial and tips for GitHub Actions workflows
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
# To check if this is up-to-date with the tax rates go to | |
# http://www.expatax.nl/tax-rates-2016.php and see if there's anything | |
# newer there. | |
# | |
# I make no guarantees that any of this is correct. I calculated this | |
# at the time and have been updating it when new tax rates come along | |
# because people keep finding this useful. | |
# | |
# There's also an interactive JS version of this created by | |
# @stevermeister at |
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
chain | throughput | time | |
---|---|---|---|
bitcoin_cash | 281 tx/sec | 2018-11-10 14:34:35 UTC | |
dash | 67 tx/sec | 2018-11-11 10:21:44 UTC | |
dogecoin | 55 tx/sec | 2014-08-05 02:53:06 UTC | |
litecoin | 27 tx/sec | 2018-09-03 22:38:57 UTC | |
ethereum | 27 tx/sec | 2018-10-06 07:49:21 UTC | |
ethereum_classic | 24 tx/sec | 2019-01-13 08:09:56 UTC | |
bitcoin | 22 tx/sec | 2015-08-01 01:06:41 UTC | |
zcash | 8 tx/sec | 2018-08-03 02:08:54 UTC |
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
Clone botocore and run `git rev-list --all > commit_list.txt` to get a chrological list of the hashes. | |
Then I manually installed https://github.com/nok/git-walk but had to modify it to use my list instead of generating it's own each time because it was going into a loop. | |
So `read_commit_ids` looks like this: | |
``` | |
def read_commit_ids(): | |
#cmd = 'git rev-list --all' | |
#log = subp.check_output(cmd.split()).strip() | |
#log = [line.strip() for line in log.split('\n')] | |
with open("commit_list.txt") as f: |
What is DNS?
- DNS is used to convert human-friendly domain names (abantej.github.io) into an internet protocol (185.199.108.153) address
- IP addresses are used by computers to identify each other on the network. IP addresses commonly come in 2 different forms, IPv4 and IPv6
IPv4
- 32 bit field with over 4 billion different addresses (4,294,967,296)
IPv6
- 128 bit field with 340 undecillion addresses (340,282,366,920,938,463,463,374,607,431,768,211,456)
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
service: inventory-service | |
description: gRPC service for querying and updating data from the core inventory. | |
visibility: cluster | |
documentation: https://docs.google.com/12345 | |
codeRepository: https://github.com/BrandwatchLtd/inventory-service | |
deploy: | |
cluster: prod-maurice-aws | |
namespace: default | |
restartPods: true |
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
#!/usr/bin/env bash | |
set -e | |
function usage() { | |
set -e | |
cat <<EOM | |
##### ecs-run ##### | |
Simple script for running tasks on Amazon Elastic Container Service | |
One of the following is required: | |
Required arguments: |
First we'll update your local master
branch. Go to your local project and check out the branch you want to merge into (your local master
branch)
$ git checkout master
Fetch the remote, bringing the branches and their commits from the remote repository.
You can use the -p
, --prune
option to delete any remote-tracking references that no longer exist in the remote. Commits to master
will be stored in a local branch, remotes/origin/master
.
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Creates auto scaling Elastic Search Cluster", | |
"Parameters" : { | |
"InstanceType" : { | |
"Description" : "Elastic Search node instance type", | |
"Type" : "String", | |
"Default" : "t2.small", |
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
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
NewerOlder