-
Install .net core test explorer
-
In the test to debug, add a breakpoint
-
In the test explorer window, select the test and right click 'Debug'
-
have a launch config to attach like so:
{ "name": "attach", "type": "coreclr",
This file contains hidden or 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
{ | |
"vim.useSystemClipboard": true, | |
"vim.leader": "space", | |
"vim.hlsearch": true, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": ["j", "k"], | |
"after": ["<Esc>"] | |
}, | |
], |
This file contains hidden or 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
AGKOZAK_CUSTOM_RPROMPT='[%D{%L:%M:%S %p}]' | |
reset-prompt-and-accept-line() { | |
zle reset-prompt | |
zle accept-line | |
} | |
zle -N reset-prompt-and-accept-line | |
bindkey '^m' reset-prompt-and-accept-line |
This file contains hidden or 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
clusterSize: 3 | |
imageTag: release-5.0.8 | |
persistence: | |
enabled: true | |
size: 2Gi | |
storageClass: managed-premium | |
# keep in mind that if you update the release name from 'eventstore', then update the match expression below as well | |
# placement constraint for production like env | |
affinity: |
This file contains hidden or 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
import sys | |
import logging | |
import itertools | |
logging.basicConfig(format="%(asctime)s %(message)s", level=logging.DEBUG) | |
def termGenerator(sequence, start, length, k): | |
"""Generate kth term in a rolling sequence of 1, 3, 5... letters | |
Even terms are reversed | |
""" | |
# pick seqLen chars after skipping first startPos chars |
This file contains hidden or 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
# fetch starred repos, form feed urls to releases, create opml file that can be imported into your favourite feed reader | |
curl -sL "api.github.com/users/raghur/starred?page=1&per_page=500" | \ | |
jq -r '"<outline xmlUrl=\"https://github.com/" + .[].full_name + "/releases.atom\" />"' | \ | |
awk -e 'BEGIN {print "<opml version=\"1.0\"><body> <outline title=\"Github Releases\" text=\"Github Releases\">"} | |
{print} | |
END {print "</outline></body></opml>"}' > subs.opml |
This file contains hidden or 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
#!/bin/sh | |
# Start/stop all init scripts in /opt/etc/init.d including symlinks | |
# starting them in numerical order and | |
# stopping them in reverse numerical order | |
#logger "Started $0${*:+ $*}." | |
ACTION=$1 | |
CALLER=$2 |
This file contains hidden or 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
#! /opt/bin/bash | |
# replace these | |
user="user token" | |
token="app token" | |
mypidfile=/tmp/levels.sh.pid | |
if [ -e $mypidfile ]; then | |
exit 0 | |
fi | |
trap "rm -f $mypidfile" EXIT |
This file contains hidden or 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
set Boost_INCLUDEDIR=d:\sdks\boost-1.65.1\boost\ | |
set BOOST_LIBRARYDIR=d:\sdks\boost-1.65.1\lib64-msvc-14.0\ | |
set BOOST_ROOT=d:\sdks\boost-1.65.1\ | |
cd build | |
d:\Utils\cmake-3.10.0-win64-x64\bin\cmake.exe -G "NMake Makefiles" -DPY3:BOOL=ON -DPYTHON_EXECUTABLE=d:\sdks\python36\python -DPYTHON_INCLUDE_DIRS=d:\sdks\python36\include\ -DPYTHON_LIBRARY=d:\sdks\python36\libs\python36.lib .. | |
nmake |
This file contains hidden or 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
find -maxdepth 1 -path './*' -type 'd' -print0 |xargs -0 du -hs |sort -hr |head -10 |
NewerOlder