Broadcasting typing to all panes:
# To activate:
:setw synchronize-panes on
#!/usr/bin/env bash | |
# Split the values passed as wwwXhhh in width and height | |
# | |
function wh_vals { | |
# Convert upper 'X' to lower 'x' so the 'cut' command works. | |
size="$(tr '[:upper:]' '[:lower:]' <<<"$1")" | |
width="$(cut -d'x' -f1 <<<"$size")" | |
height="$(cut -d'x' -f2 <<<"$size")" |
#!/usr/bin/env bash | |
# Split a string passed as parameter into array elements. | |
# "a, b, c" -> arr[a,b,c] | |
# https://stackoverflow.com/questions/10586153/split-string-into-an-array-in-bash | |
function splity { | |
IFS=', ' read -r -a array <<< "$1" | |
} | |
# Before splitting the string: |
Broadcasting typing to all panes:
# To activate:
:setw synchronize-panes on
Declaring username and password in a vault and reading the dictionary into a playbook.
The files
mysql_vault
andmysql_users
were renamed tolibrary_vault_key
andlibrary_vault
to include other secrets than MySQL only.
The dictionary, mysql_users
has the database name as key, and the values are the username and the password. The password for the vault is in the file mysql_vault,
which is a simple text file like this
Title | Year, Origin, Director, Rating, Run time | Link |
---|---|---|
Gimme Danger | 2016, USA, Jim Jarmusch, R, 1h 48m | https://www.imdb.com/title/tt1714917/ |
Total Recall | 1990, USA, Paul Verhoeven. R, 1h 53m | https://www.imdb.com/title/tt0100802/ |
Thank You for Smoking | 2005, US, Jason Reitman, R, 1h 32m | https://www.imdb.com/title/tt0427944/ |
The Prestige | 2006, USA, Christopher Nolan, PG-13, 2h 10m | https://www.imdb.com/title/tt0482571/ |
To install the WSL component on Windows, use the Opitional Features instead of suggested command:
Settings -> Apps -> Optional features -> More Windows Features -> Windows Subsystem for Linux