Edited, memorised or added to reading list

on 19-Aug-2019 (Mon)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 4344646339852

Tags
#bash #bdd
Question
Describe the Give-When-Then blocks of the bash_spec
Answer

Given

  • I have '(.*)' evaluate the content in the regex group (.*);
  • I run '(.*)' evaluate the content in the regex group (.*) hiding the stdout.

When

  • I use with the arguments '(*.)' run the function defined in the Describe function with the arguments of the regex group (.*);
  • I use without arguments run the function defined in the Describe without arguments;
  • I run alias to without arguments step.

Then

  • It should be valid '(.*)' evaluate the content in the regex group (.*).

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
GitHub - voiski/bash_spec: BDD for bash
ED_VARIABLE =~ ^some?value.*regex$ ]]' Then It should be valid '[ -f someNewFile.log ]' Available steps It is just a initial and very generic steps, each one will basically evaluate the values. <span>Given I have '(.*)' evaluate the content in the regex group (.*); I run '(.*)' evaluate the content in the regex group (.*) hiding the stdout. When I use with the arguments '(*.)' run the function defined in the Describe function with the arguments of the regex group (.*); I use without arguments run the function defined in the Describe without arguments; I run alias to without arguments step. Then It should be valid '(.*)' evaluate the content in the regex group (.*). Background Background is a usefull feature that enables your scenarios to have a background base scenario. The background steps will run before each scenario. To use it, override the Ba







Flashcard 4344648174860

Tags
#bash #bdd
Question
How the define a base scenario in bash_spec ?
Answer
Background () { Given I have ' BRANCH=master ' When I run }

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
GitHub - voiski/bash_spec: BDD for bash
ackground Background is a usefull feature that enables your scenarios to have a background base scenario. The background steps will run before each scenario. To use it, override the Background. <span>Background() { Given I have 'BRANCH=master' When I run } Describe mehod_1 Then It should be valid '[ -f result.method_1.file ]' Describe mehod_2 Then It should be valid '[ -f result.method_2.file ]' Table of Contents Another BDD feature to im







Flashcard 4344650009868

Tags
#bash #bdd
Question
How does the table syntax work for the reuse of code ?
Answer
Table () { When I use with the arguments $1 Then It should be valid " [ $ACTION = ${2 :- $1 } ] " } Row ' build ' Row ' b ' ' build ' Row ' validate ' Row ' v ' ' validate '

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
GitHub - voiski/bash_spec: BDD for bash
code. Here you can write a scenario and define placeholders as normally you do with functions. The principe is simple, you override the Table function and make use of it with the Row function. <span>Table() { When I use with the arguments $1 Then It should be valid "[ $ACTION = ${2:-$1} ]" } Row 'build' Row 'b' 'build' Row 'validate' Row 'v' 'validate' Skip scenarios You can skip a number of scenarios in order to resume from failing scenarios for example. Or if you are adding a new one and you want to run from there. export SKIP_TEST=







Flashcard 4344651844876

Tags
#bash #bdd
Question
How to skip scenarios ?
Answer
export SKIP_TEST=12 bash my_bash_test.sh

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
GitHub - voiski/bash_spec: BDD for bash
idate' Row 'v' 'validate' Skip scenarios You can skip a number of scenarios in order to resume from failing scenarios for example. Or if you are adding a new one and you want to run from there. <span>export SKIP_TEST=12 bash my_bash_test.sh It times it fails, it prints the scenario number: --Error! THEN It should be valid somehing (test 14) How To extend? Initilization You may need to initialize some variables or even clea







Flashcard 4344653679884

Tags
#bash #bdd
Question
How to write a initialize() function in bash_spec ?
Answer

function init_script_data(){

MY_VAR=0

COUT_SOMETHING=0

unset IT_WILL_BE_CREATED

rm -f some.file echo " etc "

}


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
GitHub - voiski/bash_spec: BDD for bash
. We have a init method called init_script_data that you can override. It is generic, but you can redefine it in the middle of your code if you want to keep it isolated by a group of scenarios. <span>function init_script_data(){ MY_VAR=0 COUT_SOMETHING=0 unset IT_WILL_BE_CREATED rm -f some.file echo "etc" } Steps The steps are mapped in threee arrays with phrase as the key and function name as the value. GIVEN_MAP Steps that define the pre-conditions to the scenario; WHEN_MAP Steps related







5 Virtual Desktop Software – Multiple Users Sharing One Computer

Updated: June 5, 2019 / Home » Freeware and Software Reviews

