Skip to content

Instantly share code, notes, and snippets.

View abenevaut's full-sized avatar
💬
BiBop! I'm EngelBit!

Antoine B. abenevaut

💬
BiBop! I'm EngelBit!
View GitHub Profile
To create %USERPROFILE%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
```
New-Item -Path $PROFILE -ItemType File -Force
```
sudo apt install -y \
  autoconf automake autopoint bash bison \
  build-essential bzip2 flex g++ g++-multilib \
  gettext git gperf intltool libffi-dev \
  libgdk-pixbuf-2.0-dev libltdl-dev libssl-dev \
  libtool-bin lzip make p7zip-full patch \
  perl python3 python3-mako python3-pkg-resources \
  ruby sed unzip wget xz-utils cmake ninja-build git wget
@abenevaut
abenevaut / main.php
Created December 13, 2025 13:57
`php main.php`
#!/usr/bin/env php
<?php
function main(): int
{
try {
// do stuff
}
catch (\Throwable $exception) {
echo $exception->getMessage() . PHP_EOL;
@abenevaut
abenevaut / index.html
Created September 23, 2025 06:12
pure css snowflakes
<!-- 100 flocons pour un effet dense -->
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
<div class="snowflake"></div>
version: '3' # Specify the Docker Compose version
services:
adguardhome: # Define the service named 'adguardhome'
image: adguard/adguardhome # Use the 'adguard/adguardhome' Docker image
container_name: adguardhome # Set the container name to 'adguardhome'
restart: unless-stopped # Restart the container automatically unless stopped manually
ports: # Map container ports to host ports
# Expose port 53 on TCP and UDP for DNS queries
- "53:53/tcp"

Using repositories type path in monorepository, allows to require a composer vendor as a symlink from directory path.

When you run composer i this create a symlink in vendor/abenevaut/php-sdk from ../php-sdk. Like this, you are able to dev your main project and the vendor at the same time.

Once you are ready to push the project to production, you don't want the symlink anymore and use the latest content of php-sdk vendor. You can specify COMPOSER_MIRROR_PATH_REPOS=1 to copy directories and files, like normal way to use composer package, from php-sdk.

/!\ You have to deploy from a pipeline who have clone the whole monorepository base code.

Github Actions are defined in a YAML file named <workflow name>.yml and are listed in the .github/workflows folder at the root of your project. You can store as many workflows as your project requires.

@abenevaut
abenevaut / # Traefik with SSL on localhost.md
Last active February 12, 2025 20:53
use traefik as local load balancer with SSL
@abenevaut
abenevaut / self-signed-certificate-with-custom-ca.md
Last active February 11, 2025 19:07 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

docker run --rm -it -w /app -v .:/app alpine/openssl genrsa -des3 -out rootCA.key 4096