capacity_building:workshops:tooling
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| capacity_building:workshops:tooling [2022/10/08 11:53] – [Demo files used during the presentation] rolf001 | capacity_building:workshops:tooling [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | /* | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| + | */ | ||
| ====== Tools, Workflow and Resources for Effective Development | ====== Tools, Workflow and Resources for Effective Development | ||
| - | **Live Online Workshop for HSRW and ULSA by Harley Lara - 2022-10-06** | + | **Live Online Workshop for [[https:// |
| Workshop details: | Workshop details: | ||
| * **Topic**: Tools, workflow and resources for effective development | * **Topic**: Tools, workflow and resources for effective development | ||
| - | * **Description**: | + | * **Description**: |
| * **Date**: 06 October 2022 | * **Date**: 06 October 2022 | ||
| * **Time**: from 16:00 to 18:00 (CEST) | * **Time**: from 16:00 to 18:00 (CEST) | ||
| Line 15: | Line 17: | ||
| ---- | ---- | ||
| - | ===== Demo files used during | + | ===== Demo Scripts Used in the Workshop |
| - | <WRAP center round info 60%> | + | Download all the files here: {{ : |
| - | Please change | + | |
| - | </ | + | |
| - | * {{ : | + | * '' |
| - | * {{ : | + | * '' |
| - | * {{ : | + | * '' |
| - | * {{ : | + | * '' |
| - | * {{ : | + | * '' |
| + | |||
| + | ===== bash Demo ===== | ||
| <file bash hello-bash.sh> | <file bash hello-bash.sh> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | # | ||
| - | # Script used as demo during the workshop | ||
| - | # " | ||
| - | # 06 Oct. 2022, HSRW Germany | ||
| - | # | ||
| - | # Copyright (c) 2022 Harley Lara | ||
| - | # | ||
| - | # Permission is hereby granted, free of charge, to any person obtaining | ||
| - | # a copy of this software and associated documentation files (the | ||
| - | # " | ||
| - | # without limitation the rights to use, copy, modify, merge, publish, | ||
| - | # distribute, sublicense, and/or sell copies of the Software, and to | ||
| - | # permit persons to whom the Software is furnished to do so, subject to | ||
| - | # the following conditions: | ||
| - | # | ||
| - | # The above copyright notice and this permission notice shall be | ||
| - | # included in all copies or substantial portions of the Software. | ||
| - | # | ||
| - | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| - | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| - | # MERCHANTABILITY, | ||
| - | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
| - | # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
| - | # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
| - | # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| - | sudo apt-get update && \ | + | echo "hello bash scripting" |
| + | </ | ||
| + | |||
| + | ===== tmux Demo ===== | ||
| + | |||
| + | <file bash tmux-fzf.sh> | ||
| + | # | ||
| + | |||
| + | # Used the next line to set the list of directories | ||
| + | DIRECTORIES=" | ||
| + | # Uncommend the next line if you are using a external file | ||
| + | # for track the list of directories | ||
| + | # DIRECTORIES=$(cat ~/ | ||
| + | # Note about the external file | ||
| + | # | ||
| + | # ~/ | ||
| + | # | ||
| + | # | ||
| + | # One directory per line | ||
| + | |||
| + | if [[ $# -eq 1 ]]; then | ||
| + | SELECTED=$1 && [[ " | ||
| + | else | ||
| + | SELECTED=$(find $DIRECTORIES -mindepth 1 -maxdepth 1 -type d | fzf) | ||
| + | fi | ||
| + | |||
| + | if [[ -z $SELECTED ]]; then | ||
| + | exit 0 | ||
| + | fi | ||
| + | |||
| + | SELECTED_NAME=$(basename " | ||
| + | SELECTED_NAME=${SELECTED_NAME: | ||
| + | |||
| + | if [[ -n $TMUX ]]; then | ||
| + | # inside tmux | ||
| + | tmux switch-client -t " | ||
| + | tmux new-session -ds " | ||
| + | tmux switch-client -t " | ||
| + | elif [[ -z $TMUX ]]; then | ||
| + | # outside tmux | ||
| + | tmux new-session -s " | ||
| + | tmux attach -t " | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== apt - Linux Software Package Manager ===== | ||
| + | |||
| + | <file bash install-some-software-packages.sh> | ||
| + | # | ||
| + | |||
| + | sudo apt update && \ | ||
| apt-get install -y \ | apt-get install -y \ | ||
| build-essential \ | build-essential \ | ||
| Line 62: | Line 90: | ||
| libpthread-stubs0-dev | libpthread-stubs0-dev | ||
| - | sudo apt-get install -y \ | + | sudo apt install -y \ |
| curl \ | curl \ | ||
| htop \ | htop \ | ||
| Line 70: | Line 98: | ||
| </ | </ | ||
| - | ===== Encrytion | + | ===== Encryption |
| + | Encryption: | ||
| < | < | ||
| - | # Encryption: | + | $> ansible-vault encrypt FILE_NAME |
| - | ansible-vault encrypt FILE_NAME | + | </ |
| - | # Decryption: | + | Decryption: |
| - | ansible-vault decrypt FILE_NAME | + | < |
| + | $> ansible-vault decrypt FILE_NAME | ||
| </ | </ | ||
capacity_building/workshops/tooling.1665222802.txt.gz · Last modified: 2023/01/05 14:38 (external edit)