Skip to content

Instantly share code, notes, and snippets.

View florianorineveu's full-sized avatar
:octocat:
Refactor some things

Florian "Ori" Neveu florianorineveu

:octocat:
Refactor some things
View GitHub Profile
@florianorineveu
florianorineveu / arch_sec_install.sh
Created March 27, 2024 00:11 — forked from Th3Whit3Wolf/arch_sec_install.sh
Install arch on btrfs(w/ swapfile) on luks with rEFInd bootloader
#!/bin/bash
# 0 - SSH
# This isn't necessary but if you ssh into the computer all the other steps are copy and paste
# Set a password for root
passwd
# Get network access
iwctl
"""
@florianorineveu
florianorineveu / truncate.php
Created January 11, 2023 12:41
PHP Doctrine ORM - Proper truncate table with association/relation
<?php
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Platforms\AbstractPlatform;
function truncateTable(
Connection $connection,
AbstractPlatform $databasePlatform,
string $entityName
): void
@lyrixx
lyrixx / test.php
Last active July 18, 2024 09:51
Symfony Playgound with its Container and a custom configuration
<?php
use App\Kernel;
require __DIR__.'/vendor/autoload_runtime.php';
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
@Th3Whit3Wolf
Th3Whit3Wolf / arch_sec_install.sh
Last active August 26, 2024 04:24
Install arch on btrfs(w/ swapfile) on luks with rEFInd bootloader
#!/bin/bash
# 0 - SSH
# This isn't necessary but if you ssh into the computer all the other steps are copy and paste
# Set a password for root
passwd
# Get network access
iwctl
"""