This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ensure that Get-ChildItemColor is loaded | |
| Import-Module Get-ChildItemColor | |
| # Set l and ls alias to use the new Get-ChildItemColor cmdlets | |
| Set-Alias l Get-ChildItemColor -Option AllScope | |
| Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope | |
| Import-Module PSReadLine | |
| Set-PSReadLineOption -HistoryNoDuplicates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query user /server:$SERVER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - debug: | |
| msg: {{ ansible_nodename.split(".")[0] | lower }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $app = Get-WmiObject -Class Win32_Product | Where-Object { | |
| $_.Name -match “HP ProLiant Health Monitor Service (X64)” | |
| } | |
| # or use query | |
| $app = Get-WmiObject -Query "select * from Win32_Product where name='HP ProLiant Health Monitor Service (X64)'" | |
| $app.Uninstall() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- You have few options to use a network file as a backup source | |
| -- Map network drive/path, hosting file, under SAME user as MS-SQL Server. | |
| -- Use xp_cmdshell extended stored procedure to map network drive from inside of MS SQL (such way, command shell will have the same privilegies as the user account running SSMS) | |
| -- allow changes to advanced options | |
| EXEC sp_configure 'show advanced options', 1 | |
| GO | |
| -- Update currently configured values for advanced options. | |
| RECONFIGURE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias drmae='docker rm $(docker ps -qa --no-trunc --filter "status=exited")' | |
| docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://joecreager.com/custom-configurations-with-prometheus-operator/ | |
| https://habr.com/company/flant/blog/353410/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use_backend elasticsearch if { req.hdr(Host),regsub(:[0-9]+$,) -i elasticsearch.mydomain.local } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %{DATESTAMP:timestamp} %{HOSTNAME:source-ip} %{URIPROTO:method} %{URIPATH:request} (?:%{NOTSPACE:queryparam}|-) %{NUMBER:port} (?:%{NOTSPACE:username}|-) %{IPORHOST:clien-ip} %{NOTSPACE:useragent} (?:%{NOTSPACE:host}|-) %{NUMBER:status} %{NUMBER:sub-status} %{NUMBER:win32-status} %{NUMBER:time-taken} |
NewerOlder