Tech notes
print('This is a test')
Webstuff
PHP ADFS SSO
- Booking system running on PHP using ADFS authentication for secure logins.
AD in applications for SSO
SimpleSAML.php is an award-winning application written in native PHP that deals with authentication. The project is lead by UNINETT, has a large user base, a helpful user community and a large set of external contributors.
https://simplesamlphp.org
Linux
Active/Passive failover (VRRP)
Keepalived
Keepalived implements a set of checkers to dynamically and adaptively maintain and manage loadbalanced server pool according their health. On the other hand high-availability is achieved by the Virtual Router Redundancy Protocol (VRRP).- Resources:
Video on Active-Passive Cluster with Keepalived & HAProxy (Mar 20, 2020)
Docker GitHub for osixia/docker-keepalived
- Resources:
HAProxy HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for very high traffic web sites and powers quite a number of the world's most visited ones. Over the years it has become the de-facto standard opensource load balancer, is now shipped with most mainstream Linux distributions, and is often deployed by default in cloud platforms.
- Resources:
Video on HAProxy Crash Course (TLS 1.3, HTTPS, HTTP/2 and more) (Dec 27, 2019)
- Resources:
MySQL sorry :(
mysql_connect()
function doesn't exist in PHP7.0. Migrate to PDO instead.
Windows
10
- Build in terminal packet sniffer pktmon
Microsoft released with the October 2018 Update a built-in packet sniffer for Windows 10 located in C:\Windows\system32\PktMon.exe. In order to collect packets you need to launch a Windows 10 command prompt as admin before using PktMon.