Skip to content

Instantly share code, notes, and snippets.

View p1-ra's full-sized avatar
:shipit:
Focusing

Aurelien Roose (p1-are) p1-ra

:shipit:
Focusing
View GitHub Profile
@p1-ra
p1-ra / recipher_store.sh
Created December 5, 2022 15:41
Re-cipher pass password-store
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}";
@p1-ra
p1-ra / esxi_clone_vm.sh
Created July 8, 2022 21:22
ESXi clone VM
# 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"
@p1-ra
p1-ra / uudecode.sh
Created June 6, 2021 11:35 — forked from rkitover/uudecode.sh
uudecode in POSIX sh
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
#!/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 -
#
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-