Skip to content

Instantly share code, notes, and snippets.

@egbertp
egbertp / git-cheat-sheet.md
Created February 10, 2016 17:42
Git cheat sheet

Remove remote tag

$ git push origin :refs/tags/deploy

Create tags

Annotated tags

$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
@egbertp
egbertp / auth.go
Created July 23, 2018 20:05
Authentication done in Buffalo v0.12.3; using Azure AD as the authentication provider
package actions
import (
"math"
"os"
"github.com/gobuffalo/buffalo"
"github.com/gobuffalo/pop"
"github.com/gobuffalo/pop/nulls"
"github.com/gorilla/sessions"
@egbertp
egbertp / keybase.md
Created August 15, 2021 12:54
Keybase proof

Keybase proof

I hereby claim:

  • I am egbertp on github.
  • I am egbertp (https://keybase.io/egbertp) on keybase.
  • I have a public key whose fingerprint is 40B6 9E1B 1381 CBF8 E93C 102A 14FB A86D 71D5 75EE

To claim this, I am signing this object: