Laravel has sqlite3 as the default database driver. And you can use dashes inside the directory.
Laravel
$ laravel new my-projectSe usa https://github.com/verzly/mise-php
# Install the plugin
# NOTE: If you are not contributing and want to use stable releases, always use the `#latest` suffix to avoid tracking the development branch.
mise plugin install php https://github.com/verzly/mise-php#latest
# First install
mise use -g php@latestFrom an interaction with Github Support regarding phantom notifications (ones that I could not mark as read).
Using gh cli.
Running the script to mark notifications as "read" is generally considered safe, as it does not
remove the notification itself, only updates the status of the notification. Here is the script:
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \| #!/usr/bin/bashs | |
| # Save it in /usr/local/bin/discord-update | |
| # And chmod +x /usr/local/bin/discord-update | |
| # Run it when discord ask for updates | |
| # URL to check for the latest Discord version for Linux in .deb format | |
| update_url="https://discord.com/api/download?platform=linux&format=deb" | |
| # Get the actual download URL which contains the version number | |
| download_url=$(curl -w "%{url_effective}" -ILSs "$update_url" -o /dev/null) |
https://rm4n0s.github.io/posts/3-error-handling-challenge/
The challenge is simple to understand. Print a message to the user based on the path of function calls that produced the error, and not based on the error itself.
print three different messages based on
| <?php | |
| /* | |
| * This function copy $source directory and all files | |
| * and sub directories to $destination folder | |
| * https://gist.github.com/gserrano/4c9648ec9eb293b9377b | |
| */ | |
| function recursive_copy($src,$dst) { | |
| $dir = opendir($src); |
For anyone who develops software on Windows (but needs quick access to a Linux terminal), here's a quick and easy way to get it with MSYS2.
Before starting, install "MSYS2" with default settings.
HKEY_CLASSES_ROOT\Directory\Background\shell"New>Key. Call this key MSYS2.New>Key. Call this key commandcommand and then double-click on (Default). Set 'Value data' to "C:\msys64\msys2_shell.cmd" "-here"| package main | |
| import ( | |
| "fmt" | |
| "sync/atomic" | |
| "time" | |
| ) | |
| type SecondsCounter struct { | |
| count int32 |
| // ==UserScript== | |
| // @name PIU.Phoenix.PlayData | |
| // @namespace https://ninjas.cl | |
| // @version 2023-12-25 | |
| // @description Save data from Phoenix Gameplays to local csv | |
| // @author Camilo Castro <clsource> | |
| // @match https://piugame.com/my_page/recently_played.php | |
| // @match https://www.piugame.com/my_page/recently_played.php | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=piugame.com | |
| // @grant none |
Hello! I am Camilo from Chile 🇨🇱. I am using a translator. I hope this information is useful.
In this article we will see how to install Elixir in Debian 12 using asdf vm.
Debian (GNU/Linux in general) allow us to use really old hardware. I managed to revive an old Dell Latitude e430 (from 2007) and use the latest version of Erlang, Elixir and Firefox in it.
It's magical to use old machines and give them a new life, reducing the electronic waste and helping the planet.