AMD Radeon 7400 Drivers for Windows 10

I installed Windows 10 as dual boot using Apple Boot Camp in my MacBook Pro 2011, initially there were problems with the drivers for the graphics card AMD Radeon 7400 series, so if you’re looking for AMD Radeon 7500 series drivers for Windows 10 just click here: https://www2.ati.com/drivers/15.201.1301-150819a-188578c-whql.zip The drivers work for AMD Radeon found […]

How to pass custom command-line parameters in InnoSetup

You can read custom parameters with the {param} constant, example: if ExpandConstant(‘{param:Mode|DefaultMode}’) = ‘DefaultMode’ then begin Log(‘Installing for default mode’); end else begin Log(‘Installing for different mode’); end;if ExpandConstant(‘{param:Mode|DefaultMode}’) = ‘DefaultMode’ then begin Log(‘Installing for default mode’); end else begin Log(‘Installing for different mode’); end; It works with syntax like /Name=Value. And can also be […]

Programmatically create desktop icon with InnoSetup

Inside “ssPostInstall” of CurStepChanged() add this code: //create user desktop shortcut ShortcutPath := ExpandConstant(‘{userdesktop}’) + ‘\YourApp.lnk’; CreateShellLink(ShortcutPath, ‘YourApp’, ExpandConstant(‘{app}\YourApp.exe’), ”, ExpandConstant(‘{app}’), ”, 0, SW_SHOWNORMAL);//create user desktop shortcut ShortcutPath := ExpandConstant(‘{userdesktop}’) + ‘\YourApp.lnk’; CreateShellLink(ShortcutPath, ‘YourApp’, ExpandConstant(‘{app}\YourApp.exe’), ”, ExpandConstant(‘{app}’), ”, 0, SW_SHOWNORMAL); If you want to disable desktop icon via command-line, use this: if ExpandConstant(‘{param:skipdesktopicon|false}’) <> ‘false’ […]

Use cURL to authenticate with JWT Bearer tokens

Example to pass the Bearer token in the Authorization header: curl -H ‘Accept: application/json’ -H "Authorization: Bearer ${TOKEN}" https://api.website.com/v1/userscurl -H ‘Accept: application/json’ -H "Authorization: Bearer ${TOKEN}" https://api.website.com/v1/users If you need to get the Bearer token use this: curl -s -X POST -H ‘Accept: application/json’ -H ‘Content-Type: application/json’ –data ‘{"username":"{username}","password":"{password}"}’ https://api.website.com/v1/authcurl -s -X POST -H ‘Accept: […]

Detect VMWare Virtual Machine

How to detect VMWare Virtual Machine via WMIC: wmic bios get serialnumber /format:listwmic bios get serialnumber /format:list The output is like this: SerialNumber=VMware-56 4d 95 b1 5a fa 05 0f-28 d0 2d d4 a3 fe e2 5dSerialNumber=VMware-56 4d 95 b1 5a fa 05 0f-28 d0 2d d4 a3 fe e2 5d Alternatively you can query […]

Detect Microsoft Virtual PC Virtual Machine

How to detect Virtual PC Virtual Machine via WMIC: wmic baseboard get manufacturer, product /format:listwmic baseboard get manufacturer, product /format:list The output is like this: Manufacturer=Microsoft Corporation Product=Virtual MachineManufacturer=Microsoft Corporation Product=Virtual Machine Another way is to query “csproduct” like this: wmic csproduct get vendor, name /format:listwmic csproduct get vendor, name /format:list The output is like […]

Fix MariaDB 10.5 “Can’t create test file” errors

I found some issues on recent MariaDB 10.5 installation. The problems seem related to the new protections applied by MariaDB. Here is how I fixed them: 1) Could not increase number of max_open_files sed -i ‘s/LimitNOFILE=16384/LimitNOFILE=150000/’ /etc/systemd/system/mysqld.service sed -i ‘s/LimitNOFILE=16384/LimitNOFILE=150000/’ /lib/systemd/system/mariadb.service systemctl daemon-reloadsed -i ‘s/LimitNOFILE=16384/LimitNOFILE=150000/’ /etc/systemd/system/mysqld.service sed -i ‘s/LimitNOFILE=16384/LimitNOFILE=150000/’ /lib/systemd/system/mariadb.service systemctl daemon-reload 2) Can’t create […]