Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
| public class Calendar { | |
| public static int getDayOfWeek(int day, int month, int year) { | |
| int monthTemp = (14 - month) / 12; | |
| int y0 = year - monthTemp; | |
| int x = y0 + (y0 / 4) - (y0 / 100) + (y0 / 400); | |
| int m0 = month + (12 * monthTemp) - 2; |
| # Create Static Ip on master and worker's nodes | |
| 1. sudo nano /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg | |
| 2. Enter in /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg | |
| network: {config: disabled} | |
| 3. sudo nano /etc/netplan/01-netcfg.yaml | |
| 4. Enter in /etc/netplan/01-netcfg.yaml | |
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: |
| Questions are not from any actual exam!!! | |
| Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl | |
| and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] | |
| Once the job has completed, check the logs to and export the result to pi-result.txt. | |
| Solution: |
| # Set up Postgres | |
| [DigitalOcean Guide for Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-22-04) | |
| # Set up Password | |
| ```bash | |
| postgres=# select passwd from pg_shadow where usename='username'; | |
| passwd | |
| -------------- | |
| md5... |
Check this out on Dev.to
| # start as root user | |
| sudo su | |
| # download and install libldap-2.5-0 | |
| curl -O http://debian.mirror.ac.za/debian/pool/main/o/openldap/libldap-2.5-0_2.5.13+dfsg-5_amd64.deb | |
| dpkg -i libldap-2.5-0_2.5.13+dfsg-5_amd64.deb | |
| # download and install libldap-dev | |
| curl -O http://debian.mirror.ac.za/debian/pool/main/o/openldap/libldap-dev_2.5.13+dfsg-5_amd64.deb | |
| dpkg -i libldap-dev_2.5.13+dfsg-5_amd64.deb |
This is a reference on how to realise virtualization on FreeBSD