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
| #requires -Version 2 -Modules posh-git | |
| function Write-Theme { | |
| param( | |
| [bool] | |
| $lastCommandFailed, | |
| [string] | |
| $with | |
| ) |
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
| analytics.twitter.com | |
| api.mixpanel.com | |
| api.segment.io | |
| attestation.xboxlive.com | |
| az416426.vo.msecnd.net | |
| browser.pipe.aria.microsoft.com | |
| c.bing.com | |
| c.msn.com | |
| c1.microsoft.com | |
| cdn-gl.imrworldwide.com |
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
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "copyOnSelect": false, | |
| "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
| // Add custom keybindings to this array. | |
| // To unbind a key combination from your defaults.json, set the command to "unbound". | |
| // To learn more about keybindings, visit https://aka.ms/terminal-keybindings | |
| "keybindings": | |
| [ | |
| // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. |
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
| # ASP.NET Core | |
| # Build and test ASP.NET Core projects targeting .NET Core. | |
| # Add steps that run tests, create a NuGet package, deploy, and more: | |
| # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | |
| trigger: | |
| - main | |
| pool: | |
| vmImage: 'ubuntu-latest' |
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
| #CHECK THE PATH ON LINE 2 and the FEED on LINE 3 | |
| cd "C:\users\scott\Downloads" | |
| $a = ([xml](new-object net.webclient).downloadstring("https://channel9.msdn.com/Series/CSharp-101/feed/mp4")) | |
| $a.rss.channel.item | foreach{ | |
| $url = New-Object System.Uri($_.enclosure.url) | |
| $file = $url.Segments[-1] | |
| $file | |
| if (!(test-path $file)) { | |
| (New-Object System.Net.WebClient).DownloadFile($url, $file) | |
| } |
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
| <rewrite> | |
| <rewriteMaps configSource="rewritemaps.config" /> | |
| <rules> | |
| <rule name="Redirect Rule" stopProcessing="true"> | |
| <match url=".*" ignoreCase="false" /> | |
| <conditions> | |
| <add input="{StaticRedirects:{URL}}" pattern="(.+)" /> | |
| </conditions> | |
| <action type="Redirect" url="{C:1}" appendQueryString="false" redirectType="Permanent" /> | |
| </rule> |
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
| { | |
| "defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34bf85}", | |
| "initialRows": 30, | |
| "initialCols": 120, | |
| "alwaysShowTabs": true, | |
| "showTerminalTitleInTitlebar": true, | |
| "showTabsInTitlebar": true, | |
| "requestedTheme": "dark", | |
| "profiles": [ | |
| { |
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
| { | |
| "defaultProfile": "{7d04ce37-c00f-43ac-ba47-992cb1393215}", | |
| "initialRows": 30, | |
| "initialCols": 120, | |
| "alwaysShowTabs": true, | |
| "showTerminalTitleInTitlebar": true, | |
| "experimental_showTabsInTitlebar": true, | |
| "requestedTheme": "dark", | |
| "profiles": [ | |
| { |
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
| RED="$(tput setaf 1 2>/dev/null || echo '')" | |
| GREEN="$(tput setaf 2 2>/dev/null || echo '')" | |
| YELLOW="$(tput setaf 3 2>/dev/null || echo '')" | |
| NO_COLOR="$(tput sgr0 2>/dev/null || echo '')" | |
| function __ps1_bgl { | |
| eval "$(cat /mnt/c/Users/scott/.bgl-cache)" | |
| local trend="?" | |
| case "${nightscout_trend}" in |
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
| pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools" | |
| cmd /c "VsDevCmd.bat&set" | | |
| foreach { | |
| if ($_ -match "=") { | |
| $v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" | |
| } | |
| } | |
| popd | |
| Write-Host "`nVisual Studio 2017 Command Prompt variables set." -ForegroundColor Yellow |