Основы Ansible для новичка
Эта статья не замена https://docs.ansible.com/, а скорее 101 - база, которая поможет начать понимать основные принципы работы
Ansible - в каноничном определении, система управления конфигурациями.
Основы Ansible для новичка
Эта статья не замена https://docs.ansible.com/, а скорее 101 - база, которая поможет начать понимать основные принципы работы
Ansible - в каноничном определении, система управления конфигурациями.
Оригинал Effective GO go version go1.7.4
How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.
Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.
These are the tools I use:
wslgit
)#!/bin/zsh | |
set -e | |
git_get_head() { | |
(git symbolic-ref "refs/remotes/${@}/HEAD" --short || git remote show "${@}" ) 2>/dev/null | grep "${@}/\|HEAD branch" | sed -E "s#${@}/|HEAD branch:##" | sed 's# ##g' | |
} | |
git_get_head "${1}" | |
exit 0 |
for i in {0..255} | |
do | |
printf "\x1b[38;5;%smcolour%s " "${i}" "${i}" | |
if (( ($i + 1) % 8 == 0 )) | |
then | |
echo "" | |
fi | |
done |
Secure notes in macos keychain are actually hex dumped generic passwords, with plist
as password value.
This plist contains data
node, which is base64 encoded rich text, but also a string
node, which is just plain text.
So fetching secure note plain text via command line (yq required)
get_secret_note() {
security find-generic-password -C note -s "$1" -w | xxd -revert -plain | yq --input-format xml --prettyPrint '.plist.dict.string'
}