This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recipher_store() { | |
store_path="$1"; | |
gpg_recipients=""; | |
if [ ! -f "${store_path}/.gpg-id" ]; then | |
echo "invalid password-store path" | |
return 1 | |
fi | |
for id in $(cat "${store_path}/.gpg-id"); do | |
gpg_recipients="${gpg_recipients} -r ${id}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple script to run on ESXi host to clone a VM | |
# VM must first be shutdown | |
# SOURCE/DEST dir must be absolute paths | |
# RENAME_VM_NAME_REGXP is a sed arg | |
# | |
# ./clone_vm.sh /vmfs/volumes/store1/vm_source /vmfs/volumes/store1/vm_dest s/vm_source/vm_dest/g | |
# | |
# Next to have clone a VM, find the vmx file from ESXi storage explorer, | |
# right click on it | |
# and select "Register VM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uudecode_sh() { | |
if command -v uudecode >/dev/null; then | |
uudecode -p | |
return | |
fi | |
bs=0 | |
while read -rs t ; do | |
if [ "$bs" -eq 1 ] ; then | |
if [ "a$t" = "aend" ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Refer to Node.js install script | |
# | |
# Run as root or insert `sudo -E` before `bash`: | |
# | |
# curl -sL http://open5gs.org/static/setup_3.x | bash - | |
# or | |
# wget -qO- http://open5gs.org/static/setup_3.x | bash - | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Are patients with hypertension and diabetes mellitus at increased risk for COVID-19 infection? | |
The most distinctive comorbidities of 32 non-survivors from a group of 52 intensive care unit patients with novel coronavirus disease 2019 (COVID-19) in the study by Xiaobo Yang and colleagues1 were cerebrovascular diseases (22%) and diabetes (22%). Another study2 included 1099 patients with confirmed COVID-19, of whom 173 had severe disease with comorbidities of hypertension (23·7%), diabetes mellitus (16·2%), coronary heart diseases (5·8%), and cerebrovascular disease (2·3%). In a third study,3 of 140 patients who were admitted to hospital with COVID-19, 30% had hypertension and 12% had diabetes. Notably, the most frequent comorbidities reported in these three studies of patients with COVID-19 are often treated with angiotensinconverting enzyme (ACE) inhibitors; however, treatment was not assessed in either study. Human pathogenic coronaviruses (severe acute respiratory syndrome coronavirus [SARS-CoV] and SARSCoV- |