git checkout main
git remote set-head origin -a
Source: https://stackoverflow.com/questions/8839958/how-does-origin-head-get-set
#! /bin/bash | |
file=./folder1/folder2/file-name-input.txt | |
outputfile=./folder1/folder2/file-name-output.txt | |
while IFS= read -r cmd; do | |
NUMBER_OF_FILES=$(grep --include=\*{ts,tsx} -rl './folder1' -e "$cmd" | wc -l) | |
printf 'Number of ocurrences: %s - Key: %s\n' "$NUMBER_OF_FILES" "$cmd" >> $outputfile |
# set -o xtrace | |
# https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html | |
# Black 0;30 Dark Gray 1;30 | |
# Blue 0;34 Light Blue 1;34 | |
# Green 0;32 Light Green 1;32 | |
# Cyan 0;36 Light Cyan 1;36 | |
# Red 0;31 Light Red 1;31 | |
# Purple 0;35 Light Purple 1;35 | |
# Brown 0;33 Yellow 1;33 |
// Reference: | |
// https://stackoverflow.com/questions/3903222/measure-execution-time-in-c-sharp | |
// Answer by https://stackoverflow.com/users/435383/katbyte | |
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace Diagnostic | |
{ |
git checkout main
git remote set-head origin -a
Source: https://stackoverflow.com/questions/8839958/how-does-origin-head-get-set
https://marketplace.visualstudio.com/items?itemName=formulahendry.dotnet-test-explorer | |
https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel | |
https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments | |
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks | |
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools | |
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack | |
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-themes | |
https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp | |
https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case | |
https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap |
@REM In order to execute sonar coverage, you'll need to have sonarqube community downloaded and running local on your machine | |
@REM and sonarscanner installed as well and placed its /bin folder as a PATH ENVIRONMENT VARIABLE. | |
@REM Additionaly, you need to provide a Project TOKEN and set its value on LOGIN parameter (line 7). | |
set project="PLACE PROJECT NAME HERE" | |
set login="PLACE YOUR TOKEN HERE" | |
set host=http://localhost:9000 | |
{ | |
"stryker-config": { | |
"additional-timeout": 20000, | |
"baseline": {}, | |
"concurrency": 4, | |
"coverage-analysis": "perTest", | |
"disable-bail": false, | |
"disable-mix-mutants": false, | |
"ignore-methods": [], | |
"ignore-mutations": [], |
#!/bin/sh | |
BLUE='\033[0;34m' | |
RED='\033[0;31m' | |
NOCOLOR='\033[0m' | |
# Check if the version of pre-commit hook was updated in version control | |
# since it is not possible to version control the actual pre-commit script | |
original_pre_commit_hook=".git/hooks/pre-commit" | |
pre_commit_hook_in_version_control=".git-hooks-for-reuse/pre-commit" |
@echo off | |
@echo ====================================================== | |
@echo {mainProjectName} - Remove bin and obj folders | |
@echo ====================================================== | |
@echo off | |
@echo. | |
@echo. | |
cd ..\ | |
md log |
{ | |
"configuration": "release", | |
"{projectName}.branchCoverage.threshold": 100, | |
"debug.terminal.clearBeforeReusing": true, | |
"terminal.integrated.automationProfile.windows": { | |
"path": "C:\\Windows\\System32\\cmd.exe" | |
}, | |
"files.exclude": { | |
"**/bin": true, | |
"**/obj": true, |