diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:41:01 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:41:01 +0200 |
| commit | c152c6b5a9a45be3b6a7c72fb4142662edd669a2 (patch) | |
| tree | 701433c83c3764ff1f0ff7dfb10d8437bd371fa7 /content | |
| parent | c7597a44c63db97f8a9615f20c56f8a7b103edcf (diff) | |
| download | mitjafelicijan.com-c152c6b5a9a45be3b6a7c72fb4142662edd669a2.tar.gz | |
Added tags
Diffstat (limited to 'content')
| -rw-r--r-- | content/notes/catv-weechat-config.md | 1 | ||||
| -rw-r--r-- | content/notes/convert-mkv.md | 1 | ||||
| -rw-r--r-- | content/notes/download-youtube-videos.md | 1 | ||||
| -rw-r--r-- | content/notes/fix-plan9-bootloader.md | 1 | ||||
| -rw-r--r-- | content/notes/git-push-multiple-origins.md | 1 | ||||
| -rw-r--r-- | content/notes/install-plan9port-linux.md | 1 | ||||
| -rw-r--r-- | content/notes/mass-set-permission.md | 1 | ||||
| -rw-r--r-- | content/notes/mount-plan9-over-network.md | 1 | ||||
| -rw-r--r-- | content/notes/non-blocking-shell-exec-csharp.md | 43 | ||||
| -rw-r--r-- | content/notes/plan9-screenshot.md | 1 | ||||
| -rw-r--r-- | content/notes/preview-troff-man-pages.md | 1 | ||||
| -rw-r--r-- | content/notes/run-9front-in-qemu.md | 1 | ||||
| -rw-r--r-- | content/notes/write-iso-usb.md | 1 |
13 files changed, 55 insertions, 0 deletions
diff --git a/content/notes/catv-weechat-config.md b/content/notes/catv-weechat-config.md index 8d85d22..3e6e612 100644 --- a/content/notes/catv-weechat-config.md +++ b/content/notes/catv-weechat-config.md | |||
| @@ -4,6 +4,7 @@ url: catv-weechat-config.html | |||
| 4 | date: 2023-05-09 | 4 | date: 2023-05-09 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [irc, weechat, cat-v] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Set up weechat to connect to #cat-v on oftc. This applies to [weechat](https://weechat.org/) | 10 | Set up weechat to connect to #cat-v on oftc. This applies to [weechat](https://weechat.org/) |
diff --git a/content/notes/convert-mkv.md b/content/notes/convert-mkv.md index cca08d7..bafdfb3 100644 --- a/content/notes/convert-mkv.md +++ b/content/notes/convert-mkv.md | |||
| @@ -4,6 +4,7 @@ url: convert-mkv.html | |||
| 4 | date: 2023-05-14 | 4 | date: 2023-05-14 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [ffmpeg, mkv, webm, mp4] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | You will need `ffmpeg` installed on your system. This will convert all MKV files | 10 | You will need `ffmpeg` installed on your system. This will convert all MKV files |
diff --git a/content/notes/download-youtube-videos.md b/content/notes/download-youtube-videos.md index dd3363d..455c550 100644 --- a/content/notes/download-youtube-videos.md +++ b/content/notes/download-youtube-videos.md | |||
| @@ -4,6 +4,7 @@ url: download-youtube-videos.html | |||
| 4 | date: 2023-05-13 | 4 | date: 2023-05-13 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [youtube, yt-dlp, ffmpeg, webm, mp4] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | If you need to download a list of YouTube videos and don't want to download the | 10 | If you need to download a list of YouTube videos and don't want to download the |
diff --git a/content/notes/fix-plan9-bootloader.md b/content/notes/fix-plan9-bootloader.md index f37ff0e..675eabc 100644 --- a/content/notes/fix-plan9-bootloader.md +++ b/content/notes/fix-plan9-bootloader.md | |||
| @@ -4,6 +4,7 @@ url: fix-plan9-bootloader.html | |||
| 4 | date: 2023-05-11 | 4 | date: 2023-05-11 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [plan9, bootloader] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | If the bootloader is not being written to a disk when installing 9front on real | 10 | If the bootloader is not being written to a disk when installing 9front on real |
diff --git a/content/notes/git-push-multiple-origins.md b/content/notes/git-push-multiple-origins.md index 228f857..14b6ed0 100644 --- a/content/notes/git-push-multiple-origins.md +++ b/content/notes/git-push-multiple-origins.md | |||
| @@ -4,6 +4,7 @@ url: git-push-multiple-origins.html | |||
| 4 | date: 2023-05-06 | 4 | date: 2023-05-06 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [git] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Sometimes you want to push to multiple origins at once. This is useful if you | 10 | Sometimes you want to push to multiple origins at once. This is useful if you |
diff --git a/content/notes/install-plan9port-linux.md b/content/notes/install-plan9port-linux.md index 6355287..7e8994d 100644 --- a/content/notes/install-plan9port-linux.md +++ b/content/notes/install-plan9port-linux.md | |||
| @@ -4,6 +4,7 @@ url: install-plan9port-linux.html | |||
| 4 | date: 2023-05-12 | 4 | date: 2023-05-12 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [plan9, plan9port, linux] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). | 10 | Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). |
diff --git a/content/notes/mass-set-permission.md b/content/notes/mass-set-permission.md index 20a4fab..84ec97a 100644 --- a/content/notes/mass-set-permission.md +++ b/content/notes/mass-set-permission.md | |||
| @@ -4,6 +4,7 @@ url: mass-set-permission.html | |||
| 4 | date: 2023-05-16 | 4 | date: 2023-05-16 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [linux, find, chmod] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Replace `*.xml` with your pattern. This will remove executable bit from all | 10 | Replace `*.xml` with your pattern. This will remove executable bit from all |
diff --git a/content/notes/mount-plan9-over-network.md b/content/notes/mount-plan9-over-network.md index 3572b99..9e9875e 100644 --- a/content/notes/mount-plan9-over-network.md +++ b/content/notes/mount-plan9-over-network.md | |||
| @@ -4,6 +4,7 @@ url: mount-plan9-over-network.html | |||
| 4 | date: 2023-05-07 | 4 | date: 2023-05-07 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [plan9, linux, 9pfs] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | - First install libfuse with sudo apt install libfuse-dev. | 10 | - First install libfuse with sudo apt install libfuse-dev. |
diff --git a/content/notes/non-blocking-shell-exec-csharp.md b/content/notes/non-blocking-shell-exec-csharp.md new file mode 100644 index 0000000..4ac3904 --- /dev/null +++ b/content/notes/non-blocking-shell-exec-csharp.md | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | --- | ||
| 2 | title: Execute not blocking async shell command in C# | ||
| 3 | url: non-blocking-shell-exec-csharp.html | ||
| 4 | date: 2023-05-24 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | tags: [csharp, async, shell] | ||
| 8 | --- | ||
| 9 | |||
| 10 | Execute a shell command in async in C# while not blocking the UI thread. | ||
| 11 | |||
| 12 | ```c# | ||
| 13 | private async Task executeCopyCommand() | ||
| 14 | { | ||
| 15 | await Task.Run(() => | ||
| 16 | { | ||
| 17 | var processStartInfo = new ProcessStartInfo("cmd", "/c dir") | ||
| 18 | { | ||
| 19 | RedirectStandardOutput = true, | ||
| 20 | UseShellExecute = false, | ||
| 21 | CreateNoWindow = true | ||
| 22 | }; | ||
| 23 | |||
| 24 | var process = new Process | ||
| 25 | { | ||
| 26 | StartInfo = processStartInfo | ||
| 27 | }; | ||
| 28 | |||
| 29 | process.Start(); | ||
| 30 | process.WaitForExit(); | ||
| 31 | }); | ||
| 32 | } | ||
| 33 | ``` | ||
| 34 | |||
| 35 | Make sure that `async` is present in the function definition and `await` is | ||
| 36 | used in the method that calls `executeCopyCommand()`. | ||
| 37 | |||
| 38 | ```c# | ||
| 39 | private async void button_Click(object sender, EventArgs e) | ||
| 40 | { | ||
| 41 | await executeCopyCommand(); | ||
| 42 | } | ||
| 43 | ``` | ||
diff --git a/content/notes/plan9-screenshot.md b/content/notes/plan9-screenshot.md index 88b7bd9..fe21ee4 100644 --- a/content/notes/plan9-screenshot.md +++ b/content/notes/plan9-screenshot.md | |||
| @@ -4,6 +4,7 @@ url: plan9-screenshot.html | |||
| 4 | date: 2023-05-10 | 4 | date: 2023-05-10 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [plan9, screenshot] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Take a screenshot in Plan9. This applies to [Plan9](https://9p.io/plan9/) and | 10 | Take a screenshot in Plan9. This applies to [Plan9](https://9p.io/plan9/) and |
diff --git a/content/notes/preview-troff-man-pages.md b/content/notes/preview-troff-man-pages.md index 6ff1124..acda0d6 100644 --- a/content/notes/preview-troff-man-pages.md +++ b/content/notes/preview-troff-man-pages.md | |||
| @@ -4,6 +4,7 @@ url: preview-troff-man-pages.html | |||
| 4 | date: 2023-05-15 | 4 | date: 2023-05-15 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [troff, man] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Troff is used to write man pages and it is difficult to read it so this will | 10 | Troff is used to write man pages and it is difficult to read it so this will |
diff --git a/content/notes/run-9front-in-qemu.md b/content/notes/run-9front-in-qemu.md index 1e6820d..0001162 100644 --- a/content/notes/run-9front-in-qemu.md +++ b/content/notes/run-9front-in-qemu.md | |||
| @@ -4,6 +4,7 @@ url: run-9front-in-qemu.html | |||
| 4 | date: 2023-05-05 | 4 | date: 2023-05-05 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [plan9, qemu] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Run 9front in Qemu. This applies to [Plan9](https://9p.io/plan9/) and | 10 | Run 9front in Qemu. This applies to [Plan9](https://9p.io/plan9/) and |
diff --git a/content/notes/write-iso-usb.md b/content/notes/write-iso-usb.md index 04b0c81..860e6a7 100644 --- a/content/notes/write-iso-usb.md +++ b/content/notes/write-iso-usb.md | |||
| @@ -4,6 +4,7 @@ url: write-iso-usb.html | |||
| 4 | date: 2023-05-08 | 4 | date: 2023-05-08 |
| 5 | type: notes | 5 | type: notes |
| 6 | draft: false | 6 | draft: false |
| 7 | tags: [linux, iso, usb] | ||
| 7 | --- | 8 | --- |
| 8 | 9 | ||
| 9 | Write ISO to USB key. Nothing fancy here. | 10 | Write ISO to USB key. Nothing fancy here. |