A multiuser software allows multiple users share a single PC. Each user can run any application, movie or game simultaneously. There are pro and cons using such a system, I disagree on using it in an office environment because if the main system is down, the entire office literally goes into a shut down. Such system is ideal where productivity is not a priority, such as public library. Works great on Microsoft Windows 10.

statusnot read reprioritisations
last reprioritisation on reading queue position [%]
started reading on finished reading on

5 Virtual Desktop Software - Multiple Users Sharing One Computer
g" alt=" 6 Months Free Genuine Serial Number For Panda Internet Security Antivirus 2014" width="336" height="177" /> 6 Months Free Genuine Serial Number For Panda Internet Security Antivirus <span>5 Virtual Desktop Software – Multiple Users Sharing One Computer Updated: June 5, 2019 / Home » Freeware and Software Reviews A multiuser software allows multiple users share a single PC. Each user can run any application, movie or game simultaneously. There are pro and cons using such a system, I disagree on using it in an office environment because if the main system is down, the entire office literally goes into a shut down. Such system is ideal where productivity is not a priority, such as public library. Works great on Microsoft Windows 10. Alternative Article ➤ 4 Free P2P Intranet Software – Create Home Office File Sharing Network <img src="https://cdn4.geckoandfly.com/wp-content/uploads/2016/12/hardware_requirementsb1




Flashcard 4344658398476

Question
5 Virtual Desktop Software – [...]

Updated: June 5, 2019 / Home » Freeware and Software Reviews

A multiuser software allows multiple users share a single PC. Each user can run any application, movie or game simultaneously. There are pro and cons using such a system, I disagree on using it in an office environment because if the main system is down, the entire office literally goes into a shut down. Such system is ideal where productivity is not a priority, such as public library. Works great on Microsoft Windows 10.

Answer
Multiple Users Sharing One Computer

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
5 Virtual Desktop Software – Multiple Users Sharing One Computer Updated: June 5, 2019 / Home » Freeware and Software Reviews A multiuser software allows multiple users share a single PC. Each user can run any application, movie or game simultaneousl

Original toplevel document

5 Virtual Desktop Software - Multiple Users Sharing One Computer
g" alt=" 6 Months Free Genuine Serial Number For Panda Internet Security Antivirus 2014" width="336" height="177" /> 6 Months Free Genuine Serial Number For Panda Internet Security Antivirus <span>5 Virtual Desktop Software – Multiple Users Sharing One Computer Updated: June 5, 2019 / Home » Freeware and Software Reviews A multiuser software allows multiple users share a single PC. Each user can run any application, movie or game simultaneously. There are pro and cons using such a system, I disagree on using it in an office environment because if the main system is down, the entire office literally goes into a shut down. Such system is ideal where productivity is not a priority, such as public library. Works great on Microsoft Windows 10. Alternative Article ➤ 4 Free P2P Intranet Software – Create Home Office File Sharing Network <img src="https://cdn4.geckoandfly.com/wp-content/uploads/2016/12/hardware_requirementsb1







Flashcard 4344666787084

Question
How to declare an array in bash ?
Answer

We can explicitly create an array by using the declare command:

$ declare -a my_array

Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name.


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
in a moment. SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials. Create indexed or associative arrays by using declare <span>We can explicitly create an array by using the declare command: $ declare -a my_array Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name. Associative arrays can be created in the same way: the only thing we need to change is the option used: instead of lowercase -a we must use the -A option of the declare command: $ decla







Flashcard 4344669146380

Question
How to declare an associative array in bash ?
Answer

Associative arrays can be created in the same way: the only thing we need to change is the option used: instead of lowercase -a we must use the -A option of the declare command:

$ declare -A my_array

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
nd: $ declare -a my_array Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name. <span>Associative arrays can be created in the same way: the only thing we need to change is the option used: instead of lowercase -a we must use the -A option of the declare command: $ declare -A my_array This, as already said, it's the only way to create associative arrays in bash. Create indexed arrays on the fly We can create indexed arrays with a more concise syntax, by simply assign







Flashcard 4344670981388

Question
How to assign multiple items to an array ?
Answer

We can create indexed arrays with a more concise syntax, by simply assign them some values:

$ my_array=(foo bar)

