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.
(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
).
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 |
#!/bin/sh | |
# requires py_compile and pycodestyle Python module | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
#!/bin/sh | |
# requires py_compile and pycodestyle Python module | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
[//]: # (This may be the most platform independent comment)
See also
from os import path | |
import inspect | |
scriptdir = path.dirname(inspect.getfile(inspect.currentframe())) |