Skip to content

Instantly share code, notes, and snippets.

View verbalius's full-sized avatar
🇺🇦

Mykola verbalius

🇺🇦
View GitHub Profile
@verbalius
verbalius / minimalist-enduro-mtb-workout.md
Last active April 22, 2025 08:50
Build strength and endurance for enduro mountain biking using minimal equipment. This workout is designed to be done at home or outdoors with limited space and equipment.

Minimalist Enduro MTB Strength Workout

⚠️ If it's not a crazy storm or travel, GO RIDE! ⚠️

  • Purpose: Build strength and endurance for enduro mountain biking using minimal equipment. This workout is designed to be done at home or outdoors with limited space and equipment.
  • Equipment: >=5L bottle of water / resistance bands. (optional but recommended) pull-up bar if you can find one outside.
  • Format: 2–4 rounds, minimal rest
  • Extras: "+" Means extra if you managed to find a pull-up bar or something to hang on.

@verbalius
verbalius / precious-dark.itermcolors
Last active February 3, 2025 12:14
precious themes for iterm2
<!-- source https://github.com/precious-themes/precious-themes-vscode/tree/master -->
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Red Component</key>
<real>0.7215686274509804</real>
<key>Green Component</key>
<real>0.7176470588235294</real>
@verbalius
verbalius / tax-calc.py
Last active September 25, 2024 17:11
simple tax calculator for self-employed recibo verde in Portugal
# import time
# Tax brackets and rates based on the Portugal 2024 rates from PwC website
brackets = [
# lower, upper, rate, deductible
(0, 7703, 0.1325, 0),
(7703, 11623, 0.18, 365.89),
(11623, 16472, 0.23, 947.04),
(16472, 21321, 0.26, 1441.14),
(21321, 27146, 0.3275, 2880.47),
@verbalius
verbalius / jpg2avif.sh
Last active April 20, 2024 00:44
convert jpegs to avif
#!/usr/bin/env bash
read -p "Did you make a backup of $1? (y/n) " -n 1 -r
set -eo pipefail
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo
else
echo
echo "Please make a backup of $1 before running this script."
exit 1
fi
@verbalius
verbalius / a-better-film-simulation.md
Last active December 26, 2023 17:33
Better Film simulations (fuji, 2-step process)

Better Film Simulations (2-step process)

1. Shoot JPEGs with standard colour and these settings (for Fuji):

pro tip: it can be any other camera or picture, just make sure you expose properly a neutral looking image

extra pro tip: if you need to add grain you can use this layer

  • Image size: Usually M 3:2 is the best (also shoot RAW alongside to fix problems if sooc-JPEG is not what you wanted)
  • Film Simulation: Provia Standard
@verbalius
verbalius / fuji_cook_book.md
Created May 25, 2023 14:51
Fuji Film Recipes by me

My FujiFilm Simulation Recipes

Made for X-Trans IV Sensor

MyStyle

Setting Value
Exposure Compensation 0 to +1
Image size S or M
@verbalius
verbalius / enforсe_mfa_aws_policy.json
Last active September 1, 2022 09:09
enforce_mfa_aws_policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAllUsersToListAccounts",
"Effect": "Allow",
"Action": [
"iam:ListAccountAliases",
"iam:ListUsers",
"iam:GetAccountPasswordPolicy",
@verbalius
verbalius / README.md
Last active May 22, 2025 08:50
aws_mfa

! Please read this very carefully !

  1. Make sure you have aws cli installed
  2. Enable MFA device in AWS with name as your username
  3. Create two profiles in the file ~/.aws/credentials. Rename CHANGEME to your project name
[CHANGEME_orig]
 aws_access_key_id = your_key_id
 aws_secret_access_key = your_secret_key
[CHANGEME]
@verbalius
verbalius / terraform_role_policy.json
Last active August 19, 2021 11:42
terraform role policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "IAM",
"Effect": "Allow",
"Action": [
"sts:AssumeRole",
"sts:TagSession",
"sts:SetSourceIdentity"
@verbalius
verbalius / rendertron.Dockerfile
Last active March 30, 2021 17:52
Rendertron in Docker with alpine linux
FROM node:14-alpine
# Refined by verbalius
# For rendertron documentation please refer to https://github.com/GoogleChrome/rendertron
# This Dockerfile was build by example from https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-on-alpine
RUN apk add --no-cache \
'chromium=81.0.4044.113-r0' \
'nss=3.48-r0' \
'freetype=2.10.1-r1' \
'freetype-dev=2.10.1-r1' \
'harfbuzz=2.6.4-r0' \