This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
shortlog = log --pretty=oneline --abbrev-commit | |
alias = ! git config --get-regexp ^alias\\. | |
l = log --pretty=format:"%C(green)%h%x20%Creset%C(cyan)%<(16,trunc)%cr%C(yellow)%<(15,trunc)%an%Creset%C(red)%d%Creset%x20%<(75,trunc)%s" | |
l3 = l -3 | |
l5 = l -5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Helper class to create an SQLException for unit testing, see: | |
// https://stackoverflow.com/questions/11976996/moq-and-throwing-a-sqlexception | |
// | |
// Usage: | |
// var sqlException1 = new SqlExceptionBuilder() | |
// .WithErrorNumber(50000) | |
// .WithErrorMessage("Database exception occured...") | |
// .Build(); | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run command and count errors | |
# I use this to gather statistics about flaky tests: | |
# | |
# > RunCommandAndCountErrors "python -mpytest -ktest_some_flaky_test .\test_tests.py" 10 | |
# ... | |
# ... | |
# Test 10, nofErrors: 3 | |
# Nof test runs: 10, nof errors: 3 | |
# > _ | |
function RunCommandAndCountErrors($cmd, $reps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User settings | |
{ | |
"workbench.colorTheme": "Visual Studio Light", | |
"editor.minimap.enabled": false, | |
"telemetry.enableTelemetry": false, | |
} | |
// Workspace settings | |
{ | |
"python.unitTest.pyTestArgs": ["-p no:logging"], | |
"python.unitTest.pyTestEnabled": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pytest] | |
log_print = False | |
addopts = -p no:capture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to https://github.com/DanielSundberg/CopyImages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This script will take the url you get from | |
; the Gerrit download button and replace | |
; the unix command/line separator ('&&') with | |
; a ';' which is accepted as line break in | |
; PowerShell | |
; | |
; This works with Gerrit 2.9 on Windows/Firefox | |
; with Flash enabled | |
; | |
#Persistent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Rewrite Gerrit download link | |
// @include http://*/gerrit/#/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @version 1 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
// This script will take the url you get from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name JiraCopyKeyAndSummary | |
// @author Daniel Sundberg | |
// @namespace https://github.com/DanielSundberg | |
// @include https://jira.*/browse/* | |
// @version 0.2 | |
// @grant GM.setClipboard | |
// ==/UserScript== | |
// v0.2 2019-05-29 |