In this case we assigned multiple items at once to the array


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
ercase -a we must use the -A option of the declare command: $ declare -A my_array This, as already said, it's the only way to create associative arrays in bash. Create indexed arrays on the fly <span>We can create indexed arrays with a more concise syntax, by simply assign them some values: $ my_array=(foo bar) In this case we assigned multiple items at once to the array, but we can also insert one value at a time, specifying its index: $ my_array[0]=foo Array operations Once an array is created, we can perform some useful operations on it, like display







Flashcard 4344672816396

Question

What does th code below have as output ?

$ for i in "${my_array[@]}"; do echo "$i"; done

Answer

foo

bar


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
clear when performing a for loop. As an example, imagine we have an array with two elements, "foo" and "bar": $ my_array=(foo bar) Performing a for loop on it will produce the following result: <span>$ for i in "${my_array[@]}"; do echo "$i"; done foo bar When using *, and the variable is quoted, instead, a single "result" will be produced, containing all the elements of the array: $ for i in "${my_array[*]}"; do echo "$i"; done







Flashcard 4344674651404

Question

What does the code below give as output ?

$ my_array=(foo bar baz) $ for index in "${!my_array[@]}"; do echo "$index"; done

Answer

0

1

2


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
ven possible to retrieve and print the keys used in an indexed or associative array, instead of their respective values. The syntax is almost identical, but relies on the use of the ! operator: <span>$ my_array=(foo bar baz) $ for index in "${!my_array[@]}"; do echo "$index"; done 0 1 2 The same is valid for associative arrays: $ declare -A my_array $ my_array=([foo]=bar [baz]=foobar) $ for key in "${!my_array[@]}"; do echo "$key"; done baz foo As you can see, being th







Flashcard 4344676486412

Question

What does the code below give as output ?

$ declare -A my_array

$ my_array=([foo]=bar [baz]=foobar)

$ for key in "${!my_array[@]}"; do echo "$key"; done

Answer

baz

foo


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
x is almost identical, but relies on the use of the ! operator: $ my_array=(foo bar baz) $ for index in "${!my_array[@]}"; do echo "$index"; done 0 1 2 The same is valid for associative arrays: <span>$ declare -A my_array $ my_array=([foo]=bar [baz]=foobar) $ for key in "${!my_array[@]}"; do echo "$key"; done baz foo As you can see, being the latter an associative array, we can't count on the fact that retrieved values are returned in the same order in which they were declared. Getting the size of a







Flashcard 4344678321420

Question

What does the code below give as output ?

$ my_array=(foo bar baz)

$ echo "the array contains ${#my_array[@]} elements"

Answer
the array contains 3 elements

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
d in the same order in which they were declared. Getting the size of an array We can retrieve the size of an array (the number of elements contained in it), by using a specific shell expansion: <span>$ my_array=(foo bar baz) $ echo "the array contains ${#my_array[@]} elements" the array contains 3 elements We have created an array which contains three elements, "foo", "bar" and "baz", then by using the syntax above, which differs from the one we saw before to retrieve the array values onl







Flashcard 4344680156428

Question

What does the code below do ?

$ my_array=(foo bar)

$ my_array+=(baz)

Answer
It appends baz into the array (foo bar). The result is (foo bar baz)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
e array by specifying respectively their index or associative key. In the case of indexed arrays, we can also simply add an element, by appending to the end of the array, using the += operator: <span>$ my_array=(foo bar) $ my_array+=(baz) If we now print the content of the array we see that the element has been added successfully: $ echo "${my_array[@]}" foo bar baz Multiple elements can be added at a time: $ my_array=(f







Flashcard 4344681991436

Question

How to delete an array element ?

$ my_array=(foo bar baz)

$ unset my_array[1]

$ echo ${my_array[@]} foo baz

Answer
unset

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
How to use arrays in bash script - LinuxConfig.org
eleting an element from the array To delete an element from the array we need to know it's index or its key in the case of an associative array, and use the unset command. Let's see an example: <span>$ my_array=(foo bar baz) $ unset my_array[1] $ echo ${my_array[@]} foo baz We have created a simple array containing three elements, "foo", "bar" and "baz", then we deleted "bar" from it running unset and referencing the index of "bar" in the array: in this ca







Flashcard 4344692215052

Question
Un graphe est défini par deux ensembles : ♦ ♦♦ ♦ ♦ ♦♦ ♦ un ensemble X= {x 1 ; x 2 ; …x n } dont les éléments sont appelés sommets, ♦ ♦♦ ♦ ♦ ♦♦ ♦ et un ensemble A= {a 1 ; a 2 ; …a m }, dont les éléments sont appelés arêtes.
Answer
[default - edit me]

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs