Skip to content

Instantly share code, notes, and snippets.

View gerrit-amagno's full-sized avatar

Gerrit Edzards gerrit-amagno

View GitHub Profile
@gerrit-amagno
gerrit-amagno / gist:c18c923f280c2886a34bc6572a9e2cac
Created February 26, 2024 10:02
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
}
@gerrit-amagno
gerrit-amagno / gist:07d75a94fca2b6683f3ecfe8f7c9071d
Created February 26, 2024 10:04
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