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