Skip to content

Instantly share code, notes, and snippets.

View gerrited's full-sized avatar
🧐
Greetings!

Gerrit Edzards gerrited

🧐
Greetings!
View GitHub Profile
@gerrited
gerrited / gist:cd24bbd295dbb8c6209993f77e4e9e0d
Last active June 5, 2024 18:28 — forked from gerrit-amagno/gist:07d75a94fca2b6683f3ecfe8f7c9071d
create a short link with is.gd and copy it to the clipboard - powershell function for notepad $profile - add quotes for the url parameter when calling the function
function short {
param([string]$url)
$escapedUrl = [URI]::EscapeUriString($url)
$shorturl = curl "https://is.gd/create.php?format=simple&url=$escapedUrl"
Write-Output $shorturl
Set-Clipboard $shorturl
}
@gerrited
gerrited / gist:9ab37487ef0750048440f7be00672136
Created February 26, 2024 10:10 — forked from gerrit-amagno/gist:c18c923f280c2886a34bc6572a9e2cac
git add, commit and push - powershell function for notepad $PROFILE
function acp {
param([string]$mes = "Small changes")
git add .
git commit -m $mes
git push
}