-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGitProfile.ps1
141 lines (131 loc) · 7.89 KB
/
GitProfile.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Find executables on path
143 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir $_ } | group directoryname
144 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname
145 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_.fullname } | group directoryname
146 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname
148 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname | sort count
149 join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname | select count,name | sort count
150 join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe | % { dir -literal $_ } | group directoryname | select count,name | sort count
151
join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe |
dir ?literal } | group directoryname | select count,name | sort count
152
join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe |
dir ?literal | group directoryname | select count,name | sort count
153 dir -path (join-path -path ($Env:path -split ';' | select -uniq)) -include *.exe | group directoryname | select count,name | sort count
154 dir -path ($Env:path -split ';' | select -uniq) -include *.exe | group directoryname | select count,name | sort count
155
dir -path ($Env:path -split ';' | select -uniq) -include *.exe # group directoryname | select count,name | sort count
156
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } # group directoryname | select count,name | sort count
157
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
158
($Env:path -split ';' | select -uniq)# | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
160
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
164
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe -file } | group directoryname | select count,name | sort count
+
es 'C:\Users\A469526\.vscode\extensions\pflannery.vscode-versionlens-0.19.1\node_modules\npm\node_modules\update-notifier\node_modules\boxen\node_modules\ansi-align\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules\number-is-nan\package.json'
get-process everything
get-process everything -pid 6704
get-process -pid 6704
get-process -pid 6704 | stop-process
everything
& 'C:\Program Files\Everything\Everything.exe'
net use
dir g:\
net use g: /d /y
h -cou 20
cl 85
cl 85 |clip
cl 85 |clip
es es 'C:\Users\A469526\.vscode\extensions\pflannery.vscode-versionlens-0.19.1\node_modules\npm\node_modules\update-notifier\node_modules\boxen\node_modules\ansi-align\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules\number-is-nan\package.json'
es 'C:\Users\A469526\.vscode\extensions\pflannery.vscode-versionlens-0.19.1\node_modules\npm\node_modules\update-notifier\node_modules\boxen\node_modules\ansi-align\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules\number-is-nan\package.json'
net use
dir g:\
net use G:\ /d /y
net use
net use G: /d /y
net use I: /d /y
net use
net use
net use
es 'C:\Users\A469526\.vscode\extensions\pflannery.vscode-versionlens-0.19.1\node_modules\npm\node_modules\update-notifier\node_modules\boxen\node_modules\ansi-align\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules\number-is-nan\package.json'
down
git clone https://github.com/HerbM/PInvoke.git PInvokeProxBPS
dir -dir
diskfree
get-drive
gv *verbose*
VerbosePreference = SilentlyContinue
VerbosePreference = 'SilentlyContinue'
$VerbosePreference = 'SilentlyContinue'
dir | sort LastWriteTime
dir \ana*
dir -dir
dir -dir | sort LastWriteTime
dir 7z
dir -dir | sort LastWriteTime
dir | sort length
dir file | sort length
dir -file | sort length
w python
dir '.\`[Content_Types`].xml' |gm
dir *.zip |gm
get-command -path c:\util,C:\unx,c:\windows -include *.exe | group directoryname
get-command -path c:\util,C:\unx,c:\windows -include *.exe -type application | group directoryname
syn get-command
get-command -path c:\util,C:\unx,c:\windows -include *.exe -commandtype application | group directoryname
dir -path c:\util,C:\unx,c:\windows -include *.exe | group directoryname
dir -path c:\util,C:\unx,c:\windows -include *.exe
join-path -path c:\util,C:\unx,c:\windows *.exe | more
join-path -path c:\util,C:\unx,c:\windows -resolve *.exe | more
join-path -path c:\util,C:\unx,c:\windows -resolve *.exe | group directoryname
join-path -path c:\util,C:\unx,c:\windows -resolve *.exe | dir | group directoryname
join-path -path c:\util,C:\unx,c:\windows -resolve *.exe | % { dir $_ } | group directoryname
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir $_ } | group directoryname
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_.fullname } | group directoryname
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname
syn group-object
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname | sort count
join-path -path ($Env:path -split ';') -resolve *.exe | % { dir -literal $_ } | group directoryname | select count,name | sort count
join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe | % { dir -literal $_ } | group directoryname | select count,name | sort count
join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe |
dir ?literal } | group directoryname | select count,name | sort count
join-path -path ($Env:path -split ';' | select -uniq) -resolve *.exe |
dir ?literal | group directoryname | select count,name | sort count
dir -path (join-path -path ($Env:path -split ';' | select -uniq)) -include *.exe | group directoryname | select count,name | sort count
dir -path ($Env:path -split ';' | select -uniq) -include *.exe | group directoryname | select count,name | sort count
dir -path ($Env:path -split ';' | select -uniq) -include *.exe # group directoryname | select count,name | sort count
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } # group directoryname | select count,name | sort count
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
($Env:path -split ';' | select -uniq)# | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
dir C:\Windows\System32\*.exe |measure
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe } | group directoryname | select count,name | sort count
dir C:\Windows\System32\*.exe |measure
dir c:\unx\*.exe |measure
dir c:\unx\*.exe -file |measure
($Env:path -split ';' | select -uniq) | % { dir -literal $_ -include *.exe -file } | group directoryname | select count,name | sort count
dir C:\Windows\System32\*.exe |measure
h -coun 50
(h -coun 50).commandline |select -uniq
sh [regex]::escape('$Env:path -spl' + 'it')
[regex]::escape('$Env:path -spl' + 'it')
sh ([regex]::escape('$Env:path -spl' + 'it'))
sh ([regex]::escape('$Env:path -spl' + 'it')) |clip
sh ([regex]::escape('$Env:path -spl' + 'it')) | select commandline -uniq |clip
sh ([regex]::escape('$Env:path -spl' + 'it'))
sh ([regex]::escape('$Env:path -spl' + 'it')) -full | select commandline -uniq |clip
cl -coun 100
cl -coun 100 | select -uniq
cl -coun 100 | uniq
cl -coun 100 | out-string | uniq
(cl -coun 100).trim() | out-string | uniq
(cl -coun 100).trim() | out-string | select -uniq
(cl -coun 100).trim() | out-string | select -uniq $_
'abc' | gm
(cl -coun 100).trim() | out-string | select -uniq chars
(h -coun 50).commandline