Some tips for me and other


Gitlab + maintenance

Maintenance Rake Tasks Gather information about GitLab and the system it runs on This command gathers information about your GitLab installation and the System it runs on. These may be useful when asking for help or reporting issues. Source: Omnibus Installation sudo gitlab-rake gitlab:env:info Source Installation bundle exec rake gitlab:env:info RAILS_ENV=production Example output: System […]

WGET + Measure for web

wget -E -H -p -Q300K –user-agent=Mozilla –no-cache –no-cookies –no-check-certificate –delete-after –timeout=15 –tries=2 2>&1 | grep Downloaded

Windows Update + CheckSUR

If you have issues with updating Windows or installing some components you can try CheckSUR: Using: DISM.exe /Online /Cleanup-image /Scanhealth DISM.exe /Online /Cleanup-image /Restorehealth or DISM.exe /Online /Restorehealth

Skype for Business tricks

Add ?SL= at the end of the URL and give the meeting link to the external user(s). By adding ?SL= to the URL, the external user will be forced to use the Skype for Business Web App. Source:

Powershell + MySQL

Interesting script and MySQL connector for powershell: Script: Param( [Parameter( Mandatory = $true, ParameterSetName = ”, ValueFromPipeline = $true)] [string]$Query ) $MySQLAdminUserName = ‘username’ $MySQLAdminPassword = ‘password’ $MySQLDatabase = ‘MySQL-DB’ $MySQLHost = ‘MySQL-Host’ $ConnectionString = “server=” + $MySQLHost + “;port=3306;uid=” + $MySQLAdminUserName + “;pwd=” + $MySQLAdminPassword + “;database=”+$MySQLDatabase Try { [void][System.Reflection.Assembly]::LoadWithPartialName(“MySql.Data”) $Connection = New-Object MySql.Data.MySqlClient.MySqlConnection […]

Zabbix + Check your user parameters

To check your user parameters you can use the utility from zabbix client: zabbix_get I have some issues with my user parameter and ran the command: zabbix_get -s localhost -k “MyUserParameter” and got: ZBX_NOTSUPPORTED: Timeout while executing a shell script. I went to the zabbix_client.conf and set the timeout to 15. Now everything is OK […]

Exchange + Remove messages from outbound queue

Remove-Message -Filter {Subject -eq “FYI”} -WithNDR $false Remove-Message -Filter {FromAddress -eq “”} -WithNDR $false

Outlook + Disable MAPI/HTTP

Create the following key: HKCU\Software\Microsoft\Exchange Create a new DWORD value named MapiHttpDisabled and set the value to 1

Visual Studio 2017 + offline installer

There is the example how to create it: vs_community__144631470.1492700821.exe –layout D:\VS_Community2017

Vmware ESXi (6.5) backup/restore a configuration

Ooops. My USB-flash drive with ESXi 6.5 onboard was failed. The host was working but couldn’t save any changes in the configuration and etc. I connected to the host with PowerCLI and saved the configuration into a file: Get-VMHostFirmware -VMHost myESXi -BackupConfiguration -DestinationPath d:\backup Then I built a new USB-flash disk with fresh ESXi 6.5 […]

Previous Posts Next posts