And English is a Work in Progress ⌛
# The full public facing url | |
#root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
root_url = http://localhost:80/grafana/ |
version: '3.7' | |
services: | |
ldap_server: | |
image: wshihadeh/openldap:withdata | |
environment: | |
LDAP_ADMIN_PASSWORD: test1234 | |
LDAP_BASE_DN: dc=shihadeh,dc=intern | |
ports: | |
- 389:389 | |
volumes: |
class Muyian extends Date { | |
to (date, locale) { | |
return this.diff(date, true); | |
} | |
form (date, locale) { | |
return this.diff(date, true); | |
} |
# Set the postgres user password | |
$env:PGPASSWORD = 'password'; | |
# Get the date and format into YYYY-MM-DD format | |
$date = Get-Date -format "yyyy-MM-dd" | |
# Test if there is a QSR directory | |
Set-Location / | |
if (Test-Path C:\QSR) { | |
Write-Host "C:\QSR already exists." -ForegroundColor Green | |
} else { | |
Write-Host "Creating QSR directory for PostgreSQL backup" -ForegroundColor Green |
# Adapted from https://stackoverflow.com/questions/35869985/datetime-datetime-is-not-json-serializable | |
import datetime | |
import json | |
import boto3 | |
def datetime_handler(x): | |
if isinstance(x, datetime.datetime): | |
return x.isoformat() |
Angular Specific:
General:
Here I will describe a simple configuration of the slurm management tool for launching jobs in a really simplistic cluster. I will assume the following configuration: a main node (for me it is an Arch Linux distribution) and 3 compute nodes (for me compute nodes are Debian VMs). I also assume there is ping access between the nodes and some sort of mechanism for you to know the IP of each node at all times (most basic should be a local NAT with static IPs)
Slurm management tool work on a set of nodes, one of which is considered the master node, and has the slurmctld
daemon running; all other compute nodes have the slurmd
daemon. All communications are authenticated via the munge
service and all nodes need to share the same authentication key. Slurm by default holds a journal of activities in a directory configured in the slurm.conf
file, however a Database management system can be set. All in all what we will try to do is:
- Install `munge