Skip to content

Commit

Permalink
feat(n-dev): update
Browse files Browse the repository at this point in the history
  • Loading branch information
yttriumz committed Nov 4, 2024
1 parent 54cca3f commit 3865a4a
Show file tree
Hide file tree
Showing 31 changed files with 1,967 additions and 1,586 deletions.
14 changes: 14 additions & 0 deletions notes-development/AI/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
type: index
sitemap:
lastmod: 2024-07-25 +0000
priority: 0.5
---

# Artificial Intelligence

Last modified: 2024-07-25 +0000

## Interesting posts

- [Open source AI is the path forward \| Hacker News](https://news.ycombinator.com/item?id=41046773)
34 changes: 34 additions & 0 deletions notes-development/API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
sitemap:
lastmod: 2024-09-16 +0000
---

# API Development

Last modified: 2024-09-16 +0000

## Design

*References*:

- [GraphQL vs REST API - Difference Between API Design Architectures - AWS](https://aws.amazon.com/compare/the-difference-between-graphql-and-rest/)
- [GraphQL vs. REST \| Postman Blog](https://blog.postman.com/graphql-vs-rest/)

## Test

Tools:

- [Orange-OpenSource/hurl: Hurl, run and test HTTP requests with plain text.](https://github.com/Orange-OpenSource/hurl)
- [HURL: Run and Test HTTP API Requests](https://www.ayrshare.com/hurl-run-and-test-http-api-requests/)
- [usebruno/bruno: Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)](https://github.com/usebruno/bruno)
- [hoppscotch/hoppscotch: Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)](https://github.com/hoppscotch/hoppscotch)
- [Self-hosted Postman Alternative: Hoppscotch : r/selfhosted](https://www.reddit.com/r/selfhosted/comments/1aendtn/selfhosted_postman_alternative_hoppscotch/)
- [Hoppscotch vs Postman - Why choose Hoppscotch? - DEV Community](https://dev.to/hoppscotch/hoppscotch-vs-postman-why-choose-hoppscotch-14km)

*References*:

- [What are people using instead of postman? : r/webdev](https://www.reddit.com/r/webdev/comments/16yxy43/what_are_people_using_instead_of_postman/)
- [Postman alternatives? : r/webdev](https://www.reddit.com/r/webdev/comments/18ohwgt/postman_alternatives/)
- [Postman alternative that does not suck with feature bloat : r/webdev](https://www.reddit.com/r/webdev/comments/199m3g3/postman_alternative_that_does_not_suck_with/)
- [With Insomnia now joining Postman in forcing their users to have a cloud account, What other alternative API client apps do you recommend? : r/webdev](https://www.reddit.com/r/webdev/comments/1ak7wtk/with_insomnia_now_joining_postman_in_forcing/)
- [Best Tools for Go Development: Postman vs. Alternatives : r/golang](https://www.reddit.com/r/golang/comments/1ccr01q/best_tools_for_go_development_postman_vs/)
43 changes: 38 additions & 5 deletions notes-development/Bash.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,54 @@
---
sitemap:
lastmod: 2024-07-17 +0000
lastmod: 2024-11-04 +0000
---

# Bash Scripting

Last modified: 2024-07-17 +0000
Last modified: 2024-11-04 +0000

- [Interesting posts](#interesting-posts)
- [Redirect command/script/application output](#redirect-commandscriptapplication-output)
- [`local` options](#local-options)
- [Test expressions](#test-expressions)
- [Shell built-in `:`](#shell-built-in-)
- [`[@]` and `[*]`](#-and-)
- [`${}` and `$()`](#-and--1)
- [`[` and `[[`](#-and-)
- [`[@]` and `[*]`](#-and--1)
- [`${}` and `$()`](#-and--2)
- [Variables in paths](#variables-in-paths)
- [Error handling](#error-handling)

## Interesting posts

- [console - How does one output bold text in Bash? - Stack Overflow](https://stackoverflow.com/questions/2924697/how-does-one-output-bold-text-in-bash)
- [Bash is a terrible as a programming language, but what's the alternative ? - DEV Community](https://dev.to/jmfayard/bash-is-a-terrible-programming-language-but-whats-the-alternative--oc2)
- [A Second Search for Bash Scripting Alternatives - Monzool's Personal Publishing](https://monzool.net/blog/2024/07/14/a-second-search-for-bash-scripting-alternatives/)
- [what would you use to replace Bash for scripting? - Page 1](https://www.eevblog.com/forum/programming/what-would-you-use-to-replace-bash-for-scripting/)
- [xonsh/xonsh: :shell: Python-powered shell. Full-featured and cross-platform.](https://github.com/xonsh/xonsh)

Documentation & tutorials:

- [Top (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/)
- [Brace Expansion (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html)
- [Shell Parameter Expansion (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html)
- [Pattern Matching (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html)
- [ShellCheck: SC2097 – This assignment is only seen by the forked process.](https://www.shellcheck.net/wiki/SC2097)
- [Intro – Modern Bash (Zsh) Scripting](https://www.mulle-kybernetik.com/modern-bash-scripting/)

- Miscellaneous:

- [linux - What's the different between 'cat > some_file << EOF some_stuff EOF' and 'echo "some_stuff" > some_file' - Super User](https://superuser.com/questions/1434549/whats-the-different-between-cat-some-file-eof-some-stuff-eof-and-echo)
- [What's the difference between cat /dev/null>file and echo"">file ? : r/bash](https://www.reddit.com/r/bash/comments/s397ao/whats_the_difference_between_cat_devnullfile_and/)
- [ShellCheck: SC2097 – This assignment is only seen by the forked process.](https://www.shellcheck.net/wiki/SC2097)
- [bash - iterate over file and send lines as positional parameters to another file - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/177491/iterate-over-file-and-send-lines-as-positional-parameters-to-another-file)
- [files - How do I loop through only directories in bash? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/86722/how-do-i-loop-through-only-directories-in-bash)
- [bash - How are parentheses interpreted at the command line? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/26063/how-are-parentheses-interpreted-at-the-command-line)
- [linux - How can I run a function from a script in command line? - Stack Overflow](https://stackoverflow.com/questions/8818119/how-can-i-run-a-function-from-a-script-in-command-line)
- [How to evaluate a boolean variable in an if block in bash? - Stack Overflow](https://stackoverflow.com/questions/3810709/how-to-evaluate-a-boolean-variable-in-an-if-block-in-bash)
- [How to Declare Bash Boolean Variable in a Shell Script](https://kodekloud.com/blog/declare-bash-boolean-variable-in-shell-script/)
- [How do you run multiple programs in parallel from a bash script? - Stack Overflow](https://stackoverflow.com/questions/3004811/how-do-you-run-multiple-programs-in-parallel-from-a-bash-script)
- [shell script - Parallelize a Bash FOR Loop - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/103920/parallelize-a-bash-for-loop)
- [Exporting an array in bash script - Stack Overflow](https://stackoverflow.com/questions/5564418/exporting-an-array-in-bash-script)
- [How to Get the Directory Where a Bash Script is Located \| Saturn Cloud Blog](https://saturncloud.io/blog/how-to-get-the-directory-where-a-bash-script-is-located/)

## Redirect command/script/application output

Expand Down Expand Up @@ -51,13 +76,21 @@ Use `man test` to check the exact expressions on the system.

- [linux - What is the meaning of -n, -z, -x, -L, -d, etc... in Shell Script? - Stack Overflow](https://stackoverflow.com/questions/53319817/what-is-the-meaning-of-n-z-x-l-d-etc-in-shell-script)
- [Ubuntu Manpage: test - check file types and compare values](https://manpages.ubuntu.com/manpages/jammy/en/man1/test.1.html)
- [Check If a Variable Is Empty in Bash: Shell Script How-to](https://ioflood.com/blog/bash-if-variable-is-empty/)
- [linux - How to check if a file is empty in Bash? - Stack Overflow](https://stackoverflow.com/questions/9964823/how-to-check-if-a-file-is-empty-in-bash)

## Shell built-in `:`

*References*:

- [shell - What is the purpose of the : (colon) GNU Bash builtin? - Stack Overflow](https://stackoverflow.com/questions/3224878/what-is-the-purpose-of-the-colon-gnu-bash-builtin)

## `[` and `[[`

*References*:

- [scripting - What is the difference between double and single square brackets in bash? - Server Fault](https://serverfault.com/questions/52034/what-is-the-difference-between-double-and-single-square-brackets-in-bash)

## `[@]` and `[*]`

From Phind:
Expand Down
32 changes: 29 additions & 3 deletions notes-development/C.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
---
sitemap:
lastmod: 2024-06-13 +0000
lastmod: 2024-10-17 +0000
---

# C

Last modified: 2024-10-17 +0000

## Interesting posts

- [Is every language written in C? - Software Engineering Stack Exchange](https://softwareengineering.stackexchange.com/questions/267086/is-every-language-written-in-c)
- [Any Language Closer To C In Terms Of Performance : r/C_Programming](https://www.reddit.com/r/C_Programming/comments/1dd2bz8/any_language_closer_to_c_in_terms_of_performance/)
- [memory - When to use bit-fields in C - Stack Overflow](https://stackoverflow.com/questions/24933242/when-to-use-bit-fields-in-c)
- [Understanding Command-Line Arguments: Exploring argv and argc in C Programming Language \| by Chux \| Medium](https://medium.com/@chuxoguh/understanding-command-line-arguments-exploring-argv-and-argc-in-c-programming-language-a198395028c9)
- [c - Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"? - Stack Overflow](https://stackoverflow.com/questions/164194/why-do-i-get-a-segmentation-fault-when-writing-to-a-char-s-initialized-with-a)

Toolkit:

- [rr – record and replay debugger for C/C++ \| Hacker News](https://news.ycombinator.com/item?id=41023547)

## VSCode Config
Documentation:

- [ ] todo
- [Where do I find the current C or C++ standard documents? - Stack Overflow](https://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents/83763#83763)
- [Why does ISO/IEC charge for the C and C++ standards instead of providing them for free? - Stack Overflow](https://stackoverflow.com/questions/2734884/why-does-iso-iec-charge-for-the-c-and-c-standards-instead-of-providing-them-fo)

## C in Linux

Expand All @@ -21,3 +31,19 @@ sitemap:
- [Programming Language](https://www.kernel.org/doc/html/latest/process/programming-language.html)
- [Extensions to the C Language Family](https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html)
- [Linus Torvalds prepares to move the Linux kernel to modern C](https://www.zdnet.com/article/linus-torvalds-prepares-to-move-the-linux-kernel-to-modern-c/)

## Trap representation

*References*:

- [c++ - Trap representation - Stack Overflow](https://stackoverflow.com/questions/6725809/trap-representation)
- [c - Why would a language need to have trap representations? - Programming Language Design and Implementation Stack Exchange](https://langdev.stackexchange.com/questions/2248/why-would-a-language-need-to-have-trap-representations)
- [What are some examples of compilers/systems that have 'trap representations' and what are they? : r/C_Programming](https://www.reddit.com/r/C_Programming/comments/101tm20/what_are_some_examples_of_compilerssystems_that/)

## Endianness

*References*:

- [Understanding Big and Little Endian Byte Order – BetterExplained](https://betterexplained.com/articles/understanding-big-and-little-endian-byte-order/)
- [c - Can endianness refer to bits order in a byte? - Stack Overflow](https://stackoverflow.com/questions/16803397/can-endianness-refer-to-bits-order-in-a-byte)
- [Big-Endian 與 Little-Endian 的差異與判斷程式碼 – G. T. Wang](https://blog.gtwang.org/programming/difference-between-big-endian-and-little-endian-implementation-in-c/)
10 changes: 8 additions & 2 deletions notes-development/DevOps/Ansible.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
sitemap:
lastmod: 2024-09-03 +0000
lastmod: 2024-10-30 +0000
---

# Ansible

Last modified: 2024-09-03 +0000
Last modified: 2024-10-30 +0000

## Interesting posts

Expand All @@ -22,6 +22,7 @@ Tutorials:
- [Ansible Tutorial for Beginners: Playbook & Examples](https://spacelift.io/blog/ansible-tutorial)
- [Ansible Playbooks: Complete Guide with Examples](https://spacelift.io/blog/ansible-playbooks)
- [Medium parser - Ansible Boot Camp 1 — What is Ansible \| by Tony \| Geek Culture \| Medium](http://webcache.googleusercontent.com/search?q=cache:https://medium.com/geekculture/ansible-boot-camp-1-what-is-ansible-b80abff314ac&strip=0&vwsrc=1&referer=medium-parser)
- [Deep dive on Ansible VScode extension \| Ansible Collaborative](https://www.ansible.com/blog/deep-dive-on-ansible-vscode-extension/)

Techniques:

Expand All @@ -31,3 +32,8 @@ Techniques:
- [Comparing `loop` and `with_*` - Loops — Ansible Documentation](https://docs.ansible.com/ansible/2.9/user_guide/playbooks_loops.html#comparing-loop-and-with)
- [Listing All Ansible Variables for a Host or Group \| Baeldung on Linux](https://www.baeldung.com/linux/ansible-list-variables-host-group)
- [VS Code Ansible extension that can find all variable references or go to variable definition? : r/ansible](https://www.reddit.com/r/ansible/comments/keel3k/vs_code_ansible_extension_that_can_find_all/)

## tags

- [How to run only one role of an Ansible playbook? - Stack Overflow](https://stackoverflow.com/questions/47414988/how-to-run-only-one-role-of-an-ansible-playbook)
- [How to run only one task in ansible playbook? - Stack Overflow](https://stackoverflow.com/questions/23945201/how-to-run-only-one-task-in-ansible-playbook)
13 changes: 10 additions & 3 deletions notes-development/Garmin-CIQ.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
sitemap:
lastmod: 2024-05-26 +0000
lastmod: 2024-08-23 +0000
---

# Garmin Connect IQ

Last modified: 2024-05-26 +0000
Last modified: 2024-08-23 +0000

## Interesting posts

- [Connect IQ Basics](https://developer.garmin.com/connect-iq/connect-iq-basics/getting-started/)
- [bombsimon/awesome-garmin: A list of Garmin application, both for Garmin devices and other tools](https://github.com/bombsimon/awesome-garmin)
- [Creating a Garmin Connect IQ application. Part 1 — Hello Monkey C! \| by Dan Siwiec \| Dan On Coding](https://danoncoding.com/creating-a-garmin-connect-iq-application-part-1-hello-monkey-c-813eff5076e6)
- [danielsiwiec/garmin-connect-seed](https://github.com/danielsiwiec/garmin-connect-seed)
Expand All @@ -18,15 +17,23 @@ Last modified: 2024-05-26 +0000
- [Creating a Watch Face : r/GarminWatches](https://www.reddit.com/r/GarminWatches/comments/13zmtan/creating_a_watch_face/)
- [Likenttt/garmin-connectiq-samples-brief-explanations: 佳明开发示例程序、话题问题集锦。Samples collection for Garmin connect IQ development.](https://github.com/Likenttt/garmin-connectiq-samples-brief-explanations)
- [Track Your Heartrate on Raspberry Pi with Ant+ - Using the Suunto Movestick Mini and Garmin Soft Strap Heart Rate Monitor](https://bin.re/blog/track-your-heartrate-on-raspberry-pi-with-ant/)
- [Compromising Garmin Sport Watches: A Deep Dive into GarminOS and Its MonkeyC VM \| Hacker News](https://news.ycombinator.com/item?id=35666025)

Documentations:

- [Connect IQ Basics](https://developer.garmin.com/connect-iq/connect-iq-basics/getting-started/)

Projects:

- [Code search results](https://github.com/search?q=instinct+language%3A%22Monkey+C%22+&type=code&p=1)
- [Repository search results](https://github.com/search?q=instinct+language%3A%22Monkey+C%22+&type=repositories)
- [acrossthekyle/garmin](https://github.com/acrossthekyle/garmin)
- Watch faces:
- [Making a custom Garmin watch face \| Antti Viitala](https://aviitala.com/posts/garmin-watchface-tutorial/)
- [rishubil/geektime: Geektime is a watchface for the Garmin Instinct 2](https://github.com/rishubil/geektime)
- [wolffshots/Snout: Simple straightforward data watchface](https://github.com/wolffshots/Snout)
- [kozzer/KozzerWatch: Custom watch face for my Garmin Forerunner 955 Solar](https://github.com/kozzer/KozzerWatch)
- [rOzzy1987/CarDash: Garmin datafield for cycling](https://github.com/rOzzy1987/CarDash)
- Apps & widgets:
- [individual-it/BatteryGuesstimate: Battery estimation for Garmin sportwatches](https://github.com/individual-it/BatteryGuesstimate)
- [r-smith/level: A level application for Garmin devices](https://github.com/r-smith/level)
Expand Down
5 changes: 3 additions & 2 deletions notes-development/GitHub.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GitHub Usage

Last modified: 2024-03-25 UTC
Last modified: 2024-07-25 +0000

- [Interesting posts](#interesting-posts)
- [Add SSH key to GitHub](#add-ssh-key-to-github)
Expand All @@ -15,6 +15,7 @@ Last modified: 2024-03-25 UTC
## Interesting posts

- [Working with advanced formatting - GitHub Docs](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting)
- [Anyone can access deleted and private repository data on GitHub \| Hacker News](https://news.ycombinator.com/item?id=41060102)

## Add SSH key to GitHub

Expand Down Expand Up @@ -97,5 +98,5 @@ Get `hosts` from the following sites:
- https://github.com/dotnetcore/FastGithub

[//begin]: # "Autogenerated link references for markdown compatibility"
[SSH#Create SSH key pair]: ../notes-OS/cross-platform/remote/SSH.md "SSH Usage"
[SSH#Create SSH key pair]: ../notes-OS/remote/SSH.md "SSH Usage"
[//end]: # "Autogenerated link references"
21 changes: 17 additions & 4 deletions notes-development/Haskell.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
# Haskell

Last modified: 2024-03-22 UTC
Last modified: 2024-10-17 +0000

- [Interesting posts](#interesting-posts)
- [VSCode](#vscode)
- [`settings.json`](#settingsjson)

## Interesting posts

- [Learn Haskell in Y Minutes](https://learnxinyminutes.com/docs/haskell/)
- [Haskell Cheat Sheet](https://hackage.haskell.org/package/CheatSheet-2.9/src/CheatSheet.pdf)
- [Why Haskell? \| Hacker News](https://news.ycombinator.com/item?id=41518600)
- [My Thoughts on OCaml vs Haskell/Rust in 2023 - Ecosystem - OCaml](https://discuss.ocaml.org/t/my-thoughts-on-ocaml-vs-haskell-rust-in-2023/12027)
- [me/007-My-Thoughts-on-OCaml-vs-Haskell-Rust-2023.md at master · sidkshatriya/me](https://github.com/sidkshatriya/me/blob/master/007-My-Thoughts-on-OCaml-vs-Haskell-Rust-2023.md)
- [To Haskell or To OCaml : haskell](https://www.reddit.com/r/haskell/comments/6didpj/to_haskell_or_to_ocaml/)
- [How can Haskell programmers tolerate Space Leaks? : haskell](https://www.reddit.com/r/haskell/comments/pvosen/how_can_haskell_programmers_tolerate_space_leaks/)
- [Real world Haskell : haskell](https://www.reddit.com/r/haskell/comments/17ydcyk/real_world_haskell/)
- [How can Haskell programmers tolerate Space Leaks? : haskell](https://www.reddit.com/r/haskell/comments/pvosen/how_can_haskell_programmers_tolerate_space_leaks/)
- [Doctest and literate haskell? · Issue #92 · sol/doctest](https://github.com/sol/doctest/issues/92#issuecomment-66225478)
- [Is Haskell (potentially) good for scripting? : r/haskell](https://www.reddit.com/r/haskell/comments/u2y67u/is_haskell_potentially_good_for_scripting/)
- [Why Haskell became my favorite scripting language](https://zignar.net/2021/07/09/why-haskell-became-my-favorite-scripting-language/)

Language:

- [Haskell Cheat Sheet](https://hackage.haskell.org/package/CheatSheet-2.9/src/CheatSheet.pdf)
- [haskell - Where does the name "xs" for pattern matching come from? - Stack Overflow](https://stackoverflow.com/questions/13701099/where-does-the-name-xs-for-pattern-matching-come-from):
> You might wonder where the variable name `xs` comes from in the Haskell function. This is a common naming pattern for lists: you can read the `s` as a suffix, so the name is essentially “plural of `x`”.
Toolkit:

- [God, why does the best language in the world has to have the worst tooling in the world? : haskell](https://www.reddit.com/r/haskell/comments/18ubkj5/god_why_does_the_best_language_in_the_world_has/)

Tutorials:

- [Learn Haskell in Y Minutes](https://learnxinyminutes.com/docs/haskell/)
- [Functional Programming](https://klasses.cs.uchicago.edu/archive/2023/fall/22300-1/)

## VSCode

### `settings.json`
Expand Down
Loading

0 comments on commit 3865a4a

Please sign in to comment.