I hereby claim:
- I am xbirdfr on github.
- I am xbird (https://keybase.io/xbird) on keybase.
- I have a public key whose fingerprint is 1B10 C232 189C C395 FA21 2B99 9464 B960 4AE1 6792
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| sudo apt remove speedtest | |
| sudo rm -f /etc/apt/sources.list.d/speedtest.list | |
| sudo apt update | |
| sudo mkdir /opt/speedtest | |
| sudo chown pi:pi /opt/speedtest | |
| cd /opt/speedtest | |
| wget https://install.speedtest.net/app/cli/ookla-speedtest-1.1.1-linux-armhf.tgz | |
| gunzip ookla-speedtest-1.1.1-linux-armhf.tgz | |
| tar xvf ookla-speedtest-1.1.1-linux-armhf.tar | |
| chmod +x speedtest |
| // src\Security\FormAuthenticator.php | |
| // auto generated symfony cli | |
| //edit the file and add ' new RememberMeBadge(), ' into the 'new PasswordCredentials' array | |
| public function authenticate(Request $request): PassportInterface | |
| { | |
| $email = $request->request->get('email', ''); | |
| $request->getSession()->set(Security::LAST_USERNAME, $email); |
| //Xbird.me Bootstrap v5.3+ javascript theme switcher | |
| //get current system theme | |
| function themeGetSystem() { | |
| return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "dark" : "light"; | |
| } | |
| //get default website theme ( data-bs-theme on <body>) or return auto if not defined | |
| function themeGetDefault() { | |
| return document.body.dataset.bsTheme ?? 'auto'; |
| //FROM https://superuser.com/a/44187 | |
| x(){ | |
| if [ -f $1 ] ; then | |
| case $1 in | |
| *.tar.bz2) tar xvjf $1 ;; | |
| *.tar.gz) tar xvzf $1 ;; | |
| *.bz2) bunzip2 $1 ;; | |
| *.rar) unrar x $1 ;; | |
| *.gz) gunzip $1 ;; |
| {# templates/form_layout.html.twig #} | |
| {%- block form_label -%} | |
| {%- if required and not disabled -%} | |
| {%- set label_attr = label_attr|merge({ class: 'after:content-[\'*\'] after:ml-0.5 after:text-red-600' }) -%} | |
| {%- endif -%} | |
| {{- parent() -}} | |
| {%- endblock form_label -%} |
| With https://github.com/symfony/ux-icons allowing us to have a nice way to handle icons, | |
| I wanted a simple way to update my icons when i want to. | |
| Like if i use a "material-symbols:home" for my home icon, but after I find the "solar:home-bold" more convenient for my app, | |
| I don't want to go back on each file where the home icon is used. | |
| So I write this : | |
| - config\uxIconsAlias.yaml store alias for icons | |
| - and " ux_icon_alias( ) " get the value of the alias, so i just need to do : {{ ux_icon(ux_icon_alias('home')) }} |
| composer require symfonycasts/tailwind-bundle doctrine/doctrine-bundle doctrine/orm symfony/twig-bundle symfony/asset-mapper symfony/asset symfony/twig-pack symfony/ux-turbo | |
| composer require --dev symfony/maker-bundle symfony/profiler-pack |