#Powershell Prompt
New-Item -ItemType File -Path $PROFILE -Force
notepad $PROFILEfunction global:prompt {
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
| function getIframeWindow(iframe_object) { | |
| var doc; | |
| if (iframe_object.contentWindow) { | |
| return iframe_object.contentWindow; | |
| } | |
| if (iframe_object.window) { | |
| return iframe_object.window; | |
| } |
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
| # Credit: internet | |
| Set-ExecutionPolicy RemoteSigned | |
| # Install Chocolatey https://chocolatey.org/install | |
| Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| # Install Boxstarter: | |
| . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force |
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
| [■,■,■,■].map(■→●) ⇒ [●,●,●,●] | |
| [■,●,■,▲].filter(■→true) ⇒ [■,■] | |
| [■,●,■,▲].find(●→true) ⇒ ● | |
| [■,●,■,▲].findIndex(●→true) ⇒ 1 | |
| [■,●,■,▲].fill(●) ⇒ [●,●,●,●] | |
| [■,●,■,▲].some(●→true) ⇒ true | |
| [■,●,■,▲].every(●→true) ⇒ false | |
| [ ].some(●→true) ⇒ false | |
| [ ].every(●→true) ⇒ true |
- git lg
git log --topo-order --all --graph --date=local --pretty=format:'%C(green)%h%C(reset) %><(55,trunc)%s%C(red)%d%C(reset) %C(blue)[%an]%C(reset) %C(yellow)%ad%C(reset)%n'
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
| namespace MyApp.Web.Security | |
| { | |
| using System; | |
| using System.Configuration; | |
| using System.Reflection; | |
| using System.Web; | |
| using System.Web.Configuration; | |
| public class MachineKeys | |
| { |
If the issue occurs in Safe Mode, try the methods listed below.
Reset the power plans to default and see if the shut down time is reduced.
Search CMD from the Start menu and choose Command Prompt (admin). Copy paste the following command and hit Enter: powercfg –restoredefaultschemes Once the command is executed, shut down the machine to see if the issue persists.