Skip to content

Instantly share code, notes, and snippets.

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
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()
@andrepgsilva
andrepgsilva / gist:5423c475aeab7ad11c387bfb0d984ccd
Created October 30, 2020 00:52 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
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}
@andrepgsilva
andrepgsilva / fish_prompt.fish
Last active October 29, 2020 18:31
Fish Functions
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