Skip to content

Instantly share code, notes, and snippets.

View lotyp's full-sized avatar

Andrij Orlenko lotyp

View GitHub Profile
@lotyp
lotyp / com.apple.dock.plist
Created May 13, 2022 20:37
Output of default com.apple.dock.plist on Mac OS Monterey.
defaults read com.apple.dock.plist
{
"last-analytics-stamp" = (
"672952122.153589"
);
loc = "en_US:US";
"mod-count" = 3;
"persistent-apps" = (
{
GUID = 255427389;
@lotyp
lotyp / gettext-symlinks.sh
Created May 20, 2022 13:35
Installing gettext manually on MacOS.
@lotyp
lotyp / smtp_password.py
Last active October 15, 2023 14:15 — forked from danew/ses-smtp-password.py
Ansible filter to create AWS SES SMTP password from aws access secret
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import base64
import hmac
import hashlib
SMTP_REGIONS = [
'us-east-2', # US East (Ohio)
'us-east-1', # US East (N. Virginia)
'us-west-2', # US West (Oregon)
@lotyp
lotyp / smtp_password_cli.py
Created November 28, 2023 12:14
Generate AWS SES passwords from AWS IAM Secret Keys
#!/usr/bin/env python3
import hmac
import hashlib
import base64
import argparse
SMTP_REGIONS = [
"us-east-2", # US East (Ohio)
"us-east-1", # US East (N. Virginia)
@lotyp
lotyp / DataGridFactoryTest.php
Created March 25, 2024 15:31
Using spiral/data-grid in Laravel.
<?php
declare(strict_types=1);
namespace WayOfDev\Tests;
use Database\Factories\PostFactory;
use Illuminate\Support\Facades\Artisan;
use PHPUnit\Framework\Attributes\Test;
use Psr\Container\ContainerExceptionInterface;
@lotyp
lotyp / README.md
Created April 23, 2024 15:03
PHPStan Level Badges

PHPStan Level 0 PHPStan Level 1 PHPStan Level 2 PHPStan Level 3 PHPStan Level 4 PHPStan Level 5 PHPStan Level 6 PHPStan Level 7 PHPStan Level 8 ![PHPStan