installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls| #!/bin/bash | |
| # Set script to exit on error | |
| set -e | |
| # Enable logging | |
| exec > >(tee -i /var/log/setup-script.log) | |
| exec 2>&1 | |
| echo "Starting script execution..." |
installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls| nmcli con add \ | |
| type wifi \ | |
| con-name "eduroam" | |
| ifname "wlp4s0" \ # Your wifi interface | |
| ssid "eduroam" \ | |
| wifi-sec.key-mgmt "wpa-eap" \ | |
| 802-1x.identity "<YOUR-STUDENT-ID>@lu.se" \ # May also use another university identification | |
| 802-1x.password "<YOUR-PASSWORD" \ | |
| 802-1x.system-ca-certs "yes" \ | |
| 802-1x.domain-suffix-match "radius.lu.se" \ |
I recently ran into a classic case of "our code is using way more memory than it should". So I took my first dive into memory profiling Rust code. I read several posts about this, including the following
regeditHKEY_LOCAL_MACHINEFile -> Load Hive<Windows Install Drive>:\Windows\system32\config\ and load SYSTEM1234 (this way this key block will live on top)| # %% Imports | |
| from __future__ import annotations | |
| import os | |
| # %% | |
| class FileBackwards: | |
| """Read a file line by line from the end. | |
| """ | |
| def __init__(self, fname: str, bufsize: int = 8192): | |
| file = open(fname, 'rb') |