Skip to content

Instantly share code, notes, and snippets.


Sam Ellis elliz

  • Perth, Western Australia
View GitHub Profile
View Get Azure AD
# From Admin PS Shell:
Install-Module -Name AzureAD
Get-AzureADUser -ObjectId "your email address"
elliz / Clickable.svg
Last active Aug 20, 2020
SVG that shows local coords on hover NOTE will not work on github as js script blocked
View Clickable.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
elliz / git notepad editor.bat
Last active Jul 22, 2020
windows command to set Notepad++ as your git editor (for squashes, rebases etc). Make you changes, save, close window.
View git notepad editor.bat
git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
View multiple git

Different git creds for different repos

TODO confirm this for windows

In global gitconfig -- on windows in Program Files/Git/etc

# xxxxxxx Projects
[includeIf "gitdir:<path to dir you're interested in>/**"]
    path = path to specific gitconfig created for this project
View AzureDevOpsGotoSelectedWorkItem.js
// Bookmarklet for Azure DevOps work items
// Select a number, click bookmarklet and open workitem with that id in new window
// Can edit using tools such as
// based on code found at
const path = 'your/path-here'; // usually Domain/projectId
elliz / TampermonkeyFavicon.js
Last active May 11, 2020
Tampermonkey script to update Favicon with data-uri SVG for Chrome 80+ etc
View TampermonkeyFavicon.js
// ==UserScript==
// @name SVG Favicon test
// @namespace
// @version 0.1
// @description Update the favicon on a site
// @author You
// @match
// @grant none
// ==/UserScript==
You can’t perform that action at this time.