Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2daa772
🐛 fix: correct malformed Whodid hyperlink in Git.md
bartvanhoey Jun 30, 2026
ae033c7
🐛 fix: remove duplicate docker stop row in Docker.md
bartvanhoey Jun 30, 2026
ffec5e5
🐛 fix: replace incorrect docker run -t with docker build -f in Docker.md
bartvanhoey Jun 30, 2026
69933ca
🎨 style: fix CTRl capitalisation typos in VsCode.md shortcut table
bartvanhoey Jun 30, 2026
0042f4e
🐛 fix: correct C# Dev Kit extension name typo in VsCode.md
bartvanhoey Jun 30, 2026
706fd67
🎨 style: fix ALexander capitalisation in Error Lens extension entry
bartvanhoey Jun 30, 2026
0e66149
🐛 fix: remove duplicate html tag wrapper extension entry in VsCode.md
bartvanhoey Jun 30, 2026
f6eb377
🎨 style: fix bash fence labels to json for settings blocks in VsCode.md
bartvanhoey Jun 30, 2026
f74766c
🐛 fix: remove stray backtick in git log line in Git.md
bartvanhoey Jun 30, 2026
05e1c86
🐛 fix: replace hardcoded username path with %USERPROFILE% in DotNet.md
bartvanhoey Jun 30, 2026
ef7238f
🎨 style: normalise How to headings to Howto in DotNet.md
bartvanhoey Jun 30, 2026
aacefe2
📝 docs: clarify HEAD vs HEAD~1 distinction in git reset --hard entries
bartvanhoey Jun 30, 2026
f8b66d6
🐛 fix: extract git push --force-with-lease from VIM block into its ow…
bartvanhoey Jun 30, 2026
ad69c0c
🎨 style: change batch fence labels to bash in Git.md for correct synt…
bartvanhoey Jun 30, 2026
c0e5a06
📝 docs: add git push --force-with-lease safety note in Git.md
bartvanhoey Jun 30, 2026
9e79236
🎨 style: fix PowerShell heading capitalisation in PowerShell.md
bartvanhoey Jun 30, 2026
af3e146
🎨 style: change bash fence labels to powershell in PowerShell.md for …
bartvanhoey Jun 30, 2026
9c82e66
✅ chore: add weekly lychee-action workflow to detect broken external …
bartvanhoey Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Links

on:
schedule:
- cron: '0 8 * * 1' # every Monday at 08:00 UTC
workflow_dispatch:

jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lycheeverse/lychee-action@v2
with:
args: --verbose --no-progress '**/*.md'
fail: true
3 changes: 1 addition & 2 deletions Documents/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@
|`docker run -it --rm -p 3000:80 --name <my-container> <image-name>:<tag>` | create/start container, remove after stop (CTRL+C) |
|`docker start <container-id>` | start docker container by ID |
|`docker stop <container-id>` | stop docker container by ID |
|`docker stop <container-id>` | stop docker container by ID |
|`docker rm <container-id> <container-id> <container-id>` | remove multiple docker containers by their IDs |
|`CTRL+C` | stop running container in Terminal |
|`docker ps` | display all running containers |
|`docker ps -a` | display all running/not running containers with their status |
|`docker run -t <image-name>:<tag> -f .\CreateTestDb.Dockerfile .` | build docker container from specific Dockerfile |
|`docker build -f .\CreateTestDb.Dockerfile -t <image-name>:<tag> .` | build docker image from specific Dockerfile |
|`docker exec -it <container-id> /bin/sh` => `ls` | Open a command in running container and display content |
|`docker exec -it <container-id> /bin/bash` | Open a command in running container and display content |

Expand Down
8 changes: 4 additions & 4 deletions Documents/DotNet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ dotnet new sln -n [YourSolutionName]
dotnet sln add [yourProjectName]\[yourProjectName].csproj
```

### How to create a new class library project
### Howto create a new class library project

```bash
dotnet new classlib -n [YourProjectName]
```

### How to see installed dotnet sdks
### Howto see installed dotnet sdks

```bash
dotnet --list-sdks
```

### How to specify dotnet version with dotnet new
### Howto specify dotnet version with dotnet new

```bash
dotnet new web -h
Expand Down Expand Up @@ -57,7 +57,7 @@ dotnet new gitignore

## User Secrets

You can find the user secrets in following folder: `C:\Users\bartv\AppData\Roaming\Microsoft\UserSecrets`
You can find the user secrets in following folder: `%USERPROFILE%\AppData\Roaming\Microsoft\UserSecrets`

