Skip to content

Instantly share code, notes, and snippets.

View florentdestremau's full-sized avatar

Florent Destremau florentdestremau

View GitHub Profile
@florentdestremau
florentdestremau / post-omakub-install.sh
Last active September 11, 2025 11:17
custom omakub version
# shell
sudo apt -y install libnss3-tools
# Adding aliases if they don't already exist
grep -q "alias s=" ~/.bashrc || echo 'alias s="symfony"' >> ~/.bashrc
grep -q "alias sc=" ~/.bashrc || echo 'alias sf="symfony console"' >> ~/.bashrc
grep -q "alias mi=" ~/.bashrc || echo 'alias mi="sf doctrine:migrations:migrate -n"' >> ~/.bashrc
grep -q "alias cc=" ~/.bashrc || echo 'alias cc="sf cache:clear"' >> ~/.bashrc
grep -q "alias st=" ~/.bashrc || echo 'alias st="git status"' >> ~/.bashrc
grep -q "alias t=" ~/.bashrc || echo 'alias t="lazygit"' >> ~/.bashrc
@florentdestremau
florentdestremau / git-aliases-for-bash.sh
Created July 3, 2024 07:30
The list of git alises from Oh My Zsh but ported to bash. You can paste this in your .bashrc or include it from elsewhere
function _omb_prompt_git {
command git "$@"
}
function _omb_prompt_git_status_enabled {
[[ $(_omb_prompt_git config --get-regexp '^(oh-my-zsh|bash-it|oh-my-bash)\.hide-status$' |
awk '$2== "1" {hide_status = 1;} END { print hide_status; }') != "1" ]]
}
# # Note: The same name of a functionis defined in omb-prompt-base. We comment
<?php
class RecipeCalorieCalculator
{
private $apiKey;
private $apiUrl;
public function __construct()
{
$this->apiKey = "sk_eitai7iWahsoonah8aiz0oohi";
@florentdestremau
florentdestremau / style.css
Created November 8, 2025 14:56
Starter CSS kit for small website experimentations
body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
line-height: 1.5;
padding: 1rem;
max-width: 900px;
margin: 0 auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@florentdestremau
florentdestremau / run
Created December 3, 2025 12:36
Add this to any project with a php docker container
#!/bin/sh
arg=$*
if [ -z "$arg" ]; then
docker compose exec -ti php bash
else
docker compose exec -ti php $*
fi;