https://stackoverflow.com/a/8636711
The trick is to add environment variables to sudoers file via sudo visudo command and add these lines:
Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy"taken from ArchLinux wiki.
| [alias] | |
| tracking = "!f() { git for-each-ref --format '%(refname:short):%(upstream:short)' 'refs/heads' | egrep -v ':$'; }; f" | |
| is-clean-workdir = "!f() { git diff --stat --exit-code || { echo \"Workdir dirty\"; exit 1; }; }; f" | |
| is-clean-index = "!f() { git diff --stat --cached --exit-code || { echo \"Index dirty\"; exit 2; }; }; f" | |
| is-clean = "!f() { git is-clean-workdir && git is-clean-index; }; f" | |
| co-merge = "!f() { local=\"$1\"; remote=\"$2\"; git checkout \"$local\"; git merge --ff-only \"$remote\"; }; f" | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| sync = "!f() { git is-clean || { echo Aborting sync.; exit 1; }; current=$(git current-branch); git fetch --all; git tracking | while IFS=: read local remote; do echo \"Merging $local with $remote\"; git co-merge \"$local\" \"$remote\"; done 3>&1 1>&2 2>&3 | egrep -i --color 'fatal|$' 3>&1 1>&2 2>&3; git checkout \"$current\"; }; f" |
| (n=16; for i in $(seq 1 2 $((n/2)) ); do echo -n "$((n-i+1)),$i,$((i+1)),$((n-i)),"; done | sed 's/,$/\n/') |
| # https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip | |
| pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U |
https://stackoverflow.com/a/8636711
The trick is to add environment variables to sudoers file via sudo visudo command and add these lines:
Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy"taken from ArchLinux wiki.
On Fedora since 19, RHEL / CentOS 7, and RHEL / CentOS 6 since this update,
the Shared System Certificates feature is available.
With that system, the correct method is to place the certificate to be trusted (in PEM format)
in /etc/pki/ca-trust/source/anchors/ and run sudo update-ca-trust.
(If the certificate is in OpenSSL’s extended BEGIN TRUSTED CERTIFICATE format,
place it in /etc/pki/ca-trust/source).
Remember:
| {type}({scope}): {subject} |
| {body} (optional) |
{type}:
feat (new feature for the user, not a new feature for build script)fix (bug fix for the user, not a fix to a build script)docs (changes to the documentation only)| openssl rand 16 | base64 > temp_key | |
| echo "Data to be encrypted" | openssl aes-256-cbc -pass file:temp_key > data.encrypted | |
| # Send the file "data.encrypted" | |
| # Send the temp_key (if possible, encrypted with the public key of the recipient) | |
| # Recipient side: | |
| openssl aes-256-cbc -d -in data.encrypted -pass file:temp_key | |
| # See also: https://bjornjohansen.no/encrypt-file-using-ssh-key |
| @startuml | |
| listfonts | |
| @enduml |
[//]: # (This may be the most platform independent comment)See also
| $ ip route get 10.32.213.84 | |
| 10.32.213.84 via 10.0.239.1 dev bond1.509 src 10.0.239.163 | |
| cache mtu 1500 advmss 1460 hoplimit 64 |