svnservesvnserve.confSteps I did to set up a working SVN server on my Linux server.
Installation
sudo apt-get install subversion
Set up the repository directory
# create the directory for your repositories
sudo mkdir -p /var/svn/repos
Set needed permissions
# create a group to manage the repository
# and set the ownership and permissions
sudo addgroup svn
sudo chown -R :svn /var/svn/repos/
sudo chmod -R 2775 /var/svn/repos/
# add your user to this group
sudo adduser ${USER} svn
# add the group to your user
sudo usermod -aG svn ${USER}
Create a new repository using svnadmin
svnadmin create /var/svn/repos/project_name
You can connect to the repository using the svn+ssh protocol. The URL would be in this format: svn+ssh://your-ip/var/svn/repos/projec_name.
If you are on the same machine you can directly target the repo directory - svn co file:///var/svn/repos/demo/.
In each repository there is a directory called conf where you can set permissions and credentials.
conf/svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
conf/passwd
# add users in the format : user = password
tony = mypassword
Start the SVN Server as Daemon
svnserve -d
To import a project
svn import /projects/projec_name svn://your-ip/var/svn/repos/projec_name`.
To checkout a repository
svn co svn://your-ip/var/svn/repos/projec_name
Since we set anon-access to none you should be prompted for username and password which you created in the file conf/passwd.
Key bindings from the article. Short version.

When we hit http://domain1.com/?url=domain2.com server must redirect to http://domain2.com/
.htaccess content
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^url=(.*)$ [NC]
RewriteRule ^$ http://%1? [NC,L,R]
middleware is an Array of fn(req, res, next)
for (const fn of middleware) {
await new Promise(r => fn(req, res, () => r(true)))
}
return Promise.all(middleware.map(fn => {
return new Promise(resolve => {
fn(req, res, () => resolve(true));
})
}));
#!/bin/sh
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}'
Save the above as a script and run it, you will get:
$ ./foo.sh
Memory Usage: 4986/7994MB (62.37%)
Disk Usage: 23/68GB (35%)
CPU Load: 0.78
/ partition.