Skip to content

Instantly share code, notes, and snippets.

View nemishkor's full-sized avatar

Vitalii nemishkor

  • Ukraine
View GitHub Profile
@nemishkor
nemishkor / colors.qml
Created February 11, 2024 12:09
Sailfish colors
Repeater {
enabled: false
model: ListModel {
ListElement { text: "primaryColor" }
ListElement { text: "darkPrimaryColor" }
ListElement { text: "lightPrimaryColor" }
ListElement { text: "secondaryColor" }
ListElement { text: "secondaryHighlightColor" }
ListElement { text: "darkSecondaryColor" }
ListElement { text: "lightSecondaryColor" }
@nemishkor
nemishkor / monolog.yaml
Last active May 31, 2023 18:34
logger configuration for symfony framework
monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
when@dev:
monolog:
handlers:
main:
type: rotating_file
max_files: 7
@nemishkor
nemishkor / installgapps.sh
Created February 22, 2023 19:42
Sony 10 III (arm64) | Sailfish OS 4.4 | Android 10 | Open GApps pico installation script
#!/bin/sh
set -e
WORKDIR=/home/.aliendalvik_systemimg_patch
TMPWORKDIR="$WORKDIR/tmp"
SQUASHFS_ROOT="$TMPWORKDIR/squashfs-root"
MOUNT_ROOT="$TMPWORKDIR/systemimg_mount"
SYSTEM_IMG=/opt/alien/system.img
ORIG_IMG_FILE=orig_img_path.txt
@nemishkor
nemishkor / installgapps.sh
Last active February 12, 2023 17:06
Sony XA2 | Sailfish OS 4.5 | Android 11 | Open GApps pico installation script
set -e
WORKDIR=/home/.aliendalvik_systemimg_patch
TMPWORKDIR="$WORKDIR/tmp"
SQUASHFS_ROOT="$TMPWORKDIR/squashfs-root"
MOUNT_ROOT="$TMPWORKDIR/systemimg_mount"
SYSTEM_IMG=/opt/alien/system.img
ORIG_IMG_FILE=orig_img_path.txt
FEDORA22_REPO=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Everything/armhfp/os/Packages
@nemishkor
nemishkor / installgapps.sh
Last active February 10, 2023 20:53
Sony 10 II - Dual SIM (arm64) | Sailfish OS 4.5 | Android 11 | Open GApps pico installation script
set -e
WORKDIR=/home/.aliendalvik_systemimg_patch
TMPWORKDIR="$WORKDIR/tmp"
SQUASHFS_ROOT="$TMPWORKDIR/squashfs-root"
MOUNT_ROOT="$TMPWORKDIR/systemimg_mount"
SYSTEM_IMG=/opt/alien/system.img
ORIG_IMG_FILE=orig_img_path.txt
FEDORA22_REPO=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Everything/aarch64/os/Packages
@nemishkor
nemishkor / Encryptor.php
Created March 24, 2022 20:36
Service to decrypt/encrypt data using Symfony secrets
<?php
/** @noinspection PhpIncludeInspection */
declare(strict_types=1);
namespace App\Service;
use Exception;
use LogicException;
use RuntimeException;
use SodiumException;
@nemishkor
nemishkor / SymfonyDataFixture.php
Created June 11, 2021 19:58
Disable id autogeneration in symfony doctrine data fixtures to use static id in tests
<?php
use Doctrine\Persistence\ObjectManager;
$manager->getClassMetaData(Booking::class)->setIdGeneratorType(
\Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_NONE
);