This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:ondrej/php | |
sudo apt install -y php8.3 php8.3-dev php8.3-cli php8.3-common php8.3-mbstring php8.3-xml php8.3-bcmath php8.3-curl php8.3-mysql php8.3-zip php8.3-tokenizer php8.3-readline php8.3-intl php8.3-gd php8.3-pgsql php8.3-sqlite3 php8.3-xml php8.3-xdebug unzip | |
sudo vim /etc/php/8.3/cli/conf.d/xdebug.ini | |
Place this code inside the file: | |
[xdebug] | |
xdebug.mode=coverage,debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function downloadImage(imageSrc) { | |
const image = await fetch(imageSrc) | |
const imageBlog = await image.blob() | |
const imageURL = URL.createObjectURL(imageBlog) | |
const link = document.createElement('a') | |
link.href = imageURL | |
link.download = 'image file name here' | |
document.body.appendChild(link) | |
link.click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt | |
if not set -q __fish_prompt_hostname | |
set -g __fish_prompt_hostname (hostname|cut -d . -f 1) | |
end | |
if not set -q __fish_prompt_normal | |
set -g __fish_prompt_normal (set_color normal) | |
end | |
if not set -q __git_cb |