diff --git a/.zk/notebook.db b/.zk/notebook.db index 91817b5..6f9dc90 100644 Binary files a/.zk/notebook.db and b/.zk/notebook.db differ diff --git a/zk/AWS_CLI.md b/zk/AWS_CLI.md index 248d185..b0a103f 100644 --- a/zk/AWS_CLI.md +++ b/zk/AWS_CLI.md @@ -48,3 +48,22 @@ aws cloudformation delete-stack --stack-name --region ``` aws ce get-cost-and-usage --time-period Start=$(date +%Y-%m-01),End=$(date -d @$(( $(date +%s) + 86400 )) +%Y-%m-%d) --granularity MONTHLY --metrics "UnblendedCost" "UsageQuantity ``` + +### Retrieve current user + +``` +aws-sts get-caller-identity +``` + +### List users + +``` +aws configure list +aws configure list-profiles +``` + +### View profile data + +``` +vim ./aws/credentials +``` diff --git a/zk/Daemons.md b/zk/Daemons.md index a52f71c..43dbcb4 100644 --- a/zk/Daemons.md +++ b/zk/Daemons.md @@ -1,6 +1,6 @@ --- tags: - - computer-architecture + - operating-systems --- # Daemons diff --git a/zk/Data_types_in_MySQL.md b/zk/Data_types_in_MySQL.md index a7f2e82..a9630da 100644 --- a/zk/Data_types_in_MySQL.md +++ b/zk/Data_types_in_MySQL.md @@ -2,6 +2,7 @@ tags: - SQL - databases + - data-types --- # Data types in MySQL diff --git a/zk/Database_options_on_AWS.md b/zk/Database_options_on_AWS.md index a2d5f7e..d960520 100644 --- a/zk/Database_options_on_AWS.md +++ b/zk/Database_options_on_AWS.md @@ -1,5 +1,7 @@ --- -tags: [AWS] +tags: + - AWS + - databases --- # Database options diff --git a/zk/DeMorgan's_Laws.md b/zk/DeMorgan's_Laws.md index 77d967c..864c958 100644 --- a/zk/DeMorgan's_Laws.md +++ b/zk/DeMorgan's_Laws.md @@ -1,5 +1,8 @@ --- -tags: [] +tags: + - theorems + - logic + - propositional-logic --- # DeMorgan's Laws diff --git a/zk/Devices.md b/zk/Devices.md index 49baf3d..a900107 100644 --- a/zk/Devices.md +++ b/zk/Devices.md @@ -1,5 +1,7 @@ --- tags: + - computer-architecture + - Linux --- # Devices @@ -42,7 +44,7 @@ brw-rw---- 1 root disk 259, 3 Jun 4 11:00 nvme0n1p3 > programs like `ls` and `cat`. The -[mode](File_permissions_and_execution.md#what-the-output-means) +[mode](File_permissions_and_execution_in_Bash.md#what-the-output-means) is different from ordinary files. Each device file is prepended with `b, p, c, s` before the standard permissions. These stand for the major types of devices: _block, character, pipe_ and _socket_. diff --git a/zk/Digital_circuits.md b/zk/Digital_circuits.md index 53e7be7..818928a 100644 --- a/zk/Digital_circuits.md +++ b/zk/Digital_circuits.md @@ -1,5 +1,6 @@ --- -tags: [circuits] +tags: + - electronics --- # Digital circuits diff --git a/zk/Disjunction_Elimination.md b/zk/Disjunction_Elimination.md index 5fa49a1..8f08aee 100644 --- a/zk/Disjunction_Elimination.md +++ b/zk/Disjunction_Elimination.md @@ -1,5 +1,7 @@ --- -tags: [] +tags: + - propositional-logic + - logic --- # Disjunction Elimination diff --git a/zk/Disjunction_Introduction.md b/zk/Disjunction_Introduction.md index 030db84..072ea21 100644 --- a/zk/Disjunction_Introduction.md +++ b/zk/Disjunction_Introduction.md @@ -1,5 +1,7 @@ --- -tags: [] +tags: + - propositional-logic + - logic --- # Disjunction Introduction diff --git a/zk/Disk_info.md b/zk/Disk_info.md index 6536f86..758efc8 100644 --- a/zk/Disk_info.md +++ b/zk/Disk_info.md @@ -1,5 +1,9 @@ --- -tags: [systems-programming] +tags: + - systems-programming + - disks + - procedural + - Linux --- # Disk info routines diff --git a/zk/Docker_CLI.md b/zk/Docker_CLI.md index 2f52361..0de6546 100644 --- a/zk/Docker_CLI.md +++ b/zk/Docker_CLI.md @@ -1,7 +1,9 @@ --- id: 6g54 title: Docker_CLI -tags: [] +tags: + - docker + - shell created: Saturday, March 30, 2024 --- diff --git a/zk/Docker_compose_and_Dockerfile_difference.md b/zk/Docker_compose_and_Dockerfile_difference.md index f1cc515..2e65708 100644 --- a/zk/Docker_compose_and_Dockerfile_difference.md +++ b/zk/Docker_compose_and_Dockerfile_difference.md @@ -1,7 +1,8 @@ --- id: fw56 title: Docker compose and Dockerfile difference -tags: [] +tags: + - docker created: Tuesday, March 26, 2024 --- diff --git a/zk/Docker_rough_notes.md b/zk/Docker_rough_notes.md deleted file mode 100644 index e39850c..0000000 --- a/zk/Docker_rough_notes.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -id: dmuz -title: Docker_rough_notes -tags: [] -created: Saturday, March 30, 2024 ---- - -# Docker_rough_notes - -## Creating and running a simple image (without Docker compose) - -Create the Dockerfile in the root of the project. - -Then build the image from root. - -``` -docker build -t image-name . -``` - -The image name is defined at this point, not pre-defined. - -If successful, run the image: - -``` -docker run --name your-container-name image-name -``` - -Again, the container-name is defined at the point of the `run` declaration. diff --git a/zk/Docker_storage.md b/zk/Docker_storage.md index d1d6b1b..4764fd3 100644 --- a/zk/Docker_storage.md +++ b/zk/Docker_storage.md @@ -1,3 +1,8 @@ +--- +tags: + - docker +--- + # Docker storage The following problems related to storage face containerized environments: diff --git a/zk/Errata.md b/zk/Errata.md deleted file mode 100644 index 8ecb1be..0000000 --- a/zk/Errata.md +++ /dev/null @@ -1,10 +0,0 @@ -- Investigate AWS Amplify, specifically how it relates to local development -- VSCode plugin for AWS -- VSCode plugin for Mongo -- Research what Elastic Beanstalk is and how it differs from other types of - development on AWS -- Step functions -- CloudFormation -- ElastiCache -- CloudFront -- CloudWatchkz diff --git a/zk/Factory_pattern.md b/zk/Factory_pattern.md index 1833ec4..914713d 100644 --- a/zk/Factory_pattern.md +++ b/zk/Factory_pattern.md @@ -1,6 +1,7 @@ --- tags: - OOP + - design-patterns --- # Factory pattern diff --git a/zk/File_permissions_and_execution.md b/zk/File_permissions_and_execution_in_Bash.md similarity index 100% rename from zk/File_permissions_and_execution.md rename to zk/File_permissions_and_execution_in_Bash.md diff --git a/zk/Filesystems.md b/zk/Filesystems.md index ce6afca..cd7480f 100644 --- a/zk/Filesystems.md +++ b/zk/Filesystems.md @@ -1,6 +1,8 @@ --- tags: - disks + - computer-architecture + - operating-systems --- # Filesystems diff --git a/zk/Find.md b/zk/Find_Bash_command.md similarity index 100% rename from zk/Find.md rename to zk/Find_Bash_command.md diff --git a/zk/format_specifiers_in_c.md b/zk/Format_specifiers_in_C.md similarity index 98% rename from zk/format_specifiers_in_c.md rename to zk/Format_specifiers_in_C.md index 2d74f65..980729d 100644 --- a/zk/format_specifiers_in_c.md +++ b/zk/Format_specifiers_in_C.md @@ -1,7 +1,8 @@ --- id: 5faz2y2e title: Format specifiers in C -tags: [] +tags: + - C created: Thursday, February 29, 2024 | 17:41 --- diff --git a/zk/Four_bit_adder.md b/zk/Four_bit_adder.md index 84b318e..3f3f627 100644 --- a/zk/Four_bit_adder.md +++ b/zk/Four_bit_adder.md @@ -1,5 +1,7 @@ --- -tags: [logic-gates, binary] +tags: + - logic-gates + - binary --- # Four-bit adder diff --git a/zk/Frequency_counters.md b/zk/Frequency_counters.md index 15dc0d0..472abd3 100644 --- a/zk/Frequency_counters.md +++ b/zk/Frequency_counters.md @@ -1,5 +1,6 @@ --- -tags: [] +tags: + - data-structures --- # Frequency counters diff --git a/zk/Frequent_commands.md b/zk/Frequent_commands.md deleted file mode 100644 index e290e53..0000000 --- a/zk/Frequent_commands.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -tags: [AWS] ---- - -# SAM frequent commands - -### Retrieve current user - -``` -aws-sts get-caller-identity -``` - -### List users - -``` -aws configure list -aws configure list-profiles -``` - -### View profile data - -``` -vim ./aws/credentials -``` diff --git a/zk/Full_example.md b/zk/Full_Node_API_example.md similarity index 100% rename from zk/Full_example.md rename to zk/Full_Node_API_example.md diff --git a/zk/Functions_called_on_click.md b/zk/Functions_called_on_click.md deleted file mode 100644 index d9cef1d..0000000 --- a/zk/Functions_called_on_click.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -tags: - - javascript - - react - - testing ---- - -# Testing that functions are called on click events - -https://stackoverflow.com/a/73167308 diff --git a/zk/Further_examples_of_generics.md b/zk/Further_examples_of_TS_generics.md similarity index 100% rename from zk/Further_examples_of_generics.md rename to zk/Further_examples_of_TS_generics.md diff --git a/zk/Generics.md b/zk/Generics_in_TypeScript.md similarity index 100% rename from zk/Generics.md rename to zk/Generics_in_TypeScript.md diff --git a/zk/Global_object.md b/zk/Global_object_in_NodeJS.md similarity index 100% rename from zk/Global_object.md rename to zk/Global_object_in_NodeJS.md diff --git a/zk/Guide_to_YAML.md b/zk/Guide_to_YAML.md index 8fb4018..c72a213 100644 --- a/zk/Guide_to_YAML.md +++ b/zk/Guide_to_YAML.md @@ -1,5 +1,6 @@ --- -tags: [] +tags: + - yaml --- # Guide to YAML diff --git a/zk/HTTP_request_types.md b/zk/HTTP_request_types.md index 3bbc5fa..b43d114 100644 --- a/zk/HTTP_request_types.md +++ b/zk/HTTP_request_types.md @@ -1,5 +1,6 @@ --- -tags: [] +tags: + - REST --- ## GET diff --git a/zk/Headless network setup.md b/zk/Headless network setup.md deleted file mode 100644 index 1d53d90..0000000 --- a/zk/Headless network setup.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: hb10 -title: Headless network setup -tags: [networks, Linux] -created: Wednesday, June 12, 2024 ---- - -# Headless network setup - -If you are using a headless system and you aren't using an ethernet connection, -you face a chicken-egg issue of how to connect the device to WiFi via `ssh` when -the device isn't yet on the network. - -You can get around this by saving a file called `wp_supplicant.conf` to the -`/boot` directory of the device. This specifies the SSID name and password and -will be used to auto-connect when the device boots. - -For example: - -``` -country=GB -ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev -update_config=1 -network={ - ssid="SKYVL7XP" - scan_ssid=1 - psk="WIFI_PASSWORD" - key_mgmt=WPA-PSK -} -``` - -## Related notes diff --git a/zk/Headless_network_setup.md b/zk/Headless_network_setup.md index 4ae2627..ec1f265 100644 --- a/zk/Headless_network_setup.md +++ b/zk/Headless_network_setup.md @@ -1,12 +1,35 @@ --- id: hb10 title: Headless network setup -tags: [] -created: Wednesday, June 12, 2024 +tags: + - networks + - Linux + - raspberry-pi +created: Wednesday, June 12, 2024 --- + # Headless network setup +If you are using a headless system and you aren't using an ethernet connection, +you face a chicken-egg issue of how to connect the device to WiFi via `ssh` when +the device isn't yet on the network. + +You can get around this by saving a file called `wp_supplicant.conf` to the +`/boot` directory of the device. This specifies the SSID name and password and +will be used to auto-connect when the device boots. + +For example: + +``` +country=GB +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 +network={ + ssid="SKYVL7XP" + scan_ssid=1 + psk="WIFI_PASSWORD" + key_mgmt=WPA-PSK +} +``` ## Related notes - - diff --git a/zk/Hexadecimal_number_system.md b/zk/Hexadecimal_number_system.md index b083496..0d340e7 100644 --- a/zk/Hexadecimal_number_system.md +++ b/zk/Hexadecimal_number_system.md @@ -1,5 +1,8 @@ --- -tags: [number-systems] +tags: + - number-systems + - hardware + - computer-architecture --- # Hexadecimal number system diff --git a/zk/Integrated_circuits.md b/zk/Integrated_circuits.md index 8f7e44e..fec4953 100644 --- a/zk/Integrated_circuits.md +++ b/zk/Integrated_circuits.md @@ -1,5 +1,7 @@ --- -tags: [logic-gates] +tags: + - logic-gates + - electronics --- # Integrated circuits diff --git a/zk/Intersection_types.md b/zk/Intersection_types_in_TypeScript.md similarity index 100% rename from zk/Intersection_types.md rename to zk/Intersection_types_in_TypeScript.md diff --git a/zk/Iterating_through_complex_data_structures_in_Python.md b/zk/Iterating_through_complex_data_structures_in_Python.md index 47d2d2b..01d1fb3 100644 --- a/zk/Iterating_through_complex_data_structures_in_Python.md +++ b/zk/Iterating_through_complex_data_structures_in_Python.md @@ -116,7 +116,7 @@ string: ``` We could also use -[list comprehension](List_comprehension_etc.md) +[list comprehension](List_comprehension_in_Python.md) to achieve the same outcome: ```py @@ -193,7 +193,7 @@ will simply overwrite the old value for that key. Accordingly, we create a dictionary which uses the unique key in each list as the key of each dictionary entry via -[dictionary comprehension](List_comprehension_etc.md#dictionary-comprehension) +[dictionary comprehension](List_comprehension_in_Python.md#dictionary-comprehension) that loops through each value in the inner lists of the multidimensional array. We then parse the values of the dictionary into a list. diff --git a/zk/Killing_processes.md b/zk/Killing_processes.md index f32c455..cb88ff8 100644 --- a/zk/Killing_processes.md +++ b/zk/Killing_processes.md @@ -1,6 +1,7 @@ --- tags: - shell + - procedural --- ## Kill a process running on a port diff --git a/zk/LEDs.md b/zk/LEDs.md index cfda4fb..c1e1dd7 100644 --- a/zk/LEDs.md +++ b/zk/LEDs.md @@ -1,5 +1,6 @@ --- -tags: [electricity, circuits] +tags: + - electronics --- # LEDs diff --git a/zk/Lambda_directory_structure.md b/zk/Lambda_directory_structure.md index fcfa6df..21af104 100644 --- a/zk/Lambda_directory_structure.md +++ b/zk/Lambda_directory_structure.md @@ -1,5 +1,7 @@ --- -tags: [AWS] +tags: + - AWS + - aws-lambda --- # Lambda directory structure diff --git a/zk/Lambdas_in_Python.md b/zk/Lambdas_in_Python.md index 9fe2a21..7728412 100644 --- a/zk/Lambdas_in_Python.md +++ b/zk/Lambdas_in_Python.md @@ -1,5 +1,8 @@ --- -tags: [python] +tags: + - python + - aws-lambda + - AWS --- # Lambdas in Python diff --git a/zk/Linux_disk_partitions.md b/zk/Linux_disk_partitions.md index cea4d04..33ea04a 100644 --- a/zk/Linux_disk_partitions.md +++ b/zk/Linux_disk_partitions.md @@ -1,6 +1,8 @@ --- tags: - disks + - Linux + - procedural --- # Linux disk partitions diff --git a/zk/List_comprehension_etc.md b/zk/List_comprehension_in_Python.md similarity index 100% rename from zk/List_comprehension_etc.md rename to zk/List_comprehension_in_Python.md diff --git a/zk/Listing_and_navigating_directories.md b/zk/Listing_and_navigating_directories_in_the_Shell.md similarity index 100% rename from zk/Listing_and_navigating_directories.md rename to zk/Listing_and_navigating_directories_in_the_Shell.md diff --git a/zk/Lists_and_arrays.md b/zk/Lists_and_arrays_in_Bash.md similarity index 100% rename from zk/Lists_and_arrays.md rename to zk/Lists_and_arrays_in_Bash.md diff --git a/zk/Read.md b/zk/Read.md index 530723b..30eac10 100644 --- a/zk/Read.md +++ b/zk/Read.md @@ -34,7 +34,7 @@ read ## Example of piping to read -Here we use [find](Find.md) to collate the files in +Here we use [find](Find_Bash_command.md) to collate the files in the current directory and then pipe them to read. ```bash diff --git a/zk/Test_values_in_Bash.md b/zk/Test_values_in_Bash.md index db3d7f8..14928e5 100644 --- a/zk/Test_values_in_Bash.md +++ b/zk/Test_values_in_Bash.md @@ -117,4 +117,4 @@ fi ``` > Note: this syntax can also be used to test if a given element exists in an -> [array](Lists_and_arrays.md). +> [array](Lists_and_arrays_in_Bash.md). diff --git a/zk/http.md b/zk/http_in_Node.md similarity index 100% rename from zk/http.md rename to zk/http_in_Node.md diff --git a/zk/jq.md b/zk/jq.md index 33dea09..3860605 100644 --- a/zk/jq.md +++ b/zk/jq.md @@ -1,6 +1,7 @@ --- tags: - json + - shell --- # jq