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
| body { | |
| -ms-text-size-adjust: 100%; | |
| -webkit-text-size-adjust: 100%; | |
| line-height: 1.5; | |
| color: #24292e; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
| font-size: 16px; | |
| line-height: 1.5; | |
| word-wrap: break-word; | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| <title>Down For Maintenance</title> | |
| <style> | |
| body { background: #fff; font-family: Helvetica,Arial,sans-serif; margin: 0; padding: 0; } | |
| img { border: 0; } | |
| .wrapper { width: 500px; margin: 0 auto; } |
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
| # https://docs.microsoft.com/en-us/archive/blogs/friis/which-w3wp-exe-pid-corresponds-to-which-application-pool | |
| C:\Windows\System32\inetsrv\appcmd list wp |
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
| $env:HOME=$env:HOMESHARE | |
| if ((Test-Path $env:HOME) -and (!($env:HOME.contains(':')))){ | |
| $DriveLetter = $env:HOMEDRIVE.replace(':','') | |
| New-PSDrive -Name $DriveLetter -PSProvider FileSystem -Root $($env:HOMESHARE) | out-null | |
| } | |
| # Chocolatey profile | |
| $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
| if (Test-Path($ChocolateyProfile)) { |
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
| White='\033[1;37m' | |
| Black='\033[0;30m' | |
| DarkGray='\033[1;30m' | |
| Red='\033[0;31m' | |
| Green='\033[0;32m' | |
| Blue='\033[0;34m' | |
| Purple='\033[0;35m' | |
| Cyan='\033[0;36m' | |
| Yellow='\033[1;33m' | |
| Orange='\033[0;33m' |
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
| # docker-compose --file docker-registry-compose.yml --log-level DEBUG up --detach --build | |
| registry: | |
| restart: always | |
| image: registry:2 | |
| ports: | |
| - 8150:5000 | |
| volumes: | |
| - /home/docker/:/var/lib/registry |
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
| # 1 | |
| Get-WmiObject -Class Win32_UserAccount | |
| # Sample result: | |
| #2 | |
| Get-LocalGroupMember -name users | |
| # Sample result: | |
| #3 | |
| Get-LocalUser |
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
| # Download youtube playlist | |
| youtube-dl -o "d:/download/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f "best[width>=1080][ext=mp4]" https://www.youtube.com/playlist?list=PL-something |
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
| publi class Project | |
| { | |
| public void DoScrum() | |
| { | |
| Developers.ForEach(dev => | |
| { | |
| if(dev.IsMe) | |
| { | |
| Talking.Start(() => { | |
| if(NothingFurtherToSay |