### Init

Expand Down
27 changes: 17 additions & 10 deletions Documents/Git.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ admin:repo_hook Full control of repository hooks

### Howto check contributions from a git repository

[Whodid]([https://](https://www.npmjs.com/package/whodid)) is a CLI contribution check tool that counts edited lines from all commits pro author
[Whodid](https://www.npmjs.com/package/whodid) is a CLI contribution check tool that counts edited lines from all commits pro author

```bash
npm install -g whodid
Expand All @@ -94,41 +94,41 @@ There's a neat NPM package that does it for you (and it should work cross-platfo

Install it with:

```batch
```bash
npm install -g git-removed-branches
```

And then git removed-branches will show you all the stale local branches, and git removed-branches --prune to delete them

* Run this command to see which branches will be deleted

```batch
```bash
git removed-branches
```

* Run this command to actually delete these branches

```batch
```bash
git removed-branches --prune
```

* Run this to actually delete these branches (forced)

```batch
```bash
git removed-branches --prune --force
```

### Howto remove old unused branches of a remote repository

* Run this to see which branches will be deleted!

```batch
```bash
git remote prune origin --dry-run
```

* Run this command to delete these branches

```batch
```bash
git remote prune origin
```

Expand All @@ -137,7 +137,7 @@ And then git removed-branches will show you all the stale local branches, and gi
```csharp
// KEEP CHANGES
git reset HEAD~1 --soft
git log origin/master..HEAD` view unpushed git commits
git log origin/master..HEAD // view unpushed git commits
```

### Howto uncommit last un-pushed git-commit DELETE CHANGES (~gN N=number of commits)
Expand Down Expand Up @@ -190,6 +190,10 @@ hint: See the 'Note about fast-forwards' in 'git push --help' for details.

`git push --force`

> **Prefer `--force-with-lease`** — it refuses to push if the remote has commits you haven't fetched, preventing accidental overwrite of a teammate's work.

`git push --force-with-lease`

### Howto handle fatal: refusing to merge unrelated histories

`git pull origin <branch-name> --allow-unrelated-histories`
Expand Down Expand Up @@ -248,7 +252,7 @@ hint: See the 'Note about fast-forwards' in 'git push --help' for details.

### Howto revert to a previous commit

`git reset --hard HEAD`
`git reset --hard HEAD` — discards uncommitted working tree changes, stays on the same commit

### Howto set your branch to exactly match the remote branch

Expand Down Expand Up @@ -293,7 +297,7 @@ Esc

### Howto Delete the most recent commit, **destroying** the work you've done

`git reset --hard HEAD~1`
`git reset --hard HEAD~1` — moves back one commit; the commit and its changes are permanently gone

### Howto change a pushed commit message (not yet pulled from remote)

Expand All @@ -304,6 +308,9 @@ After updating the message leave VIM editor by pressing
```csharp
Esc
:wq
```

```bash
git push --force-with-lease <repository> <branch>
```

Expand Down
8 changes: 4 additions & 4 deletions Documents/PowerShell.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
## Powershell
## PowerShell

### Howto convert csv to JSON

```bash
```powershell
$items = import-csv .\items.csv | ConvertTo-Json > items.json
```

### Count the numbers of lines in a C# codebase

```bash
```powershell
(gci -include *.cs,*.xaml -recurse | select-string .).Count
```

### Export data from a table from (LocalDb)\MSSQLLocalDB to a file

```bash
```powershell
bcp GrawSkyDevDb.dbo.InitSondeTable out "C:\CTemp\InitSondeTable.csv" -c -t -S "(localdb)\MSSQLLocalDB" -T
```
23 changes: 11 additions & 12 deletions Documents/VsCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
| `CTRL+/` | Split Editor |
| `CTRL+` | Zoom in |
| `CTRL+7` | Comment Line (toggle) |
| `CTRl+ALT+C` | Create New Git Branch (own Keyboard short cut) |
| `CTRL+ALT+C` | Create New Git Branch (own Keyboard short cut) |
| `CTRL+ALT+L` | Reveal Active File in Explorer |
| `CTRL+ALT+B` | Show/Hide GitHub Copilot Chat Window |
| `CTRL+ALT+B+ENTER` | Hide GitHub Copilot Chat Window |
| `CTRL+K, I` | GitHub Copilot Fix This |
| `CTRl+ALT+T` | Surround with ... (Surround Extension - Mehmet Yatkı) |
| `CTRL+ALT+T` | Surround with ... (Surround Extension - Mehmet Yatkı) |
| `CTRL+ARROW LEFT/RIGHT` | Move to Next Word |
| `CTRl+B, CTRL+B` | Copy current branch name [install extension 'Copy name of current git branch' ] |
| `CTRL+B, CTRL+B` | Copy current branch name [install extension 'Copy name of current git branch' ] |
| `CTRL+Q` | Show/Hide Terminal |
| `CTRL+C,C` | Clear Console |
| `CTRL+C` | Copy (no need to select line) |
Expand All @@ -37,22 +37,22 @@
| `CTRL+J` | Toggle Bottom Panel Visibility |
| `CTRL+K+C` or `CTRL+/` | Comment/Uncomment Line |
| `CTRL+K+D` | Format Document |
| `CTRl+K+S` | Shows VsCode shortcuts |
| `CTRL+K+S` | Shows VsCode shortcuts |
| `CTRL+K+W` | Close All Documents |
| `CTRL+L` | Delete Line (no need to select line) |
| `CTRL+M` | Go to Type Declaration |
| `CTRL+N,N` | New File... |
| `CTRL+P` | Go to File |
| `CTRL+S` | Pin tab/Unpin tab |
| `CTRl+SHIFT+.` | Show methods, properties, fields of a TypeScript class |
| `CTRL+SHIFT+.` | Show methods, properties, fields of a TypeScript class |
| `CTRL+SHIFT+D` | Focus Debugger |
| `CTRL+SHIFT+E` | Toggle Solution Explorer (toggleSideBarVisibility) |
| `CTRL+SHIFT+F` | Search in All Files |
| `CTRl+SHIFT+G` | Open Source Control Panel |
| `CTRL+SHIFT+G` | Open Source Control Panel |
| `CTRL+SHIFT+H` | Search and Replace in All Files |
| `CTRL+SHIFT+O` | Shows list of methods, properties, fields of active field |
| `CTRL+SHIFT+ö` | Opens External Terminal in Project Root |
| `CTRl+SHIFT+P -> Balance (outward)` | Select a whole HTML tag |
| `CTRL+SHIFT+P -> Balance (outward)` | Select a whole HTML tag |
| `CTRL+SHIFT+P` | Command Palette |
| `CTRL+SHIFT+R` | Rename Symbol |
| `CTRL+SHIFT+T` | Open New Terminal |
Expand Down Expand Up @@ -81,17 +81,16 @@
| `Auto Self Close Tag` by Zeeshan Ahmad | Automatically removes the closing tag when entering a slash in the first |
| `Auto Import` | Provides code actions and code completion for all available Typescript |
| `Auto Rename Tag` | Renames the corresponding html tag |
| `C# Dev Kist` | C# Dev Kit enhances VsCode by adding a set of powerful tools and utilities |
| `C# Dev Kit` | C# Dev Kit enhances VsCode by adding a set of powerful tools and utilities |
| `C# Extensions - JosKreativ` | C# IDE Extensions for VSCode |
| `C#` | C# for Visual Studio Code (powered by OmniSharp) |
| `Code Spell Checker` | Spelling Checker for Visual Studio Code |
| `CodiumAI` | Integrity Agent powered by GPT3.5&4 |
| `ColorTabs - Ore Poran` | Changes the active tab/status-bar/title-background |
| `Copy name of current git branch` | Copy name of current git branch [do not forget to assign shortcut key] |
| `Error Lens - ALexander` | Improve highlighting of errors warnings and other language diagnostics |
| `Error Lens - Alexander` | Improve highlighting of errors warnings and other language diagnostics |
| `ES7+ React/Redux/React-Native snippets` | ES7 Extension by dsznajder |
| `GitHub Pull Requests` | Manage Your Pull Requests for a Repository from VSCode |
| `html tag wrapper` | Wrap selected html tags by pressing CTRL+i |
| `Inline Fold - Mohammed Alamri` | A custom decorator that "fold" matching content in a single line |
| `html tag Wrapper - hwencc` | wrap selected html tag by press ctrl+i, change the wrapper tag name too |
| `Lorem Ipsum` | Generates and inserts lorem ipsum text into Visual Studio Code |
Expand Down Expand Up @@ -181,7 +180,7 @@

### ColorTabs settings in settings.json file

```bash
```json
"colorTabs.config": [
{
"regex": ".*",
Expand All @@ -194,7 +193,7 @@

### Prettier settings in settings.json file

```bash
```json
"prettier.jsxSingleQuote": true,
"prettier.bracketSameLine": true,
"prettier.bracketSpacing": true,
Expand Down
Loading
Loading