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-NetIPAddress | Where-Object {$_.AddressFamily -eq 'IPv4'} | Format-Table ifIndex,IPAddress,InterfaceAlias |
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
| whoami /groups /fo list | findstr /c:"Group Name:" | % {$_.replace("Group Name: ","")} | Sort-Object |
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-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device Parameters" | Where-Object -Property FlipFlopWheel -EQ -Value 0 | Set-ItemProperty -Name FlipFlopWheel -Value 1 |
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
| taskkill /im explorer.exe /f | |
| taskkill /im runtimebroker.exe /f | |
| del %USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer\iconcache* | |
| del %USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer\thumbcache* | |
| start explorer.exe |
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
| Host * | |
| StrictHostKeyChecking no | |
| UserKnownHostsFile /dev/null | |
| LogLevel ERROR |
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
| [ | |
| { | |
| "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", | |
| "hidden": false, | |
| "name": "Ubuntu-18.04", | |
| "source": "Windows.Terminal.Wsl" | |
| }, | |
| { | |
| "guid": "{67237ada-0f41-97ed-5b91-78d99368f41a}", | |
| "hidden": false, |
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
| #!/bin/sh | |
| sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y |
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
| #!/bin/sh | |
| tmux \ | |
| split-window -h ~/web/mcwflog \; \ | |
| split-window -v mcflog \; \ | |
| select-pane -t {left} \; \ | |
| send-keys 'cd web && npm run lint' Enter \; \ | |
| split-window -v \; \ | |
| send-keys 'cd web && npm test' Enter \; \ | |
| new-window -n viweb vi web -c ':cd web' \; \ | |
| new-window -n vipublic vi web/public -c ':cd web/public' \; \ |
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
| -- import Data.List | |
| import Data.Char | |
| data Color = Red | Green | Blue deriving (Show, Read) | |
| instance Read Color where | |
| -- readsPrec _ value = getColor $ lookup firstWord [("Red",Red),("Green",Green),("Blue",Blue)] | |
| -- where | |
| -- firstWord = takeWhile isAlpha value | |
| -- getColor (Just a) = [(a, dropWhile isAlpha value)] |
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
| #!/bin/bash | |
| root=${1%/} | |
| repositoryId=the-repository-id | |
| url=https://the.repository.url/ | |
| for pomRoot in `find $root -name '*.pom' -not -path "*-SNAPSHOT*"` | |
| do | |
| jarRoot=${pomRoot%.pom}.jar |