How to Lace Shoes for Running
Lace Shoes
The method below has an extra ring to prevent loosening.
dnsmasq
docker-compose file with DHCP enabledCreate Dockerfile as below, the VOLUME /data
is pointing to configuration folder
FROM ubuntu:latest
VOLUME /data
RUN apt update
RUN apt install dnsmasq -y
RUN apt install iproute2 -y
CMD dnsmasq -q -d --conf-file=/data/dnsmasq.conf --dhcp-broadcast
docker-compose.yml
fileMust add cap_add
parameter.
version: '2'
services:
dnsmasq:
container_name: dnsmasq
image: dnsmasq
build:
context: .
dockerfile: Dockerfile.dnsmasq
restart: unless-stopped
volumes:
- /app/dnsmasq/data:/data
networks:
- my_macvlan_250
cap_add:
- NET_ADMIN
networks:
my_macvlan_250:
external: true
This is the same as below command
docker run --cap-add=NET_ADMIN --name dnsmasq -d -it --restart unless-stopped -v /app/dnsmasq/data:/data --network my_macvlan_250 dnsmasq
On 11th November 2022, I joined SGX Cares Bull Charge Charity Run as company staff, the result is good but people told me it is shorter than last time. Although it is 5KM, I think maybe it is shorter.
Table of Contents
Event started on 16 April 2023. I got this just because of luck, the event reduced distances of both swimming and cycling. If not, I don't think I can complete in 4:30 hours.
Table of Contents
Event stated at 11:30 PM on 20 May 2023 for 42KM. During running, I got stomachache , could not even have deep breath, only can walk after 25km. Maybe because this is the first time I tried energy gels. Although got vomiting a bit, felt a bit better, still felt pain. Or maybe because ran too fast in first 21km (1:56), wanted to check my half marathon speed. Or maybe because inhaled water a few times, caused severe coughing. Still unclear.
OSIM Sundown Marathon 2023 - Result Website
Table of Contents
To trust Synology self generated CA in Linux OS, following steps can be used.
Control Panel => Security
Certificate
tabAdd
buttonsynology
Explore certificate
, then Next
There will be 4 files in the downloaded ZIP file
cert.pem
privkey.pem
syno-ca-cert.pem
syno-ca-privkey.pem
Copy file syno-ca-cert.pem
to server folder and rename it to .crt
cp syno-ca-cert.pem /usr/local/share/ca-certificates/syno-ca-cert.crt
update-ca-certificates
Note: the certificate file name must be .crt
For any services used certificate generated by Synology CA certificate, restart the service
systemctl restart <service>
openssl
commandRun following commands
openssl s_client -connect server_address:443 -CAfile /usr/local/share/ca-certificates/syno-ca-cert.crt
openssl s_client -connect server_address:443 -CApath /etc/ssl/certs
Should return 0 (ok)
Verify return code: 0 (ok)
curl
commandcurl --verbose <URL> --cacert /usr/local/share/ca-certificates/syno-ca-cert.crt
curl --verbose <URL>
Table of Contents
To trust self generated CA from client system, following steps can be used.
Click on lock icron beside address bar of browser, then view certificates.
The self generated CA certificate normally can be found in server, such as xxxx.ca.crt
.
Following command will print out CA certificate, remove unnecessary lines, such as DONE
, if any.
Note: I haven't validated the certificate retrieved using this method.
openssl s_client -showcerts -connect [server_address]:[port] < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
Copy CA certificate into /usr/local/share/ca-certificates
directory, such as xxxx.ca.crt
, then run update-ca-certificates
command to update system CA, then restart impacted service.
cp <xxxx.ca.crt> /usr/local/share/ca-certificates
update-ca-certificates
systemctl restart <service>
Note: the certificate file name must be .crt
Run following command, should return 0 (ok) as below.
openssl s_client -connect server_address:443 -CApath /etc/ssl/certs
...
Verify return code: 0 (ok)
After reboot of PVE, network interfaces detected, but no link activated, ip address
command shows all physical interfaces are down, and interfaces LED lights are shut off when loading OS.
Getting permission denied error when run ifup
command, when using python3 /usr/sbin/ifup -a
command, getting error as another instance of this application is already running
After using strace python3 /usr/sbin/ifup -a
command, found that the command tried to access folder /run/network
, but it doesn't exist.
Create folder /run/network
after rebooted, then run command python3 /usr/sbin/ifup -a
to bring up network manually.
Note: This is only a temporary solution, because the folder /run/network
will disappear. Will troubleshoot again when got time.
Control Panel => Security
Certificate
tabAdd
buttonRenew certificate
, then Next
Create certificate signed request (CSR)
, then Next
Download
Following files are created in downloaded ZIP file
server.csr
server.key
Following the steps in the page below to create and import the certificates
Use Synology DSM to create Self Signed Certificate with custom CA
Use Synology DSM to create Self Signed Certificate with custom CA
To copy one LV to another VG using LV mirror method. This method can not be performed on-line because of vgsplit
command.
Note: RHEL doesn't have cplv
command.
vgcreate vg01 /dev/vdb
lvcreate -L 1G -n test1 vg01
vgextend vg01 /dev/vdc
lvconvert --type raid1 --mirrors 1 /dev/vg01/test1 /dev/vdc
lvdisplay -m vg01/test1
lvconvert --splitmirrors 1 --name test2 /dev/vg01/test1
lvdisplay -m vg01/test1
lvdisplay -m vg01/test2
vgchange -a n vg01
vgsplit -t -v /dev/vg01 /dev/vg02 /dev/vdc
vgsplit -v /dev/vg01 /dev/vg02 /dev/vdc
lvs
vgchange -a y vg01
vgchange -a y vg02
How to move / copy logical volume (lv) to another volume group (vg)?