Skip to content

Instantly share code, notes, and snippets.

View verbalius's full-sized avatar
🇺🇦

Mykola verbalius

🇺🇦
View GitHub Profile
@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 March 19, 2024 10:56
aws_mfa

Please read this as many times as you can before asking questions

  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' \
@verbalius
verbalius / bucket_access_backupper.json
Last active March 1, 2021 15:20
iam role to backup to s3 bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GetAndAddObjects",
"Effect": "Allow",
"Action": [
"s3:AbortMultipartUpload",
"s3:GetBucketAcl",
"s3:GetBucketLocation",
@verbalius
verbalius / .zshrc
Last active September 14, 2023 11:16
# search for binaries in user folders
export PATH="${HOME}/.bin:${HOME}/Library/Python/3.9/bin:/usr/local/opt/gnu-sed/libexec/gnubin:${HOME}/Bin:${HOME}/Applications:${PATH}"
# path to your oh-my-zsh installation.
export ZSH="${HOME}/.oh-my-zsh"
# nicest and basic theme to build upon
ZSH_THEME="robbyrussell"
# increase the history file
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
HISTSIZE=100000
@verbalius
verbalius / aws-policy-cdn-s3.json
Last active February 12, 2021 12:17
CDN_deployment_aws_policy_CI.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "S3BucketsList",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"
],