Get PHP Intellisens to work in Visual Studio Code, on Windows 10

Robert AndresenUncategorized Leave a Comment

Step 1: Download PHP Download PHP from here: https://www.php.net/downloads.php, click on Windows downloads. I just downloaded the .zip file at the top: VC15 x64 Non Thread Safe (2020-Mar-17 16:16:15)Zip [24.78MB]sha256: 1a1a90e07dfcc3b5b0f1847c2de58c7bf5386e5dd4616d680fe8bee27a24985e Extract .zip file I extracted it to C:/data/php-7.4.4-nts-Win32-vc15-x64 Step 2: Add environment path I found this article with some nice images: https://www.forevolve.com/en/articles/2016/10/27/how-to-add-your-php-runtime-directory-to-your-windows-10-path-environment-variable/ Basically you have to: Go to System …

Disk on Home Assistant almost full

Robert AndresenUncategorized Leave a Comment

For a long time, the disk on Home Assistant box has been slowly filling up. I found that is was the MySQL DB docker container that took up all the space. My setup My Home Assistant runs in docker on an old Dell 7010 with Ubuntu 18.04. Data is recorded in another MySQL docker container. The HA container is running …

Using Adldap2

Robert AndresenUncategorized 6 Comments

I have been using Adldap v4.x at my work for a while now. After installing a test-server with PHP7, I found that the Adldap needed to be updated. I started with Adldap 5.x, but in the middle of the testing, it looked like the Adldap-project wasn’t maintained anymore. So I had to jump over to Adldap2, which wasn’t as straight …

Crontab (Linux/CentOS 7) – More frequent than 1 minute

Robert AndresenUncategorized Leave a Comment

Setting up crontab Open and edit crontab file   Add this line (Change the path to your own) This will open the cronscript.sh every minute.   Create a new shell-script file The .sh script will open the cron.php every 15 secounds.     PHP cronjob manager THIS IS NOT NEEDED TO USE CRONTAB – It’s just my own little crontab manager …

Apache Virtual Hosts on CentOS 7

Robert AndresenUncategorized Leave a Comment

This is a short guide for creating to virtual hosts on Apache with CentOS 7. For detailed description, see source at the bottom. Use sudo in front of the commands if your not root.   Create folders Give users permission to the folders Modify permissions to www-root Create a index.php file with some content on the web-folders we created. Create …

Hysnes fort

Robert AndresenUncategorized Leave a Comment

Søndag 14.09 tok jeg noen runder over Hysnes fort med dronen. Beklageligvis var batteriet til FPV-brillene flatt, så måtte fly sånn sett innenfor synsrekkevidde til en vær tid uten å se hva jeg egentlig filmet. Filmen ble derfor litt kortere og dårligere enn forventet, men fikk gjort det beste ut av det 🙂 Det er mye mer å se på …