Skip to content

Instantly share code, notes, and snippets.

View eugenestarchenko's full-sized avatar
🇺🇦
#StandWithUkraine

Eugene Starchenko eugenestarchenko

🇺🇦
#StandWithUkraine
View GitHub Profile
@br3ndonland
br3ndonland / github-actions-notes.md
Last active July 14, 2024 00:41
Getting the Gist of GitHub Actions
@eugenestarchenko
eugenestarchenko / 30-income-calculon.pl
Created March 6, 2019 18:38 — forked from avar/30-income-calculon.pl
Calculate your income in The Netherlands with and without a 30% ruling.
# 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
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
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)
@ahume
ahume / kuber.yaml
Last active March 4, 2021 22:33
Example Kuber file used to configure kuber-cli
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
@vcastellm
vcastellm / ecs-run
Last active April 15, 2024 17:55
Run task and wait for result in AWS ECS
#!/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:
@santisbon
santisbon / Update-branch.md
Last active March 21, 2024 15:50
Deploying from #Git branches adds flexibility. Bring your feature branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

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.

@mirajavora
mirajavora / cloudformation-aws-elasticsearch.json
Last active April 4, 2021 15:20
Elastic Search AWS Cloudformation Script
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Creates auto scaling Elastic Search Cluster",
"Parameters" : {
"InstanceType" : {
"Description" : "Elastic Search node instance type",
"Type" : "String",
"Default" : "t2.small",
@chrismdp
chrismdp / s3.sh
Last active March 5, 2024 12:57
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# 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