Explore tweets tagged as #powershelltip
@jpomfret
Jess Pomfret (@[email protected])
5 years
Did you know the #PowerShell split method has a 'MaxSubString' parameter?. If you specify .split('.',2) it'll split the string at the first two . and then stop #PowerShellTip
Tweet media one
4
18
49
@ChendrayanV
Chen V
8 years
#PowerShellTip get odd numbers in oneliner. (1. 10).where({$_ % 2})
Tweet media one
1
3
10
@ChendrayanV
Chen V
8 years
#PowerShellTip to zoom in ISE or VS Code by sendkeys class and sendwaitmethod().^ is 'CTRL' and {ADD} is '+'.Zoom by 5% πŸ˜‰
Tweet media one
1
5
14
@NourozGaming
Nzino
6 years
Did you know that you can assign multiple variables via the Split operator (and string method)?. #PowerShell #PowerShellTip
0
0
2
@nomadoflight
Kumar B.
4 years
----------#PowerShell Tip #2----------. Get-Help automatically adds the wildcard characters behind the scenes. In the example, the (*) wildcard characters are not required and omitting them produces the same result. #PowerShellTip #girlswhocode #100DaysOfCode #azure #Microsoft
Tweet media one
0
2
3
@adbertram
Adam Bertram
10 years
Make your code editor window the same size as your normal column length to discourage long lines. #PowerShellTip http://t.co/Lr3OaVXhoA.
Tweet media one
0
0
0
@ChendrayanV
Chen V
8 years
#PowerShellTip to find methods overload definitions [math]::abs
Tweet media one
0
0
4
@DevOpsJeremy
DevOps Jeremy
1 year
@deadlydog @blackboxcoder Maybe it'd be valuable for tiPS to add something like a 'FeedbackPattern' property to the PowerShellTip class? A non-breaking change that would make tiPS extensible to Feedback Providers. Any FeedbackProvider like PSClippy could search for tips that match the cmd that was ran
Tweet media one
1
0
1
@JBLRacing
Joe Blaauw
3 years
If you are using PowerShell as your terminal in VSCode, you can pipe any output or variable to 'New-EditorFile'. 😎#powershelltip
Tweet media one
0
0
0
@ve3ofa
David Johnson
7 years
PowerShell Tip: Parse a date inside a string
Tweet media one
0
1
0
@Cyberipman
cyber-ipman
7 months
#PowerShellTip: To change your prompt, use the following syntax:. function prompt { 'Test: ' + (Get-Location) + '> '}. You can then retrieve the contents of the function with the following:. Get-Content function:\prompt
Tweet media one
1
0
1
@SasStu
Sascha Stumpler πŸ’» (@[email protected])
7 years
#powershell PowerShell Tip: Parse a date inside a string
Tweet media one
0
0
0
@ChendrayanV
Chen V
7 years
#PowerShellTip to render HTML on browser using #Polaris module! .Working on own middleware template. Try it yourself! .
Tweet media one
Tweet media two
Tweet media three
0
1
3
@jkavanagh58
jkavanagh58πŸ‡ΊπŸ‡Έ
7 years
#PowerShell Tip: Parse a date inside a string
0
0
0
@ChendrayanV
Chen V
6 years
#PowerShellTip #PowerShell one liner .Get previous month last date .([DateTime]::Today.AddDays(- ([datetime]::)).ToLongDateString()
Tweet media one
0
0
1
@objectivecyd
Cyd's Objective
10 years
@orzelc: If you access that reference sys via Windows, this should help: #powershelltip.
0
0
1
@uSlackr
Greg Martin
15 years
#Powershelltip: Need to track or review what you do in powershell? Use Start-Transcript to log to a file. http://bit.ly/9jfz9c.
0
1
0
@ChendrayanV
Chen V
8 years
#PowerShellTip to print local currency ({0:c} -f 25).
2
2
10
@jpomfret
Jess Pomfret (@[email protected])
5 years
TIL that you can label your loops in PowerShell and then control which one you break out of by referencing the label. That's pretty neat! #PowerShellTip. e.g.
2
0
2