This is a reference on how to realise virtualization on FreeBSD
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
# 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 |
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
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
# 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... |
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
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: |
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
# 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: |
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
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; |
NewerOlder