Skip to content

Instantly share code, notes, and snippets.

View florianorineveu's full-sized avatar
🛰️
Refactor some things

Florian "Ori" Neveu florianorineveu

🛰️
Refactor some things
View GitHub Profile
@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
@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
"""