mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-04 14:40:05 +02:00
Compare commits
169 Commits
Author | SHA1 | Date | |
---|---|---|---|
370e08c2d9 | |||
0eb30f5c64 | |||
586b925df5 | |||
95fdf740cf | |||
2140380f24 | |||
476ce9544f | |||
81f89c9484 | |||
5ad6815eba | |||
de29c358db | |||
3d31f68b4b | |||
03d931f4e8 | |||
74abe7ce45 | |||
391c93f9d5 | |||
b24233e4b7 | |||
29a8c968f8 | |||
52b42420f7 | |||
98193700a9 | |||
19d3eefe57 | |||
d60539608b | |||
19bcaa9e3d | |||
e3672038e5 | |||
5f2db88dc3 | |||
db1d2dd871 | |||
6c6587eed3 | |||
2633d10a3b | |||
cb99fcafb8 | |||
aea81c9ce5 | |||
2a927db6ed | |||
84e99a2857 | |||
a7b7bb8d1e | |||
6edf5cc843 | |||
53345ebdcf | |||
4908e13746 | |||
349c19a5c5 | |||
4027d6149d | |||
5e2b19c7f3 | |||
d8ebaae190 | |||
0cbe8e69c4 | |||
3399b4a6df | |||
1401302301 | |||
09eb3d1808 | |||
b3cdf19f4a | |||
b4997ff74b | |||
1962759708 | |||
792f4192df | |||
0defed2875 | |||
c623ffdb06 | |||
c895894c10 | |||
4abee2a2ac | |||
17ca5ec974 | |||
0d3cef0a89 | |||
3add3bef6b | |||
3582303033 | |||
4da060321f | |||
c053eeafa5 | |||
5febddcaf5 | |||
a4fa175203 | |||
6683e179fc | |||
7bc0509211 | |||
7d247e379f | |||
d0a492bcf4 | |||
074d98bc9a | |||
678f50e2a7 | |||
6b09062dca | |||
35e3d05ae7 | |||
000cea967a | |||
c35fcd8ea0 | |||
257c2c3d82 | |||
f027e1f914 | |||
4535c4aa2d | |||
246d829014 | |||
1e8c6ba757 | |||
67dc2a2d41 | |||
315ef40d6f | |||
9e9c94ea71 | |||
a343594ab0 | |||
e7eeeb06fe | |||
7105ba31ec | |||
a21e7542a7 | |||
c37bf0e1e1 | |||
9690e65de6 | |||
c5ad5a7141 | |||
14eeec7f6a | |||
7c366db69d | |||
46fb669b49 | |||
ae1cd750dc | |||
af3fffb4dd | |||
ea112a42bd | |||
37fb994ed5 | |||
be820bb0cf | |||
ec33cb8829 | |||
3ea90eaf4d | |||
17f8eea27f | |||
6f6886f88d | |||
7f08428442 | |||
28835cf13c | |||
03f3b98232 | |||
3cca0d75d9 | |||
ae470e0596 | |||
2e646cda41 | |||
d651aad0f8 | |||
225a1ae902 | |||
5873d0dc1c | |||
edc57b01ef | |||
1c43e33c11 | |||
58bba20351 | |||
3844dabba3 | |||
372ab71fc2 | |||
40410344cc | |||
957bbe4c52 | |||
b702577042 | |||
f5828c0012 | |||
96d7b5a6b8 | |||
3a1a27a9c2 | |||
37c70be932 | |||
f61be1226a | |||
8cb81aadac | |||
8928a3bce4 | |||
107c95797f | |||
3229661233 | |||
2f133c63d9 | |||
ef6d75f1ef | |||
2d7714c242 | |||
e936628a1b | |||
a5c2ef51b7 | |||
db7869073b | |||
44806675e2 | |||
03439d35e6 | |||
763c6d2108 | |||
49e594032f | |||
d760076d39 | |||
357d021685 | |||
d07a4e21bb | |||
a89353b35f | |||
9c2bcc5861 | |||
a0f0ed7814 | |||
5390e1fa70 | |||
72b8c58768 | |||
e36021f3b2 | |||
c6929fc266 | |||
37075acd8c | |||
fc487f5f3d | |||
0a56175e54 | |||
f1ba19a6ad | |||
ec7d84b0e0 | |||
0fecf9ce78 | |||
6c02b5719d | |||
49b529496a | |||
784ebdcf31 | |||
ffe40c394d | |||
5c18bf5bb8 | |||
cead884c64 | |||
c8bc801efa | |||
8c780998b6 | |||
3f0ddc41a0 | |||
7ff53658fd | |||
9cee4a13f0 | |||
1540f7cae0 | |||
7e4b4e06ce | |||
f896e880a3 | |||
b2bb0b8ca1 | |||
fdc496d115 | |||
a03a57e3ef | |||
6c86abdd6f | |||
a2061269ab | |||
068c711b94 | |||
13244e37fe | |||
eb8ba5bdfc | |||
09475addd4 |
15
README.md
15
README.md
@ -203,6 +203,7 @@ Mega Collection of PowerShell Scripts
|
|||||||
| [get-sha1.ps1](scripts/get-sha1.ps1) | Prints the SHA1 checksum of the given file. [Read more...](docs/get-sha1.md) |
|
| [get-sha1.ps1](scripts/get-sha1.ps1) | Prints the SHA1 checksum of the given file. [Read more...](docs/get-sha1.md) |
|
||||||
| [get-sha256.ps1](scripts/get-sha256.ps1) | Prints the SHA256 checksum of the given file. [Read more...](docs/get-sha256.md) |
|
| [get-sha256.ps1](scripts/get-sha256.ps1) | Prints the SHA256 checksum of the given file. [Read more...](docs/get-sha256.md) |
|
||||||
| [inspect-exe.ps1](scripts/inspect-exe.ps1) | Prints basic information of the given executable file. [Read more...](docs/inspect-exe.md) |
|
| [inspect-exe.ps1](scripts/inspect-exe.ps1) | Prints basic information of the given executable file. [Read more...](docs/inspect-exe.md) |
|
||||||
|
| [install-fonts.ps1](scripts/install-fonts.ps1) | installs fonts and updates the registry. [Read more...](docs/install-fonts.md) |
|
||||||
| [list-dir-tree.ps1](scripts/list-dir-tree.ps1) | Lists the directory tree content. [Read more...](docs/list-dir-treep.md) |
|
| [list-dir-tree.ps1](scripts/list-dir-tree.ps1) | Lists the directory tree content. [Read more...](docs/list-dir-treep.md) |
|
||||||
| [list-empty-dirs.ps1](scripts/list-empty-dirs.ps1) | Lists empty subfolders within the given directory tree. [Read more...](docs/list-empty-dirs.md) |
|
| [list-empty-dirs.ps1](scripts/list-empty-dirs.ps1) | Lists empty subfolders within the given directory tree. [Read more...](docs/list-empty-dirs.md) |
|
||||||
| [list-empty-files.ps1](scripts/list-empty-files.ps1) | Lists empty files within the given directory tree. [Read more...](docs/list-empty-files.md) |
|
| [list-empty-files.ps1](scripts/list-empty-files.ps1) | Lists empty files within the given directory tree. [Read more...](docs/list-empty-files.md) |
|
||||||
@ -226,12 +227,20 @@ Mega Collection of PowerShell Scripts
|
|||||||
♻️ Scripts to Convert Files
|
♻️ Scripts to Convert Files
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
| Script | Description |
|
| Script | Description |
|
||||||
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
|
||||||
| [convert-csv2txt.ps1](scripts/convert-csv2txt.ps1) | Converts a .CSV file to a text file. [Read more »](docs/convert-csv2txt.md) |
|
| [convert-csv2txt.ps1](scripts/convert-csv2txt.ps1) | Converts a .CSV file to a text file. [Read more »](docs/convert-csv2txt.md) |
|
||||||
|
| [convert-dir27z.ps1](scripts/convert-dir27z.ps1) | Converts a directory tree to a compressed .7z file. [Read more »](docs/convert-dir27z.md) |
|
||||||
|
| [convert-dir2zip.ps1](scripts/convert-dir2zip.ps1) | Converts a directory tree to a compressed .ZIP file. [Read more »](docs/convert-dir2zip.md) |
|
||||||
|
| [convert-history2ps1.ps1](scripts/convert-history2ps1.ps1) | Converts your command history to a PowerShell script. [Read more »](docs/convert-history2ps1.md) |
|
||||||
|
| [convert-image2ascii.ps1](scripts/convert-image2ascii.ps1) | Converts images to ASCII art. [Read more »](docs/convert-image2ascii.md) |
|
||||||
|
| [convert-images2webp.ps1](scripts/convert-images2webp.ps1) | Converts images in a directory or a single image file to WebP format in parallel. [More »](docs/convert-images2webp.md) |
|
||||||
| [convert-mysql2csv.ps1](scripts/convert-mysql2csv.ps1) | Converts a MySQL database table to a .CSV file. [More »](docs/convert-mysql2csv.md) |
|
| [convert-mysql2csv.ps1](scripts/convert-mysql2csv.ps1) | Converts a MySQL database table to a .CSV file. [More »](docs/convert-mysql2csv.md) |
|
||||||
| [convert-ps2bat.ps1](scripts/convert-ps2bat.ps1) | Converts a PowerShell script to a Batch script. [More »](docs/convert-ps2bat.md) |
|
| [convert-ps2bat.ps1](scripts/convert-ps2bat.ps1) | Converts a PowerShell script to a Batch script. [More »](docs/convert-ps2bat.md) |
|
||||||
| [convert-ps2md.ps1](scripts/convert-ps2md.ps1) | Converts the comment-based help of a PowerShell script to Markdown. [More »](docs/convert-ps2md.md) |
|
| [convert-ps2md.ps1](scripts/convert-ps2md.ps1) | Converts the comment-based help of a PowerShell script to Markdown. [More »](docs/convert-ps2md.md) |
|
||||||
|
| [convert-md2docx.ps1](scripts/convert-md2docx.ps1) | Converts Markdown file(s) to .DOCX format. [Read more »](docs/convert-md2docx.md) |
|
||||||
|
| [convert-md2html.ps1](scripts/convert-md2html.ps1) | Converts Markdown file(s) to HTML format. [Read more »](docs/convert-md2html.md) |
|
||||||
|
| [convert-md2pdf.ps1](scripts/convert-md2pdf.ps1) | Converts Markdown file(s) to PDF format. [Read more »](docs/convert-md2pdf.md) |
|
||||||
| [convert-sql2csv.ps1](scripts/convert-sql2csv.ps1) | Converts a SQL database table to a .CSV file. [More »](docs/convert-sql2csv.md) |
|
| [convert-sql2csv.ps1](scripts/convert-sql2csv.ps1) | Converts a SQL database table to a .CSV file. [More »](docs/convert-sql2csv.md) |
|
||||||
| [convert-txt2wav.ps1](scripts/convert-txt2wav.ps1) | Converts text to a .WAV audio file. [More »](docs/convert-txt2wav.md) |
|
| [convert-txt2wav.ps1](scripts/convert-txt2wav.ps1) | Converts text to a .WAV audio file. [More »](docs/convert-txt2wav.md) |
|
||||||
| [export-to-manuals.ps1](scripts/export-to-manuals.ps1) | Exports all scripts as manuals. [More »](docs/export-to-manuals.md) |
|
| [export-to-manuals.ps1](scripts/export-to-manuals.ps1) | Exports all scripts as manuals. [More »](docs/export-to-manuals.md) |
|
||||||
|
@ -10,6 +10,7 @@ APPLICATION, CATEGORY, APPID,
|
|||||||
"Google Chrome", "web browser", "Google.Chrome",
|
"Google Chrome", "web browser", "Google.Chrome",
|
||||||
"Greenshot", "screenshot utility", "9N8Z6RQX8LV8",
|
"Greenshot", "screenshot utility", "9N8Z6RQX8LV8",
|
||||||
"grepWin", "search tool", "StefansTools.grepWin",
|
"grepWin", "search tool", "StefansTools.grepWin",
|
||||||
|
"Helix", "text editor", "helix.helix",
|
||||||
"inSSIDer", "Wifi tool", "MetaGeek.inSSIDer",
|
"inSSIDer", "Wifi tool", "MetaGeek.inSSIDer",
|
||||||
"IrfanView", "image viewer", "9PJZ3BTL5PV6",
|
"IrfanView", "image viewer", "9PJZ3BTL5PV6",
|
||||||
"KDiff3", "file compare tool", "KDE.KDiff3",
|
"KDiff3", "file compare tool", "KDE.KDiff3",
|
||||||
@ -31,7 +32,7 @@ APPLICATION, CATEGORY, APPID,
|
|||||||
"Signal", "messenger", "OpenWhisperSystems.Signal",
|
"Signal", "messenger", "OpenWhisperSystems.Signal",
|
||||||
"smartmontools", "HDD/SSD utility", "smartmontools.smartmontools",
|
"smartmontools", "HDD/SSD utility", "smartmontools.smartmontools",
|
||||||
"Spotify", "audio player", "9NCBCSZSJRSB",
|
"Spotify", "audio player", "9NCBCSZSJRSB",
|
||||||
"Typora", "Markdown editor", "Typora.Typora",
|
"Typedown", "Markdown editor", "9P8TCW4H2HB4",
|
||||||
"Visual Studio Code", "code editor", "XP9KHM4BK9FZ7Q",
|
"Visual Studio Code", "code editor", "XP9KHM4BK9FZ7Q",
|
||||||
"VLC", "video player", "XPDM1ZW6815MQM",
|
"VLC", "video player", "XPDM1ZW6815MQM",
|
||||||
"Windows Terminal", "console terminal", "9N0DX20HK701",
|
"Windows Terminal", "console terminal", "9N0DX20HK701",
|
||||||
|
|
@ -38833,7 +38833,7 @@ KWLW,Willows Glenn County Airport (USA)
|
|||||||
KWMC,Winnemucca Municipal Airport (USA)
|
KWMC,Winnemucca Municipal Airport (USA)
|
||||||
KWP,West Point Village Seaplane Base (USA)
|
KWP,West Point Village Seaplane Base (USA)
|
||||||
KWRB,Robins Air Force Base (USA)
|
KWRB,Robins Air Force Base (USA)
|
||||||
KWRI,Mc Guire Air Force Base (USA)
|
KWRI,McGuire Air Force Base (New Jersey, USA)
|
||||||
KWRL,Worland Municipal Airport (USA)
|
KWRL,Worland Municipal Airport (USA)
|
||||||
KWSD,Condron Army Air Field (USA)
|
KWSD,Condron Army Air Field (USA)
|
||||||
KWST,Westerly State Airport (USA)
|
KWST,Westerly State Airport (USA)
|
||||||
@ -50656,7 +50656,7 @@ RO02,Lester Helo Pad Nº 2 (Japan)
|
|||||||
RO04,White Beach Helipad CFAO (Japan)
|
RO04,White Beach Helipad CFAO (Japan)
|
||||||
ROAH,Naha Airport / JASDF Naha Air Base (Japan)
|
ROAH,Naha Airport / JASDF Naha Air Base (Japan)
|
||||||
RODE,Iejima Auxiliary Air Base (Japan)
|
RODE,Iejima Auxiliary Air Base (Japan)
|
||||||
RODN,Kadena Air Base (Japan)
|
RODN,"Kadena Air Base (Okinawa, Japan)"
|
||||||
ROIG,Ishigaki Airport (Japan)
|
ROIG,Ishigaki Airport (Japan)
|
||||||
ROKJ,Kumejima Airport (Japan)
|
ROKJ,Kumejima Airport (Japan)
|
||||||
ROKR,Kerama Airport (Japan)
|
ROKR,Kerama Airport (Japan)
|
||||||
|
Can't render this file because it is too large.
|
@ -43,6 +43,7 @@ ACARS,Aircraft Communications Addressing and Reporting System
|
|||||||
ACAS,Airborne Collision Avoidance System
|
ACAS,Airborne Collision Avoidance System
|
||||||
ACC,Area Control Center
|
ACC,Area Control Center
|
||||||
ACE,Airport airside Capacity Enhancement
|
ACE,Airport airside Capacity Enhancement
|
||||||
|
ACFT,Aircraft
|
||||||
ACI,"Airports Council International, Area of Common Interest"
|
ACI,"Airports Council International, Area of Common Interest"
|
||||||
ACP,Accept
|
ACP,Accept
|
||||||
AD,Air Defence
|
AD,Air Defence
|
||||||
@ -390,7 +391,8 @@ ODP,Obstacle Departure Procedure
|
|||||||
OGE,Out of Ground Effect
|
OGE,Out of Ground Effect
|
||||||
OID,Operational Instrument Departure
|
OID,Operational Instrument Departure
|
||||||
OFZ,Obstacle Free Zone
|
OFZ,Obstacle Free Zone
|
||||||
OJT,On the Job Training
|
OJT,On-the-Job Training
|
||||||
|
OJTI,On-the-Job Training Instructor
|
||||||
OODA,"Observation, Orientation, Decision, and Action"
|
OODA,"Observation, Orientation, Decision, and Action"
|
||||||
ORCAM,Originating Region Code Assignment Method
|
ORCAM,Originating Region Code Assignment Method
|
||||||
OSC,On Scene Commander
|
OSC,On Scene Commander
|
||||||
@ -425,6 +427,7 @@ RASP,Recognised Air and Surveillance Picture
|
|||||||
RB,Relative Bearing
|
RB,Relative Bearing
|
||||||
RBI,Relative Bearing Indicator
|
RBI,Relative Bearing Indicator
|
||||||
RBAF,Royal Belgium Armed Forces
|
RBAF,Royal Belgium Armed Forces
|
||||||
|
RBL,Range Bearing Line
|
||||||
RCAF,Royal Canadian Air Force
|
RCAF,Royal Canadian Air Force
|
||||||
RCC,Rescue Coordination Center
|
RCC,Rescue Coordination Center
|
||||||
RCL,Runway Centre Line Lighting
|
RCL,Runway Centre Line Lighting
|
||||||
@ -586,6 +589,7 @@ UFA,"UFA, Inc., the world's premier developer of Air Traffic Control simulation
|
|||||||
UHF,Ultra High Frequency (300MHz to 3 GHz)
|
UHF,Ultra High Frequency (300MHz to 3 GHz)
|
||||||
UIR,Upper Flight Information Region
|
UIR,Upper Flight Information Region
|
||||||
UKCAA,United Kingdom Civil Aviation Authority
|
UKCAA,United Kingdom Civil Aviation Authority
|
||||||
|
UkSATSE,Ukranian State Air Traffic Services Enterprise
|
||||||
UMASS,University of Massachusetts
|
UMASS,University of Massachusetts
|
||||||
UNL,Unlimited
|
UNL,Unlimited
|
||||||
URET,User Request Evaluation Tool
|
URET,User Request Evaluation Tool
|
||||||
|
Can't render this file because it has a wrong number of fields in line 142.
|
@ -812,13 +812,12 @@ DND,Dungeons & Dragons (a computer game)
|
|||||||
DNG,Digital Negative
|
DNG,Digital Negative
|
||||||
DNIS,Dialed Number Identification Service
|
DNIS,Dialed Number Identification Service
|
||||||
DNN,DotNetNuke
|
DNN,DotNetNuke
|
||||||
DNS,domain name system
|
DNS,Domain Name System
|
||||||
DNSSEC,DNS Security Extensions
|
DNSSEC,DNS Security Extensions
|
||||||
DNT,Do Not Track
|
DNT,Do Not Track
|
||||||
DO,derived object
|
DO,derived object
|
||||||
DOCSIS,Data Over Cable Service Interface Specifications
|
DOCSIS,Data Over Cable Service Interface Specifications
|
||||||
DOD,Direct Outward Dialing
|
DOD,Direct Outward Dialing
|
||||||
DOE,Department of Energy
|
|
||||||
DOI,Digital Object Identifier
|
DOI,Digital Object Identifier
|
||||||
DOI,digital object identifier
|
DOI,digital object identifier
|
||||||
DOL,Department of Labor
|
DOL,Department of Labor
|
||||||
@ -851,6 +850,7 @@ DROP,delivery of real-time execution information protocol
|
|||||||
DRP,disaster recovery plan
|
DRP,disaster recovery plan
|
||||||
DRP,Distribution Requirements Planning
|
DRP,Distribution Requirements Planning
|
||||||
DRS,Storage Distributed Resource Scheduler
|
DRS,Storage Distributed Resource Scheduler
|
||||||
|
DSA,Digital Services Act (EU)
|
||||||
DSB,Dispute Settlement Body
|
DSB,Dispute Settlement Body
|
||||||
DSC,Digital Still Camera
|
DSC,Digital Still Camera
|
||||||
DSL,Domain-Specific Language
|
DSL,Domain-Specific Language
|
||||||
@ -1069,6 +1069,7 @@ EZ/EC,Empowerment Zone/Enterprise Community
|
|||||||
FA,Flexible Automation
|
FA,Flexible Automation
|
||||||
FACTA,Fair and Accurate Credit Transactions Act
|
FACTA,Fair and Accurate Credit Transactions Act
|
||||||
FAR,Federal Acquisition Regulation
|
FAR,Federal Acquisition Regulation
|
||||||
|
FARM,Field Accessible Reliability Metrics
|
||||||
FAS,Final Assembly Schedule
|
FAS,Final Assembly Schedule
|
||||||
FASAB,Federal Accounting Standards Advisory Board
|
FASAB,Federal Accounting Standards Advisory Board
|
||||||
FAT,File Allocation Table
|
FAT,File Allocation Table
|
||||||
@ -1777,6 +1778,7 @@ MVMC,Microsoft Virtual Machine Converter
|
|||||||
MVNO,mobile virtual network operator
|
MVNO,mobile virtual network operator
|
||||||
MVP,Microsoft Most Valuable Professional
|
MVP,Microsoft Most Valuable Professional
|
||||||
MVS,Multiple Virtual Storage
|
MVS,Multiple Virtual Storage
|
||||||
|
MVC,Mobile World Congress (in Barcelona)
|
||||||
NaaS,network-as-a-service
|
NaaS,network-as-a-service
|
||||||
NAC,network access control
|
NAC,network access control
|
||||||
NACHA,National Automated Clearing House Association
|
NACHA,National Automated Clearing House Association
|
||||||
@ -1918,6 +1920,7 @@ OODBMS,object-oriented database management system
|
|||||||
OoOE,out-of-order execution
|
OoOE,out-of-order execution
|
||||||
OOP,object-oriented programming
|
OOP,object-oriented programming
|
||||||
OOPSLA,"Object-Oriented Programming Systems, Languages and Applications"
|
OOPSLA,"Object-Oriented Programming Systems, Languages and Applications"
|
||||||
|
OOTB,out of the box (feature or functionality)
|
||||||
OOXML,Office Open Extended Markup Language
|
OOXML,Office Open Extended Markup Language
|
||||||
OPC,OLE for Process Control
|
OPC,OLE for Process Control
|
||||||
OpenGL,Open Graphics Library
|
OpenGL,Open Graphics Library
|
||||||
@ -2668,6 +2671,7 @@ VLE,virtual learning environment
|
|||||||
VLER,Virtual Lifetime Electronic Record
|
VLER,Virtual Lifetime Electronic Record
|
||||||
VLIW,very long instruction word
|
VLIW,very long instruction word
|
||||||
vlog,video blog
|
vlog,video blog
|
||||||
|
VLOP,Very Large Online Platform
|
||||||
VLSI,Very Large Scale Integration
|
VLSI,Very Large Scale Integration
|
||||||
VLSM,variable-length subnet mask
|
VLSM,variable-length subnet mask
|
||||||
VM,virtual machine
|
VM,virtual machine
|
||||||
|
|
@ -7263,19 +7263,19 @@ TERM,MEANING
|
|||||||
"Farinose","(adv.) Civered with a sort of white, mealy powder, as the leaves of some poplars, and the body of certain insects; mealy."
|
"Farinose","(adv.) Civered with a sort of white, mealy powder, as the leaves of some poplars, and the body of certain insects; mealy."
|
||||||
"Farl","(verb trans.) same as Furl."
|
"Farl","(verb trans.) same as Furl."
|
||||||
"Farlie","(noun) an unusual or unexpected thing; a wonder. see Fearly."
|
"Farlie","(noun) an unusual or unexpected thing; a wonder. see Fearly."
|
||||||
"Farm","a. & n.","The rent of land, -- originally paid by reservation of part of its products."
|
Farm,"(a. & n.) the rent of land, -- originally paid by reservation of part of its products."
|
||||||
"Farm","a. & n.","The term or tenure of a lease of land for cultivation; a leasehold."
|
Farm,"(a. & n.) the term or tenure of a lease of land for cultivation; a leasehold."
|
||||||
"Farm","a. & n.","The land held under lease and by payment of rent for the purpose of cultivation."
|
Farm,"(a. & n.) the land held under lease and by payment of rent for the purpose of cultivation."
|
||||||
"Farm","a. & n.","any tract of land devoted to agricultural purposes, under the management of a tenant or the owner."
|
Farm,"(a. & n.) any tract of land devoted to agricultural purposes, under the management of a tenant or the owner."
|
||||||
"Farm","a. & n.","a district of country leased (or farmed) out for the collection of the revenues of government."
|
Farm,"(a. & n.) a district of country leased (or farmed) out for the collection of the revenues of government."
|
||||||
"Farm","a. & n.","a lease of the imposts on particular goods; as, the sugar farm, the silk farm."
|
Farm,"(a. & n.) a lease of the imposts on particular goods; as, the sugar farm, the silk farm."
|
||||||
"Farmed","imp. & p. p.","of Farm"
|
"Farmed","imp. & p. p.","of Farm"
|
||||||
"Farming","p. pr. & vb. n.","of Farm"
|
"Farming","p. pr. & vb. n.","of Farm"
|
||||||
"Farm","(verb trans.) to lease or let for an equivalent, as land for a rent; to yield the use of to proceeds."
|
Farm,"(verb trans.) to lease or let for an equivalent, as land for a rent; to yield the use of to proceeds."
|
||||||
"Farm","(verb trans.) to give up to another, as an estate, a business, the revenue, etc., on condition of receiving in return a percentage of what it yields; as, to farm the taxes."
|
Farm,"(verb trans.) to give up to another, as an estate, a business, the revenue, etc., on condition of receiving in return a percentage of what it yields; as, to farm the taxes."
|
||||||
"Farm","(verb trans.) to take at a certain rent or rate."
|
Farm,"(verb trans.) to take at a certain rent or rate."
|
||||||
"Farm","(verb trans.) to devote (land) to agriculture; to cultivate, as land; to till, as a farm."
|
Farm,"(verb trans.) to devote (land) to agriculture; to cultivate, as land; to till, as a farm."
|
||||||
"Farm","(verb intrans.) to engage in the business of tilling the soil; to labor as a farmer."
|
Farm,"(verb intrans.) to engage in the business of tilling the soil; to labor as a farmer."
|
||||||
"Farmable","(adv.) Capable of being farmed."
|
"Farmable","(adv.) Capable of being farmed."
|
||||||
"Farmer","(noun) one who farms"
|
"Farmer","(noun) one who farms"
|
||||||
"Farmer","(noun) one who hires and cultivates a farm; a cultivator of leased ground; a tenant."
|
"Farmer","(noun) one who hires and cultivates a farm; a cultivator of leased ground; a tenant."
|
||||||
|
Can't render this file because it is too large.
|
@ -38,7 +38,7 @@ AADAC,Alberta Alcohol and Drug Abuse Commission
|
|||||||
AADC,area air defense commander,amino acid decarboxylase,aromatic L-amino acid decarboxylase,Australian Antarctic Data Centre
|
AADC,area air defense commander,amino acid decarboxylase,aromatic L-amino acid decarboxylase,Australian Antarctic Data Centre
|
||||||
AADD,Adult attention deficit disorder
|
AADD,Adult attention deficit disorder
|
||||||
AADT,annual average daily traffic
|
AADT,annual average daily traffic
|
||||||
AAFC,U.S. Army Air Corps Ferrying Command (1941-1942),All-America Football Conference (1946-1949)
|
AAFC,"Army Air Corps Ferrying Command (USA, 1941-1942), All-America Football Conference (1946-1949)"
|
||||||
AAFES,Army and Air Force Exchange Service
|
AAFES,Army and Air Force Exchange Service
|
||||||
AAIS,advanced airborne interceptor simulator
|
AAIS,advanced airborne interceptor simulator
|
||||||
AAM,air-to-air missile
|
AAM,air-to-air missile
|
||||||
@ -70,7 +70,7 @@ ABC,American-born Chinese
|
|||||||
ABC,anti-lock brake controller
|
ABC,anti-lock brake controller
|
||||||
ABC,"atomic, biological, chemical"
|
ABC,"atomic, biological, chemical"
|
||||||
ABCA,American,British and Canadian Armies (originally),Army Bureau of Current Affairs
|
ABCA,American,British and Canadian Armies (originally),Army Bureau of Current Affairs
|
||||||
ABCS,(U.S.) Army Battle Command System
|
ABCS,Army Battle Command System (USA)
|
||||||
ABET,Accreditation Board for Engineering and Technology
|
ABET,Accreditation Board for Engineering and Technology
|
||||||
ABFIST,Advanced Bradley Full Crew Interactive Skills Trainer
|
ABFIST,Advanced Bradley Full Crew Interactive Skills Trainer
|
||||||
ABGI,Addington-Barker Group International
|
ABGI,Addington-Barker Group International
|
||||||
@ -115,13 +115,13 @@ ACLOS,Automatic CLOS (missile control system)
|
|||||||
ACLS,American Council of Learned Societies
|
ACLS,American Council of Learned Societies
|
||||||
ACLU,"American Civil Liberties Union,American Communist Lawyers Union (pejorative slang for the above)"
|
ACLU,"American Civil Liberties Union,American Communist Lawyers Union (pejorative slang for the above)"
|
||||||
ACM,"many,including Association for Computing Machinery; see entry"
|
ACM,"many,including Association for Computing Machinery; see entry"
|
||||||
ACMC,(U.S.) Assistant Commandant of the Marine Corps
|
ACMC,Assistant Commandant of the Marine Corps (USA)
|
||||||
ACN,"Airborne Communications Node,Australian Company Number (number issued by the Australian government as registration of a limited liability company)"
|
ACN,"Airborne Communications Node,Australian Company Number (number issued by the Australian government as registration of a limited liability company)"
|
||||||
ACNA,Anglican Church in North America
|
ACNA,Anglican Church in North America
|
||||||
ACO,Airspace Control Order
|
ACO,Airspace Control Order
|
||||||
ACOBA,Advisory Committee on Business Appointments
|
ACOBA,Advisory Committee on Business Appointments
|
||||||
ACOG,American College of Obstetricians and Gynecologists
|
ACOG,American College of Obstetricians and Gynecologists
|
||||||
ACOM,(U.S.) Atlantic Command
|
ACOM,Atlantic Command (USA)
|
||||||
ACORN,Association of Community Organizations for Reform Now
|
ACORN,Association of Community Organizations for Reform Now
|
||||||
ACP,"African,Caribbean and Pacific Group of States,Air Control Point"
|
ACP,"African,Caribbean and Pacific Group of States,Air Control Point"
|
||||||
ACR,Advanced Concepts and Requirements
|
ACR,Advanced Concepts and Requirements
|
||||||
@ -133,7 +133,7 @@ ACST,American Cooperative School of Tunis
|
|||||||
ACST,Australian Central Standard Time
|
ACST,Australian Central Standard Time
|
||||||
ACT,"Adaptive Control of Thought (cognitive model),American College Test (ing Program),Australian Capital Territory (also postal symbol),ACT UP,AIDS Coalition to Unleash Power"
|
ACT,"Adaptive Control of Thought (cognitive model),American College Test (ing Program),Australian Capital Territory (also postal symbol),ACT UP,AIDS Coalition to Unleash Power"
|
||||||
ACTD,Advanced Concept Technology Demonstration
|
ACTD,Advanced Concept Technology Demonstration
|
||||||
ACTF,"(U.S.) Army Constructive Training Federation,Australian Children's Television Foundation,ACT-R,ACT-Rational (cognitive model),ACT-R/PM,ACT-R/Perceptual-Motor (cognitive model)"
|
ACTF,"Army Constructive Training Federation (USA),Australian Children's Television Foundation,ACT-R,ACT-Rational (cognitive model),ACT-R/PM,ACT-R/Perceptual-Motor (cognitive model)"
|
||||||
ACTU,Australian Council of Trade Unions
|
ACTU,Australian Council of Trade Unions
|
||||||
ACU,American Conservative Union
|
ACU,American Conservative Union
|
||||||
ACUF,"Advisory Committee on Undersea Features,American Conservative Union Foundation"
|
ACUF,"Advisory Committee on Undersea Features,American Conservative Union Foundation"
|
||||||
@ -146,7 +146,7 @@ ADAS,Asiago-DLR Asteroid Survey
|
|||||||
ADAT,Alesis Digital Audio Tape (recording format)
|
ADAT,Alesis Digital Audio Tape (recording format)
|
||||||
ADATS,"Agricultural Development and Training Society,Air Defence Anti-Tank System,Australian Defence Air Traffic System"
|
ADATS,"Agricultural Development and Training Society,Air Defence Anti-Tank System,Australian Defence Air Traffic System"
|
||||||
ADB,Asian Development Bank
|
ADB,Asian Development Bank
|
||||||
ADC,"Aide De Camp,U.S. Air Defense Command (1946-1992),Apple Display Connector,Program Against Digital Counterfeiting of Currency"
|
ADC,"Aide De Camp,Air Defense Command (USA, 1946-1992),Apple Display Connector,Program Against Digital Counterfeiting of Currency"
|
||||||
ADD,"Analog Digital Digital (CD quality),Attention-Deficit Disorder,Administration on Developmental Disabilities"
|
ADD,"Analog Digital Digital (CD quality),Attention-Deficit Disorder,Administration on Developmental Disabilities"
|
||||||
ADDIE,Analyze Design Develop Implement and Evaluate
|
ADDIE,Analyze Design Develop Implement and Evaluate
|
||||||
ADDNS,Advanced Deployable Day/Night Simulation
|
ADDNS,Advanced Deployable Day/Night Simulation
|
||||||
@ -175,7 +175,7 @@ aet,After extra time (Football)
|
|||||||
AEW,"Airborne Early Warning,Airborne Electronic Warfare"
|
AEW,"Airborne Early Warning,Airborne Electronic Warfare"
|
||||||
AF,"Afghanistan (ISO 3166 digram),Air Force,As f*ck"
|
AF,"Afghanistan (ISO 3166 digram),Air Force,As f*ck"
|
||||||
aF,Attofarad
|
aF,Attofarad
|
||||||
AFA,"U.S. Air Force Academy,Asociación del Fútbol Argentino (Spanish for 'Argentine Football Association')"
|
AFA,"Air Force Academy (USA),Asociación del Fútbol Argentino (Spanish for 'Argentine Football Association')"
|
||||||
AFAIC,As Far As I'm Concerned
|
AFAIC,As Far As I'm Concerned
|
||||||
AFAICT,As Far As I Can Tell
|
AFAICT,As Far As I Can Tell
|
||||||
AFAIK,As Far As I Know
|
AFAIK,As Far As I Know
|
||||||
@ -196,18 +196,18 @@ AFL,American Federation of Labor,American Football League — either the 1960s l
|
|||||||
AFLAC,American Family Life Assurance Company of Columbus
|
AFLAC,American Family Life Assurance Company of Columbus
|
||||||
AFM,Army Field Manual (UK; the U.S. more frequently uses just FM),Atomic Force Microscope,Aviation Fleet Maintenance
|
AFM,Army Field Manual (UK; the U.S. more frequently uses just FM),Atomic Force Microscope,Aviation Fleet Maintenance
|
||||||
AFO,Association of Field Ornithologists
|
AFO,Association of Field Ornithologists
|
||||||
AFOSR,U.S. Air Force Office of Scientific Research
|
AFOSR,Air Force Office of Scientific Research (USA)
|
||||||
AFP,"Agence France-Presse (French,'French Press Agency'), Australian Federal Police"
|
AFP,"Agence France-Presse (French,'French Press Agency'), Australian Federal Police"
|
||||||
AFQT,Armed Forces Qualification Test
|
AFQT,Armed Forces Qualification Test
|
||||||
AFRC,Air Force Reserve Command
|
AFRC,Air Force Reserve Command
|
||||||
AFRL,Air Force Research Laboratory
|
AFRL,Air Force Research Laboratory
|
||||||
AFROTC,Air Force Reserve Officer Training Corps
|
AFROTC,Air Force Reserve Officer Training Corps
|
||||||
AFRRI,(U.S.) Armed Forces Radiobiology Research Institute
|
AFRRI,Armed Forces Radiobiology Research Institute (USA)
|
||||||
AFRTS,Armed Forces Radio and Television Service
|
AFRTS,Armed Forces Radio and Television Service
|
||||||
AFS,Active Front Steering,Air Facility Sub-System,Amniotic Fluid-derived Stem cell,AFS&A or AFSA,U.S. Air Force Studies and Analysis
|
AFS,Active Front Steering,Air Facility Sub-System,Amniotic Fluid-derived Stem cell,AFS&A or AFSA,U.S. Air Force Studies and Analysis
|
||||||
AFSC,"U.S. Air Force Staff College (obsolete; replaced with JFSC), U.S. Air Force Systems Command"
|
AFSC,"Air Force Staff College (USA, obsolete; replaced with JFSC), U.S. Air Force Systems Command"
|
||||||
AFSCN,U.S. Air Force Satellite Control Network
|
AFSCN,Air Force Satellite Control Network (USA)
|
||||||
AFSPC,Air Force Space Command
|
AFSPC,Air Force Space Command (USA)
|
||||||
AFT,American Farmland Trust
|
AFT,American Farmland Trust
|
||||||
AFV,armoured fighting vehicle
|
AFV,armoured fighting vehicle
|
||||||
AFWA,Air Force Weather Agency,Association of Fish and Wildlife Agencies,AG[edit]
|
AFWA,Air Force Weather Agency,Association of Fish and Wildlife Agencies,AG[edit]
|
||||||
@ -248,7 +248,7 @@ AIAA,American Institute of Aeronautics and Astronautics
|
|||||||
AIC,"African Independent Church,Animal Identification Coordinator"
|
AIC,"African Independent Church,Animal Identification Coordinator"
|
||||||
AICD,Australian Institute of Company Directors
|
AICD,Australian Institute of Company Directors
|
||||||
AICMFP,And I Claim My Five Pounds
|
AICMFP,And I Claim My Five Pounds
|
||||||
AID,U.S. Agency for International Development
|
AID,Agency for International Development (USA)
|
||||||
AIDS,Acquired Immune Deficiency Syndrome
|
AIDS,Acquired Immune Deficiency Syndrome
|
||||||
AIM,Australian Institute of Management
|
AIM,Australian Institute of Management
|
||||||
AIMP,Aurora Incremental Modernization Project
|
AIMP,Aurora Incremental Modernization Project
|
||||||
@ -294,7 +294,7 @@ AM1,Airman 1st class
|
|||||||
AMA,American Medical Association,Australian Medical Association
|
AMA,American Medical Association,Australian Medical Association
|
||||||
AMAPS,Aircraft,Missile,Avionics Performance Simulation
|
AMAPS,Aircraft,Missile,Avionics Performance Simulation
|
||||||
AMC,Adaptive modulation and coding (digital communications),U.S. Air Mobility Command,American Motors Corporation,American Movie Classics (TV network; now known simply by the initials),U.S. Army Materiel Command
|
AMC,Adaptive modulation and coding (digital communications),U.S. Air Mobility Command,American Motors Corporation,American Movie Classics (TV network; now known simply by the initials),U.S. Army Materiel Command
|
||||||
AMCB,U.S. Army/Marine Corps Board
|
AMCB,Army/Marine Corps Board (USA)
|
||||||
AMFOM,Advanced Missile Fly Out Model
|
AMFOM,Advanced Missile Fly Out Model
|
||||||
AMFR,"Age-specific Marital Fertility Rate,Amplitude Modulation Following Response"
|
AMFR,"Age-specific Marital Fertility Rate,Amplitude Modulation Following Response"
|
||||||
AMFRS,"Advanced Multi-Function Radio Frequency System,Automatic Multisensor Feature-based Recognition System"
|
AMFRS,"Advanced Multi-Function Radio Frequency System,Automatic Multisensor Feature-based Recognition System"
|
||||||
@ -306,10 +306,10 @@ AMOLED,Active-matrix organic light-emitting diode
|
|||||||
AMOS,"Advanced MOrtar System,Air Force Maui Optical and Supercomputing observatory"
|
AMOS,"Advanced MOrtar System,Air Force Maui Optical and Supercomputing observatory"
|
||||||
AMP,"Adenosine MonoPhosphate,Automated Mission Planner"
|
AMP,"Adenosine MonoPhosphate,Automated Mission Planner"
|
||||||
AMRAAM,Advanced Medium-Range Air-to-Air Missile
|
AMRAAM,Advanced Medium-Range Air-to-Air Missile
|
||||||
AMRDEC,"U.S. Aviation & Missile Research,Development,& Engineering Center"
|
AMRDEC,"Aviation & Missile Research,Development & Engineering Center (USA)"
|
||||||
AMS,"Agriculture Marketing Service,American Mathematical Society"
|
AMS,"Agriculture Marketing Service,American Mathematical Society"
|
||||||
AMSAA,U.S. Army Materiel Systems Analysis Activity
|
AMSAA,Army Materiel Systems Analysis Activity (USA)
|
||||||
AMSO,U.S. Army Model and Simulation Office
|
AMSO,Army Model and Simulation Office (USA)
|
||||||
AMSU,Advanced Microwave Sounding Unit
|
AMSU,Advanced Microwave Sounding Unit
|
||||||
AMTE,UK Admiralty Marine Technology Establishment (1977-1984)
|
AMTE,UK Admiralty Marine Technology Establishment (1977-1984)
|
||||||
AN,"Netherlands Antilles (ISO 3166 digram)"
|
AN,"Netherlands Antilles (ISO 3166 digram)"
|
||||||
@ -385,7 +385,7 @@ ARRC,ACE Rapid Reaction Corps
|
|||||||
ARRF,Allied Rapid Reaction Force
|
ARRF,Allied Rapid Reaction Force
|
||||||
ARRL,American Radio Relay League
|
ARRL,American Radio Relay League
|
||||||
ARSC,Arctic Region Supercomputing Center
|
ARSC,Arctic Region Supercomputing Center
|
||||||
ARSPACE,U.S. Army Space Command
|
ARSPACE,Army Space Command (USA)
|
||||||
ART,"Adaptive Resonance Theory, Anti-Retroviral Therapy"
|
ART,"Adaptive Resonance Theory, Anti-Retroviral Therapy"
|
||||||
ARTCC,Air Route Traffic Control Center
|
ARTCC,Air Route Traffic Control Center
|
||||||
ARWG,Army Research Working Group
|
ARWG,Army Research Working Group
|
||||||
@ -402,7 +402,7 @@ ASBO,Anti-Social Behaviour Order
|
|||||||
ASCAP,"American Society of Composers,Authors,and Publishers"
|
ASCAP,"American Society of Composers,Authors,and Publishers"
|
||||||
ASCC,"Army Service Component Commander,Automatic Sequence Controlled Calculator,Air Standardization Coordinating Committee"
|
ASCC,"Army Service Component Commander,Automatic Sequence Controlled Calculator,Air Standardization Coordinating Committee"
|
||||||
ASCII,American Standard Code for Information Interchange
|
ASCII,American Standard Code for Information Interchange
|
||||||
ASD,"(U.S.) Assistant Secretary of Defense,autism spectrum disorder"
|
ASD,"Assistant Secretary of Defense (USA), autism spectrum disorder"
|
||||||
ASDIC,Allied Submarine Detection Investigation Committee (Sonar)
|
ASDIC,Allied Submarine Detection Investigation Committee (Sonar)
|
||||||
ASEAN,Association of Southeast Asian Nations
|
ASEAN,Association of Southeast Asian Nations
|
||||||
ASFAR,Americans for a Society Free of Age Restrictions
|
ASFAR,Americans for a Society Free of Age Restrictions
|
||||||
@ -431,7 +431,7 @@ ASUW,AntiSUrface Warfare
|
|||||||
ASVAB,Armed Services Vocational Aptitude Battery(taken by juniors in high school in the USA)
|
ASVAB,Armed Services Vocational Aptitude Battery(taken by juniors in high school in the USA)
|
||||||
ASVEL,"Association Sportive Villeurbanne Éveil Lyonnais (Association Sportive is French for 'Sporting Association'; the club was founded through the merger of AS Villeurbanne and Éveil Lyonnais)"
|
ASVEL,"Association Sportive Villeurbanne Éveil Lyonnais (Association Sportive is French for 'Sporting Association'; the club was founded through the merger of AS Villeurbanne and Éveil Lyonnais)"
|
||||||
ASW,AntiSubmarine Warfare
|
ASW,AntiSubmarine Warfare
|
||||||
ASWORG,(U.S.) AntiSubmarine Warfare Operations Research Group
|
ASWORG,AntiSubmarine Warfare Operations Research Group (USA)
|
||||||
ASX,"Advanced Stream Redirector,Australian Securities Exchange"
|
ASX,"Advanced Stream Redirector,Australian Securities Exchange"
|
||||||
AT,"Anti-Tank,Austria (ISO 3166 digram),Advanced Technology (IBM Personal Computer/AT)"
|
AT,"Anti-Tank,Austria (ISO 3166 digram),Advanced Technology (IBM Personal Computer/AT)"
|
||||||
At,Astatine
|
At,Astatine
|
||||||
@ -441,7 +441,7 @@ ATAC,Air Transportable Acoustic Communications
|
|||||||
ATAPI,Advanced Technology Attachment Packet Interface
|
ATAPI,Advanced Technology Attachment Packet Interface
|
||||||
ATAT,Aiken Tactical Airsoft Team / Star Wars vehicle
|
ATAT,Aiken Tactical Airsoft Team / Star Wars vehicle
|
||||||
ATB,"Active Time Battle,British Antarctic Territory (ISO 3166 trigram; merged with AQ in 1979)"
|
ATB,"Active Time Battle,British Antarctic Territory (ISO 3166 trigram; merged with AQ in 1979)"
|
||||||
ATC,"Air Training Corps, U.S. Air Transport Command (1942-1948), Athletic Trainer,Certified"
|
ATC,"Air Training Corps, Air Transport Command (USA, 1942-1948), Athletic Trainer,Certified"
|
||||||
ATESS,Aerospace and Telecommunications Engineering Support Squadron
|
ATESS,Aerospace and Telecommunications Engineering Support Squadron
|
||||||
ATF,"French Southern Territories (ISO 3166 trigram),(U.S.) Bureau of Alcohol,Tobacco,Firearms and Explosives"
|
ATF,"French Southern Territories (ISO 3166 trigram),(U.S.) Bureau of Alcohol,Tobacco,Firearms and Explosives"
|
||||||
ATG,Antigua and Barbuda (ISO 3166 and FIFA trigram)
|
ATG,Antigua and Barbuda (ISO 3166 and FIFA trigram)
|
||||||
@ -456,7 +456,7 @@ ATM,At The Moment
|
|||||||
ATN,"Dronning Maud Land (ISO 3166 trigram; merged with AQ in 1983)"
|
ATN,"Dronning Maud Land (ISO 3166 trigram; merged with AQ in 1983)"
|
||||||
ATO,"Air Tasking Order,Australian Taxation Office"
|
ATO,"Air Tasking Order,Australian Taxation Office"
|
||||||
ATP,"Adenosine TriPhosphate,Allied Tactical Publication,Ammunition Transfer Point"
|
ATP,"Adenosine TriPhosphate,Allied Tactical Publication,Ammunition Transfer Point"
|
||||||
ATSD,(U.S.) Assistant Secretary of Defense
|
ATSD,Assistant Secretary of Defense (USA)
|
||||||
ATSDR,Agency for Toxic Substances and Disease Registry
|
ATSDR,Agency for Toxic Substances and Disease Registry
|
||||||
ATV,All-Terrain Vehicle
|
ATV,All-Terrain Vehicle
|
||||||
ATWA,"Air,Trees,Water,Animals"
|
ATWA,"Air,Trees,Water,Animals"
|
||||||
@ -773,7 +773,7 @@ CGS,Chief of the General Staff
|
|||||||
CGT,Capital Gains Tax
|
CGT,Capital Gains Tax
|
||||||
ch,ch(L) is used to denote the Chern character of a line bundle
|
ch,ch(L) is used to denote the Chern character of a line bundle
|
||||||
CH,"Chieftain tank,Switzerland (ISO 3166 digram; from Latin Confoederatio Helvetica)"
|
CH,"Chieftain tank,Switzerland (ISO 3166 digram; from Latin Confoederatio Helvetica)"
|
||||||
CHAMPUS,(U.S.) Civilian Health and Medical Program of the Uniformed Services (now known as TRICARE)
|
CHAMPUS,Civilian Health and Medical Program of the Uniformed Services (USA, now known as TRICARE)
|
||||||
CHAOS,Cambridge Heart Anti-Oxidant Study
|
CHAOS,Cambridge Heart Anti-Oxidant Study
|
||||||
CHAPS,Clearing House Automated Payment System
|
CHAPS,Clearing House Automated Payment System
|
||||||
CHDK,Canon Hack Development Kit (Canon camera firmware hack)
|
CHDK,Canon Hack Development Kit (Canon camera firmware hack)
|
||||||
@ -807,7 +807,7 @@ CIPE,(European) Centre for International Political Economy
|
|||||||
CIR,(Commander's) Critical Information Requirements
|
CIR,(Commander's) Critical Information Requirements
|
||||||
CIR,Corotating Interaction Region
|
CIR,Corotating Interaction Region
|
||||||
CIS,"Canadian Interuniversity Sport,Commonwealth of Independent States,Command and Information System,Communication and Information System"
|
CIS,"Canadian Interuniversity Sport,Commonwealth of Independent States,Command and Information System,Communication and Information System"
|
||||||
CISA,(U.S.) C4I Integration Support Activity
|
CISA,C4I Integration Support Activity (USA)
|
||||||
CISB,Complete In Sealed Box (Internet auction/trading listings)
|
CISB,Complete In Sealed Box (Internet auction/trading listings)
|
||||||
CISPR,Comité international spécial des perturbations radioélectriques (Special International Committee on Radio Interference)
|
CISPR,Comité international spécial des perturbations radioélectriques (Special International Committee on Radio Interference)
|
||||||
CISSP,Certified Information Systems Security Professional
|
CISSP,Certified Information Systems Security Professional
|
||||||
@ -878,7 +878,7 @@ COL,Colombia (ISO 3166 trigram)
|
|||||||
COLA,Cost Of Living Adjustment
|
COLA,Cost Of Living Adjustment
|
||||||
COM,Comoros (ISO 3166 trigram),Component Object Model
|
COM,Comoros (ISO 3166 trigram),Component Object Model
|
||||||
COMECON,Council for Mutual Economic Assistance (economic counterpart of the Warsaw Pact,1949-1991)
|
COMECON,Council for Mutual Economic Assistance (economic counterpart of the Warsaw Pact,1949-1991)
|
||||||
CONAD,U.S. Continental Air Defense Command
|
CONAD,Continental Air Defense Command (USA)
|
||||||
CONCACAF,Confederation Of North,Central American and Caribbean Association Football
|
CONCACAF,Confederation Of North,Central American and Caribbean Association Football
|
||||||
CONMEBOL,"Confederación Sudamericana de Fútbol or Confederação Sul-Americana de Futebol (respectively Spanish and Portuguese for 'South American Football Confederation')"
|
CONMEBOL,"Confederación Sudamericana de Fútbol or Confederação Sul-Americana de Futebol (respectively Spanish and Portuguese for 'South American Football Confederation')"
|
||||||
CONUS,Continental United States
|
CONUS,Continental United States
|
||||||
@ -1144,21 +1144,15 @@ DNDO,U.S. Domestic Nuclear Detection Office
|
|||||||
DNK,Denmark (ISO 3166 trigram)
|
DNK,Denmark (ISO 3166 trigram)
|
||||||
DNM,Defence Nuclear Material
|
DNM,Defence Nuclear Material
|
||||||
DNR,Do Not Resuscitate
|
DNR,Do Not Resuscitate
|
||||||
DNS,Domain Name System
|
|
||||||
DO,"Dominican Republic (ISO 3166 digram),Doctor of Osteopathic Medicine"
|
DO,"Dominican Republic (ISO 3166 digram),Doctor of Osteopathic Medicine"
|
||||||
DOA,"Dead On Arrival,Dead or Alive"
|
DOA,"Dead On Arrival,Dead or Alive"
|
||||||
DOB,Date Of Birth
|
DOB,Date Of Birth
|
||||||
DOD,U.S. Department of Defense
|
|
||||||
DODAF,U.S. Department of Defense Architectural Framework
|
|
||||||
DoDD,U.S. Department of Defense Directive
|
|
||||||
DoDEA,(U.S.) Department of Defense Education Activity
|
|
||||||
DOE,U.S. Department of Energy
|
|
||||||
DOHC,Dual-OverHead-Cam engine
|
DOHC,Dual-OverHead-Cam engine
|
||||||
DOI,U.S. Department of the Interior
|
DOI,U.S. Department of the Interior
|
||||||
DOM,Deo optimo maximo (Latin,"to God,the best and greatest"),Document Object Model,Dominican Republic (ISO 3166 trigram)
|
DOM,Deo optimo maximo (Latin,"to God,the best and greatest"),Document Object Model,Dominican Republic (ISO 3166 trigram)
|
||||||
DORA,Defence of the Realm Act
|
DORA,Defence of the Realm Act
|
||||||
DOS,Density of State
|
DOS,Density of State
|
||||||
DOT,Department of Transportation (U.S. federal or state),Damage Over Time (common in World of Warcraft)
|
DOT,Damage Over Time (common in World of Warcraft)
|
||||||
DOTA,short-form for DEFENSE OF THE ANCIENTS a popular online epic game
|
DOTA,short-form for DEFENSE OF THE ANCIENTS a popular online epic game
|
||||||
DotD,Deal of the Day (marketing gimmick)
|
DotD,Deal of the Day (marketing gimmick)
|
||||||
DOTMLPF,Doctrine,Organization,Training,Materiel,Leadership,Personnel,and Facilities (mnemonic)
|
DOTMLPF,Doctrine,Organization,Training,Materiel,Leadership,Personnel,and Facilities (mnemonic)
|
||||||
@ -1514,7 +1508,6 @@ FCM,Federation of Canadian Municipalities,Fogarty's Cove Music
|
|||||||
FCO,UK Foreign and Commonwealth Office
|
FCO,UK Foreign and Commonwealth Office
|
||||||
FCW,Florida Championship Wrestling
|
FCW,Florida Championship Wrestling
|
||||||
FD,Falun Dafa
|
FD,Falun Dafa
|
||||||
FDA,Food and Drug Administration (U.S.)
|
|
||||||
FDBK,(I) Feedback
|
FDBK,(I) Feedback
|
||||||
FDC,Federal Detention Center (U.S.),Fire Direction Centre
|
FDC,Federal Detention Center (U.S.),Fire Direction Centre
|
||||||
FDR,Flight Data Recorder,Franklin Delano Roosevelt
|
FDR,Flight Data Recorder,Franklin Delano Roosevelt
|
||||||
@ -1885,7 +1878,7 @@ GSOH,Good Sense Of Humour
|
|||||||
GSP,Georges St-Pierre (Canadian MMA fighter)
|
GSP,Georges St-Pierre (Canadian MMA fighter)
|
||||||
GSR,Gun Shot Residue
|
GSR,Gun Shot Residue
|
||||||
GSS,Generic Security Services
|
GSS,Generic Security Services
|
||||||
GST,Goods and Services Tax (Australia,Canada,and other countries)
|
GST,"Gulf Standard Time, Goods and Services Tax (Australia,Canada,and other countries)"
|
||||||
GSW,Gunshot wound
|
GSW,Gunshot wound
|
||||||
GT,Gigatesla,Gran Turismo,Grand Touring,Guatemala (ISO 3166 digram)
|
GT,Gigatesla,Gran Turismo,Grand Touring,Guatemala (ISO 3166 digram)
|
||||||
GTB,Get to bed,namely to get a new job after a long time of searching,usually following a phone call
|
GTB,Get to bed,namely to get a new job after a long time of searching,usually following a phone call
|
||||||
@ -4699,14 +4692,14 @@ USAID, United States Agency for International Development
|
|||||||
USAP,"Union Sportive des Arlequins Perpignanais,United States Antarctic Program"
|
USAP,"Union Sportive des Arlequins Perpignanais,United States Antarctic Program"
|
||||||
USAPATRIOT,Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism
|
USAPATRIOT,Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism
|
||||||
USAREUR,United States Army Europe
|
USAREUR,United States Army Europe
|
||||||
USB,Universal Serial Bus
|
|
||||||
USC,"United States Code,University of South Carolina,University of Southern California"
|
USC,"United States Code,University of South Carolina,University of Southern California"
|
||||||
USCG,United States Coast Guard
|
USCG,United States Coast Guard
|
||||||
USCINCSPACE,"United States Commander in Chief,Space Command"
|
USCINCSPACE,"United States Commander in Chief,Space Command"
|
||||||
USDA,United States Department of Agriculture
|
USDA,United States Department of Agriculture
|
||||||
USDI,United States Department of the Interior
|
USDI,United States Department of the Interior
|
||||||
USDOE,United States Department of Energy
|
USDOE,United States Department of Energy
|
||||||
USDRE,(U.S.) Under-Secretary of Defense for Research and Engineering (1978-1986)
|
USDRE,Under-Secretary of Defense for Research and Engineering (USA, 1978-1986)
|
||||||
|
USDS,United States Digital Service
|
||||||
USEC,United States Enrichment Corporation
|
USEC,United States Enrichment Corporation
|
||||||
USFL,United States Football League
|
USFL,United States Football League
|
||||||
USFWS,United States Fish and Wildlife Service
|
USFWS,United States Fish and Wildlife Service
|
||||||
|
Can't render this file because it has a wrong number of fields in line 8.
|
@ -263,7 +263,6 @@ FAV,Fast Attack Vehicle
|
|||||||
FBW,Fly-by-Wire
|
FBW,Fly-by-Wire
|
||||||
FCC,Family Child Care
|
FCC,Family Child Care
|
||||||
FCS,Fire Control System
|
FCS,Fire Control System
|
||||||
FDA,U.S. Food and Drug Administration
|
|
||||||
FDO,Flight Deck Officer
|
FDO,Flight Deck Officer
|
||||||
FEBA,Forward Edge of the Battle Area
|
FEBA,Forward Edge of the Battle Area
|
||||||
FEBA,Foward Edge of Battle Area
|
FEBA,Foward Edge of Battle Area
|
||||||
|
Can't render this file because it has a wrong number of fields in line 63.
|
@ -9,10 +9,10 @@ AIIB,Asian Infrastructure Investment Bank
|
|||||||
APEC,Asia-Pacific Economic Cooperation
|
APEC,Asia-Pacific Economic Cooperation
|
||||||
ASEAN,Association of South East Nations
|
ASEAN,Association of South East Nations
|
||||||
AT&T,American Telephone and Telegraph Company
|
AT&T,American Telephone and Telegraph Company
|
||||||
ATF,"U.S. Alcohol, Tobacco, Firearms and Explosives Bureau"
|
ATF,"Alcohol, Tobacco, Firearms and Explosives Bureau (USA)"
|
||||||
BMW, Bavarian Motor Works
|
BMW,Bavarian Motor Works
|
||||||
BND,Bundesnachrichtendienst (Germany)
|
BND,Bundesnachrichtendienst (Germany)
|
||||||
BVD, Bradley, Voorhees, and Day
|
BVD,"Bradley, Voorhees, and Day"
|
||||||
CERN,European Organization for Nuclear Research
|
CERN,European Organization for Nuclear Research
|
||||||
CIA,Central Intelligence Agency (USA)
|
CIA,Central Intelligence Agency (USA)
|
||||||
CISA,Cybersecurity Insurance and Security Agency (USA)
|
CISA,Cybersecurity Insurance and Security Agency (USA)
|
||||||
@ -20,7 +20,11 @@ CPUC,California Public Utilities Commission
|
|||||||
DHS,Department of Homeland Security (USA)
|
DHS,Department of Homeland Security (USA)
|
||||||
DOC,Department of Commerce (USA)
|
DOC,Department of Commerce (USA)
|
||||||
DoD,Department of Defense (USA)
|
DoD,Department of Defense (USA)
|
||||||
|
DODAF,Department of Defense Architectural Framework (USA)
|
||||||
|
DoDD,Department of Defense Directive (USA)
|
||||||
|
DoDEA,Department of Defense Education Activity (USA)
|
||||||
DoE,Department of Energy (USA)
|
DoE,Department of Energy (USA)
|
||||||
|
DOGE,Department of Government Efficiency (USA)
|
||||||
DOI,Department of the Interior (USA)
|
DOI,Department of the Interior (USA)
|
||||||
DOJ,Department of Justice (USA)
|
DOJ,Department of Justice (USA)
|
||||||
DOL,Department of Labor (USA)
|
DOL,Department of Labor (USA)
|
||||||
@ -29,17 +33,18 @@ DOT,Department of Transportation (USA)
|
|||||||
EASA,European Aviation Safety Agency
|
EASA,European Aviation Safety Agency
|
||||||
ED,U.S. Department of Education
|
ED,U.S. Department of Education
|
||||||
ESA,European Space Agency
|
ESA,European Space Agency
|
||||||
ESPN, Entertainment and Sports Programming Network
|
ESPN,Entertainment and Sports Programming Network
|
||||||
FAO,Food and Agriculture Organization
|
FAO,Food and Agriculture Organization
|
||||||
FBI,U.S. Federal Bureau of Investigation
|
FBI,Federal Bureau of Investigation (USA)
|
||||||
|
FDA,Food and Drug Administration (USA)
|
||||||
FIFA,Fédération Internationale de Football Association
|
FIFA,Fédération Internationale de Football Association
|
||||||
GEICO, Government Employees Insurance Company
|
GEICO,Government Employees Insurance Company
|
||||||
H&M, Hennes and Mauritz
|
H&M,Hennes and Mauritz
|
||||||
HHS,U.S. Department of Health and Human Services
|
HHS,U.S. Department of Health and Human Services
|
||||||
HRW,Human Rights Watch
|
HRW,Human Rights Watch
|
||||||
HSBC, Hongkong and Shanghai Banking Corporation
|
HSBC,Hongkong and Shanghai Banking Corporation
|
||||||
HUD,U.S. Department of Housing and Urban Development
|
HUD,U.S. Department of Housing and Urban Development
|
||||||
IBM, International Business Machines
|
IBM International Business Machines
|
||||||
ICC,International Cricket Council
|
ICC,International Cricket Council
|
||||||
ICI,Imperial Chemical Industries
|
ICI,Imperial Chemical Industries
|
||||||
ICJ,International Court of Justice
|
ICJ,International Court of Justice
|
||||||
@ -48,11 +53,11 @@ IMO,International Maritime Organization
|
|||||||
IOC,International Olympic Committee
|
IOC,International Olympic Committee
|
||||||
ISO,International Organization for Standardization
|
ISO,International Organization for Standardization
|
||||||
J&J,Johnson & Johnson
|
J&J,Johnson & Johnson
|
||||||
JBL, James Bullough Lansing
|
JBL,James Bullough Lansing
|
||||||
L.L. Bean, Leon Leonwood Bean
|
L.L. Bean,Leon Leonwood Bean
|
||||||
LAPD,Los Angeles Police Department
|
LAPD,Los Angeles Police Department
|
||||||
LBA,Luftfahrtbundesamt (German aviation agency)
|
LBA,Luftfahrtbundesamt (German aviation agency)
|
||||||
M&M, Mars & Murrie’s
|
M&M,Mars & Murrie’s
|
||||||
MILF,Moro Islamic Liberation Front
|
MILF,Moro Islamic Liberation Front
|
||||||
NASA,National Aeronautics and Space Administration
|
NASA,National Aeronautics and Space Administration
|
||||||
NATO,North Atlantic Treaty Organization
|
NATO,North Atlantic Treaty Organization
|
||||||
@ -78,9 +83,8 @@ UNIDO,United Nations Industrial Development Organization
|
|||||||
UNO,United Nations Organization
|
UNO,United Nations Organization
|
||||||
USDA,United States Department of Agriculture
|
USDA,United States Department of Agriculture
|
||||||
UPS,United Parcel Service
|
UPS,United Parcel Service
|
||||||
USSF,"United States Soccer Federation, governing body of soccer in the United States"
|
USIP,United States Institute of Peace
|
||||||
USSF,"United States Social Forum, an activist organization"
|
USSF,"United States Soccer Federation, US Social Forum, US Sumo Federation"
|
||||||
USSF,"US Sumo Federation, governing body of sumo in the United States"
|
|
||||||
VA,U.S. Department of Veterans Affairs
|
VA,U.S. Department of Veterans Affairs
|
||||||
VW,Volkswagen
|
VW,Volkswagen
|
||||||
WEF,World Economic Forum
|
WEF,World Economic Forum
|
||||||
@ -88,6 +92,6 @@ WHO,World Health Organization
|
|||||||
WIPO,World Intellectual Property Organization
|
WIPO,World Intellectual Property Organization
|
||||||
WMO,World Meteorological Organization
|
WMO,World Meteorological Organization
|
||||||
WWF,World Wide Fund for Nature
|
WWF,World Wide Fund for Nature
|
||||||
YKK, Yoshida Manufacturing Corporation
|
YKK,Yoshida Manufacturing Corporation
|
||||||
YMCA,Young Men's Christian Association
|
YMCA,Young Men's Christian Association
|
||||||
YWCA,Young Women's Christian Association
|
YWCA,Young Women's Christian Association
|
||||||
|
Can't render this file because it has a wrong number of fields in line 15.
|
@ -5,7 +5,9 @@ NAME,URL,
|
|||||||
"Google Keep","https://keep.google.com/",
|
"Google Keep","https://keep.google.com/",
|
||||||
"Google Photos","https://photos.google.com/",
|
"Google Photos","https://photos.google.com/",
|
||||||
"Google News","https://news.google.com",
|
"Google News","https://news.google.com",
|
||||||
|
"Google Tasks","https://tasks.google.com/tasks/",
|
||||||
"Outlook Mail","https://outlook.office.com/mail/",
|
"Outlook Mail","https://outlook.office.com/mail/",
|
||||||
|
"Microsoft Teams","https://teams.microsoft.com/v2/",
|
||||||
"CNN News","https://edition.cnn.com",
|
"CNN News","https://edition.cnn.com",
|
||||||
"GitHub Explore","https://github.com/explore",
|
"GitHub Explore","https://github.com/explore",
|
||||||
"FlightRadar24","https://www.flightradar24.com/27.63,-6.98/3",
|
"FlightRadar24","https://www.flightradar24.com/27.63,-6.98/3",
|
||||||
|
|
7
data/templates/Markdown.md
Normal file
7
data/templates/Markdown.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Your Headline
|
||||||
|
=============
|
||||||
|
|
||||||
|
Some introductory words...
|
||||||
|
|
||||||
|
1. Do this...
|
||||||
|
2. Do that...
|
7
data/templates/Text.txt
Normal file
7
data/templates/Text.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Your Headline
|
||||||
|
=============
|
||||||
|
|
||||||
|
Some introductory words...
|
||||||
|
|
||||||
|
1. Do this...
|
||||||
|
2. Do that...
|
20
docs/FAQ.md
20
docs/FAQ.md
@ -96,12 +96,13 @@
|
|||||||
|
|
||||||
<details><summary>How to get the ultimate PowerShell experience?</summary>
|
<details><summary>How to get the ultimate PowerShell experience?</summary>
|
||||||
|
|
||||||
1. **Install *PowerShell* (free) on all your Linux/Mac OS/Windows machines and configure it as your default shell.**
|
1. **Install *PowerShell* (free)** on all your Linux/Mac OS/Windows machines and configure it as your default shell.
|
||||||
2. **Install an *SSH client & server* (free) on all your Linux/Mac OS/Windows machines for remote control via SSH.**
|
2. **Install *SSH client & server* (free)** on all your Linux/Mac OS/Windows machines for remote control via SSH.
|
||||||
3. **Install *Windows Terminal* (free) on Windows with 50% transparency, font 'Fira Code' and no PowerShell banner message.**
|
3. **Install *Windows Terminal* (free)** on Windows with 50% transparency, font 'Fira Code' and no PowerShell banner message.
|
||||||
4. **Install *Visual Studio Code* (free) with plugin 'PowerShell' to edit PowerShell scripts.**
|
4. **Install *Visual Studio Code* (free)** with plugin 'PowerShell' to edit PowerShell scripts.
|
||||||
5. **Install this *Mega Collection of PowerShell scripts* and set the PATH environment variable to it.**
|
5. **Install this GitHub repo** and set the PATH environment variable to the 📂scripts subfolder.
|
||||||
6. **Use an own PowerShell profile, e.g. execute: './update-powershell-profile.ps1'**
|
6. **Set an own PowerShell profile,** e.g. by executing: './update-powershell-profile.ps1'.
|
||||||
|
7. **For Jenkins** install the *PowerShell plugin* and use PowerShell in your Jenkins jobs.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
@ -142,6 +143,13 @@ Want to use the PowerShell scripts everywhere on the command-line? Then you need
|
|||||||
* **For Windows Terminal:** open Settings > Profiles > Windows PowerShell > Command line and add " -nologo".
|
* **For Windows Terminal:** open Settings > Profiles > Windows PowerShell > Command line and add " -nologo".
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Where to find more scripts?</summary>
|
||||||
|
|
||||||
|
* [PowerShellGallery.com](https://www.powershellgallery.com/) - The central repository for sharing and acquiring PowerShell code including PowerShell modules, scripts, and DSC resources.
|
||||||
|
* [ScriptShare.io](https://www.scriptshare.io/) - ScriptShare is an evergrowing library of scripts and automations.
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
<details><summary>How to write good PowerShell scripts?</summary>
|
<details><summary>How to write good PowerShell scripts?</summary>
|
||||||
|
|
||||||
**Good PowerShell scripts are both user-friendly and platform-independent. As a starting point I recommend the following:**
|
**Good PowerShell scripts are both user-friendly and platform-independent. As a starting point I recommend the following:**
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
-Direction <String>
|
-Direction <String>
|
||||||
@ -24,6 +25,7 @@ Parameters
|
|||||||
Position? 2
|
Position? 2
|
||||||
Default value Inbound
|
Default value Inbound
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
-FirewallProfile <Array>
|
-FirewallProfile <Array>
|
||||||
@ -32,6 +34,7 @@ Parameters
|
|||||||
Position? 3
|
Position? 3
|
||||||
Default value @("Domain", "Private")
|
Default value @("Domain", "Private")
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -113,4 +116,4 @@ try {
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -71,4 +72,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
The *build-repo.ps1* Script
|
The *build-repo.ps1* Script
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
This PowerShell script builds a Git repository by supporting build systems such as: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
|
This PowerShell script builds a Git repository by supporting the build systems: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
@ -9,12 +9,13 @@ Parameters
|
|||||||
/Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
/Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
||||||
|
|
||||||
-path <String>
|
-path <String>
|
||||||
Specifies the path to the Git repository (default is current working directory)
|
Specifies the path to the Git repository (current working directory by default)
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
Default value "$PWD"
|
Default value "$PWD"
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -26,9 +27,9 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./build-repo.ps1 C:\Repos\ninja
|
PS> ./build-repo.ps1 C:\Repos\ninja
|
||||||
⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results...
|
⏳ Building 📂ninja by using CMake...
|
||||||
...
|
...
|
||||||
✅ Built 📂ninja repository in 47 sec.
|
✅ Build of 📂ninja succeeded in 47s, results in: 📂C:\Repos\ninja\_results
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -45,16 +46,16 @@ Script Content
|
|||||||
```powershell
|
```powershell
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Builds a repository
|
Builds a repo
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script builds a Git repository by supporting build systems such as: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
|
This PowerShell script builds a Git repository by supporting the build systems: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
|
||||||
.PARAMETER path
|
.PARAMETER path
|
||||||
Specifies the path to the Git repository (default is current working directory)
|
Specifies the path to the Git repository (current working directory by default)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./build-repo.ps1 C:\Repos\ninja
|
PS> ./build-repo.ps1 C:\Repos\ninja
|
||||||
⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results...
|
⏳ Building 📂ninja by using CMake...
|
||||||
...
|
...
|
||||||
✅ Built 📂ninja repository in 47 sec.
|
✅ Build of 📂ninja succeeded in 47s, results in: 📂C:\Repos\ninja\_results
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -63,114 +64,114 @@ Script Content
|
|||||||
|
|
||||||
param([string]$path = "$PWD")
|
param([string]$path = "$PWD")
|
||||||
|
|
||||||
function BuildInDir([string]$path) {
|
function BuildFolder([string]$path) {
|
||||||
$dirName = (Get-Item "$path").Name
|
$dirName = (Get-Item "$path").Name
|
||||||
if (Test-Path "$path/CMakeLists.txt" -pathType leaf) {
|
if (Test-Path "$path/CMakeLists.txt" -pathType leaf) {
|
||||||
"⏳ (1/4) Building 📂$dirName by using CMake into 📂$dirName/_Build_Results..."
|
"⏳ (1/4) Building 📂$dirName by using CMake..."
|
||||||
if (-not(Test-Path "$path/_Build_Results/" -pathType container)) {
|
$global:results = "$path/_results/"
|
||||||
& mkdir "$path/_Build_Results/"
|
if (-not(Test-Path $global:results -pathType container)) {
|
||||||
|
& mkdir $global:results
|
||||||
}
|
}
|
||||||
Set-Location "$path/_Build_Results/"
|
Set-Location $global:results
|
||||||
|
|
||||||
"⏳ (2/4) Executing 'cmake' to generate the Makefile..."
|
"⏳ (2/4) Executing 'cmake' to generate the Makefile..."
|
||||||
& cmake ..
|
& cmake ..
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'cmake ..' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
"⏳ (3/4) Executing 'make -j4' to compile and link..."
|
"⏳ (3/4) Executing 'make -j4' to compile and link..."
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
"⏳ (4/4) Executing 'ctest -V' to perform tests (optional)..."
|
"⏳ (4/4) Executing 'ctest -V'... (if tests are provided)"
|
||||||
& ctest -V
|
& ctest -V
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'ctest -V' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'ctest -V' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/autogen.sh" -pathType leaf) {
|
} elseif (Test-Path "$path/autogen.sh" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using 'autogen.sh'..."
|
"⏳ Building 📂$dirName by executing 'autogen.sh'..."
|
||||||
Set-Location "$path/"
|
Set-Location "$path/"
|
||||||
|
|
||||||
& ./autogen.sh --force
|
& ./autogen.sh --force
|
||||||
if ($lastExitCode -ne "0") { throw "Executing './autogen.sh --force' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing './autogen.sh --force' failed with exit code $lastExitCode" }
|
||||||
|
"⏳ Executing './configure'..."
|
||||||
|
|
||||||
& ./configure
|
& ./configure
|
||||||
if ($lastExitCode -ne "0") { throw "Executing './configure' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing './configure' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
|
|
||||||
} elseif (Test-Path "$path/configure" -pathType leaf) {
|
} elseif (Test-Path "$path/configure" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using 'configure'..."
|
"⏳ Building 📂$dirName by executing './configure' and 'make'..."
|
||||||
Set-Location "$path/"
|
Set-Location "$path/"
|
||||||
|
|
||||||
& ./configure
|
& ./configure
|
||||||
#if ($lastExitCode -ne "0") { throw "Executing './configure' exited with error code $lastExitCode" }
|
#if ($lastExitCode -ne 0) { throw "Executing './configure' exited with error code $lastExitCode" }
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
& make test
|
& make test
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make test' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/build.gradle" -pathType leaf) {
|
} elseif (Test-Path "$path/build.gradle" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using Gradle..."
|
"⏳ Building 📂$dirName by using Gradle..."
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
|
|
||||||
& gradle build
|
& gradle build
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'gradle build' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'gradle build' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
& gradle test
|
& gradle test
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'gradle test' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'gradle test' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/meson.build" -pathType leaf) {
|
} elseif (Test-Path "$path/meson.build" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using Meson..."
|
"⏳ Building 📂$dirName by using Meson..."
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
& meson . build --prefix=/usr/local
|
& meson . build --prefix=/usr/local
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'meson . build' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing 'meson . build' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/Imakefile" -pathType leaf) {
|
} elseif (Test-Path "$path/Imakefile" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using Imakefile..."
|
"⏳ Building 📂$dirName by using Imakefile..."
|
||||||
Set-Location "$path/"
|
Set-Location "$path/"
|
||||||
|
|
||||||
& xmkmf
|
& xmkmf
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'xmkmf' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'xmkmf' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/Makefile" -pathType leaf) {
|
} elseif (Test-Path "$path/Makefile" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using Makefile..."
|
"⏳ Building 📂$dirName by using Makefile..."
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/makefile" -pathType leaf) {
|
} elseif (Test-Path "$path/makefile" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using makefile..."
|
"⏳ Building 📂$dirName by using makefile..."
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/compile.sh" -pathType leaf) {
|
} elseif (Test-Path "$path/compile.sh" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using 'compile.sh'..."
|
"⏳ Building 📂$dirName by executing 'compile.sh'..."
|
||||||
Set-Location "$path/"
|
Set-Location "$path/"
|
||||||
|
|
||||||
& ./compile.sh
|
& ./compile.sh
|
||||||
if ($lastExitCode -ne "0") { throw "Executing './compile.sh' exited with error code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "Executing './compile.sh' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
& make -j4
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
if ($lastExitCode -ne 0) { throw "Executing 'make -j4' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
} elseif (Test-Path "$path/attower/src/build/DevBuild/build.bat" -pathType leaf) {
|
} elseif (Test-Path "$path/attower/src/build/DevBuild/build.bat" -pathType leaf) {
|
||||||
"⏳ Building 📂$dirName by using build.bat ..."
|
|
||||||
Set-Location "$path/attower/src/build/DevBuild/"
|
|
||||||
|
|
||||||
& ./build.bat build-all-release
|
Write-Host "⏳ Building 📂$dirName by executing 'build.bat'..."
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'build.bat build-all-release' exited with error code $lastExitCode" }
|
Set-Location "$path/attower/src/build/DevBuild/"
|
||||||
|
& ./build.bat build-core-release
|
||||||
|
if ($lastExitCode -ne 0) { throw "Executing 'build.bat' failed with exit code $lastExitCode" }
|
||||||
|
$global:results = "$path\attower\Executables"
|
||||||
|
|
||||||
} elseif (Test-Path "$path/$dirName" -pathType container) {
|
} elseif (Test-Path "$path/$dirName" -pathType container) {
|
||||||
"⏳ No make rule found, trying subfolder 📂$($dirName)..."
|
"⏳ No make rule found, trying subfolder 📂$($dirName)..."
|
||||||
BuildInDir "$path/$dirName"
|
BuildFolder "$path/$dirName"
|
||||||
} else {
|
} else {
|
||||||
Write-Warning "Sorry, no make rule applies to: 📂$dirName"
|
Write-Warning "Sorry, no make rule applies to: 📂$dirName"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
@ -179,21 +180,27 @@ function BuildInDir([string]$path) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Can't access directory: $path" }
|
|
||||||
|
|
||||||
$previousPath = Get-Location
|
$previousPath = Get-Location
|
||||||
BuildInDir "$path"
|
|
||||||
|
if (-not(Test-Path "$path" -pathType container)) { throw "The file path '$path' doesn't exist (yet)" }
|
||||||
|
|
||||||
|
$global:results = ""
|
||||||
|
BuildFolder "$path"
|
||||||
Set-Location "$previousPath"
|
Set-Location "$previousPath"
|
||||||
|
|
||||||
$repoDirName = (Get-Item "$path").Name
|
$repoDirName = (Get-Item "$path").Name
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
"✅ Built 📂$repoDirName repository in $elapsed sec."
|
if ($global:results -eq "") {
|
||||||
|
"✅ Build of 📂$repoDirName succeeded in $($elapsed)s."
|
||||||
|
} else {
|
||||||
|
"✅ Build of 📂$repoDirName succeeded in $($elapsed)s, results in: 📂$($global:results)"
|
||||||
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Set-Location "$previousPath"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value "$PWD"
|
Default value "$PWD"
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -82,4 +83,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -49,15 +49,15 @@ Script Content
|
|||||||
try {
|
try {
|
||||||
$path = Resolve-Path "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
|
$path = Resolve-Path "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
|
||||||
if (-not(Test-Path "$path" -pathType container)) {
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
throw "Autostart folder at 📂$path doesn't exist (yet)"
|
throw "No autostart folder at 📂$path"
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
"📂$path"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-crashdumps
|
PS> ./cd-crashdumps
|
||||||
📂C:\Users\Markus\AppData\Local\CrashDumps
|
📂C:\Users\Markus\AppData\Local\CrashDumps entered (has 3 files and 0 folders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the crash dumps directory (Windows only). Whenever a software crashes and crash dumps are enabled(!) a crash dump file is written. This file helps to identify the reason for the crash.
|
This PowerShell script changes the working directory to the crash dumps directory (Windows only). Whenever a software crashes and crash dumps are enabled(!) a crash dump file is written. This file helps to identify the reason for the crash.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-crashdumps
|
PS> ./cd-crashdumps
|
||||||
📂C:\Users\Markus\AppData\Local\CrashDumps
|
📂C:\Users\Markus\AppData\Local\CrashDumps entered (has 3 files and 0 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -50,17 +50,19 @@ try {
|
|||||||
if ($IsLinux) { throw "Sorry, Windows only" }
|
if ($IsLinux) { throw "Sorry, Windows only" }
|
||||||
|
|
||||||
[string]$path = Resolve-Path -Path "~"
|
[string]$path = Resolve-Path -Path "~"
|
||||||
if (!(Test-Path "$path" -pathType container)) { throw "Home directory at $path doesn't exist (yet)" }
|
if (!(Test-Path "$path" -pathType container)) { throw "No home directory at $path" }
|
||||||
|
|
||||||
$path += "\AppData\Local\CrashDumps"
|
$path += "\AppData\Local\CrashDumps"
|
||||||
if (!(Test-Path "$path" -pathType container)) { throw "Crashdumps directory at $path doesn't exist (yet)" }
|
if (!(Test-Path "$path" -pathType container)) { throw "No crashdumps folder at $path" }
|
||||||
Set-Location "$Path"
|
Set-Location "$Path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -47,21 +47,24 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinux) {
|
if ($IsLinux -or $IsMacOS) {
|
||||||
|
if (-not(Test-Path "~/Desktop" -pathType container)) {
|
||||||
|
throw "No 📂Desktop folder in your home directory yet"
|
||||||
|
}
|
||||||
$path = Resolve-Path "~/Desktop"
|
$path = Resolve-Path "~/Desktop"
|
||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('DesktopDirectory')
|
$path = [Environment]::GetFolderPath('DesktopDirectory')
|
||||||
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No desktop folder at 📂$path yet"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Test-Path "$path" -pathType container) {
|
Set-Location "$path"
|
||||||
Set-Location "$path"
|
"📂$path"
|
||||||
"📂$path"
|
exit 0 # success
|
||||||
exit 0 # success
|
|
||||||
}
|
|
||||||
throw "User's desktop folder at 📂$path doesn't exist (yet)"
|
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-docs
|
PS> ./cd-docs
|
||||||
📂C:\Users\Markus\Documents
|
📂C:\Users\Markus\Documents entered (has 3 files and 0 folders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the documents folder.
|
This PowerShell script changes the working directory to the documents folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-docs
|
PS> ./cd-docs
|
||||||
📂C:\Users\Markus\Documents
|
📂C:\Users\Markus\Documents entered (has 3 files and 0 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,21 +47,26 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinux) {
|
if ($IsLinux -or $IsMacOS) {
|
||||||
|
if (-not(Test-Path "~/Documents" -pathType container)) {
|
||||||
|
throw "No 📂Documents folder in your home directory yet"
|
||||||
|
}
|
||||||
$path = Resolve-Path "~/Documents"
|
$path = Resolve-Path "~/Documents"
|
||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('MyDocuments')
|
$path = [Environment]::GetFolderPath('MyDocuments')
|
||||||
}
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
if (-not(Test-Path "$path" -pathType container)) {
|
throw "No documents folder at 📂$path yet"
|
||||||
throw "Documents folder at 📂$path doesn't exist (yet)"
|
}
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-downloads
|
PS> ./cd-downloads
|
||||||
📂C:\Users\Markus\Downloads
|
📂C:\Users\Markus\Downloads entered (has 0 files and 0 folders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's downloads folder.
|
This PowerShell script changes the working directory to the user's downloads folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-downloads
|
PS> ./cd-downloads
|
||||||
📂C:\Users\Markus\Downloads
|
📂C:\Users\Markus\Downloads entered (has 0 files and 0 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,21 +47,26 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinux) {
|
if ($IsLinux -or $IsMacOS) {
|
||||||
|
if (-not(Test-Path "~/Downloads" -pathType container)) {
|
||||||
|
throw "No 📂Downloads folder in your home directory yet"
|
||||||
|
}
|
||||||
$path = Resolve-Path "~/Downloads"
|
$path = Resolve-Path "~/Downloads"
|
||||||
} else {
|
} else {
|
||||||
$path = (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path
|
$path = (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path
|
||||||
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No downloads folder at 📂$path"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Test-Path "$path" -pathType container) {
|
Set-Location "$path"
|
||||||
Set-Location "$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
"📂$path"
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
exit 0 # success
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
}
|
exit 0 # success
|
||||||
throw "User's downloads folder at 📂$path doesn't exist (yet)"
|
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-dropbox
|
PS> ./cd-dropbox
|
||||||
📂C:\Users\Markus\Dropbox
|
📂C:\Users\Markus\Dropbox (has 2 files and 4 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's Dropbox folder.
|
This PowerShell script changes the working directory to the user's Dropbox folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-dropbox
|
PS> ./cd-dropbox
|
||||||
📂C:\Users\Markus\Dropbox
|
📂C:\Users\Markus\Dropbox (has 2 files and 4 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,10 +47,14 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (-not(Test-Path "~/Dropbox" -pathType container)) {
|
||||||
|
throw "No 📂Dropbox folder in your home directory - is Dropbox installed?"
|
||||||
|
}
|
||||||
$path = Resolve-Path "~/Dropbox"
|
$path = Resolve-Path "~/Dropbox"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "No Dropbox folder at 📂$path - is Dropbox installed?" }
|
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -58,4 +62,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-etc
|
PS> ./cd-etc
|
||||||
📂C:\Windows\System32\drivers\etc
|
📂C:\Windows\System32\drivers\etc (has 2 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the /etc directory.
|
This PowerShell script changes the working directory to the /etc directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-etc
|
PS> ./cd-etc
|
||||||
📂C:\Windows\System32\drivers\etc
|
📂C:\Windows\System32\drivers\etc (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,21 +47,23 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinx) {
|
if ($IsLinux -or $IsMacOS) {
|
||||||
$path = "/etc"
|
$path = "/etc"
|
||||||
} else {
|
} else {
|
||||||
$path = Resolve-Path "$env:WINDIR\System32\drivers\etc"
|
$path = Resolve-Path "$env:WINDIR\System32\drivers\etc"
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) {
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
throw "/etc directory at 📂$path doesn't exist (yet)"
|
throw "No /etc directory at 📂$path"
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-fonts
|
PS> ./cd-fonts
|
||||||
📂C:\Windows\Fonts
|
📂C:\Windows\Fonts (has 2 file and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the fonts folder.
|
This PowerShell script changes the working directory to the fonts folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-fonts
|
PS> ./cd-fonts
|
||||||
📂C:\Windows\Fonts
|
📂C:\Windows\Fonts (has 2 file and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -49,15 +49,17 @@ Script Content
|
|||||||
try {
|
try {
|
||||||
$path = [Environment]::GetFolderPath('Fonts')
|
$path = [Environment]::GetFolderPath('Fonts')
|
||||||
if (-not(Test-Path "$path" -pathType container)) {
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
throw "Fonts folder at 📂$path doesn't exist (yet)"
|
throw "No fonts folder at 📂$path"
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-home.ps1
|
PS> ./cd-home.ps1
|
||||||
📂C:\Users\Markus
|
📂C:\Users\Markus entered (has 4 files and 7 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's home directory.
|
This PowerShell script changes the working directory to the user's home directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-home.ps1
|
PS> ./cd-home.ps1
|
||||||
📂C:\Users\Markus
|
📂C:\Users\Markus entered (has 4 files and 7 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,15 +47,17 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (-not(Test-Path "~" -pathType container)) { throw "No home directory at $path" }
|
||||||
$path = Resolve-Path "~"
|
$path = Resolve-Path "~"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Home folder at $path doesn't exist (yet)" }
|
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-jenkins
|
PS> ./cd-jenkins
|
||||||
📂C:\Users\Markus\.jenkins
|
📂C:\Users\Markus\.jenkins entered (has 2 files and 21 folders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the Jenkins home directory.
|
This PowerShell script changes the working directory to the Jenkins home directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-jenkins
|
PS> ./cd-jenkins
|
||||||
📂C:\Users\Markus\.jenkins
|
📂C:\Users\Markus\.jenkins entered (has 2 files and 21 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -55,7 +55,9 @@ try {
|
|||||||
throw "No Jenkins home directory found - is Jenkins installed?"
|
throw "No Jenkins home directory found - is Jenkins installed?"
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -63,4 +65,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script changes the current working directory to the logs directory.
|
This PowerShell script changes the current working directory to the logs directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-logs
|
PS> ./cd-logs
|
||||||
📂/var/logs
|
📂/var/logs entered (has 3 files and 2 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -32,7 +32,7 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
function GetLogsDir {
|
function GetLogsDir {
|
||||||
if ($IsLinux) { return "/var/logs" }
|
if ($IsLinux -or $IsMacOS) { return "/var/logs" }
|
||||||
$WinDir = [System.Environment]::GetFolderPath('Windows')
|
$WinDir = [System.Environment]::GetFolderPath('Windows')
|
||||||
return "$WinDir\Logs"
|
return "$WinDir\Logs"
|
||||||
}
|
}
|
||||||
@ -40,12 +40,14 @@ function GetLogsDir {
|
|||||||
try {
|
try {
|
||||||
$path = GetLogsDir
|
$path = GetLogsDir
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-music
|
PS> ./cd-music
|
||||||
📂C:\Users\Markus\Music
|
📂C:\Users\Markus\Music entered (has 0 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's music folder.
|
This PowerShell script changes the working directory to the user's music folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-music
|
PS> ./cd-music
|
||||||
📂C:\Users\Markus\Music
|
📂C:\Users\Markus\Music entered (has 0 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -52,16 +52,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('MyMusic')
|
$path = [Environment]::GetFolderPath('MyMusic')
|
||||||
}
|
}
|
||||||
if (Test-Path "$path" -pathType container) {
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
Set-Location "$path"
|
throw "No music folder at 📂$path"
|
||||||
"📂$path"
|
|
||||||
exit 0 # success
|
|
||||||
}
|
}
|
||||||
throw "User's music folder at 📂$path doesn't exist (yet)"
|
Set-Location "$path"
|
||||||
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-nextcloud
|
PS> ./cd-nextcloud
|
||||||
📂C:\Users\Markus\NextCloud
|
📂C:\Users\Markus\NextCloud entered (has 2 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's NextCloud folder.
|
This PowerShell script changes the working directory to the user's NextCloud folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-nextcloud
|
PS> ./cd-nextcloud
|
||||||
📂C:\Users\Markus\NextCloud
|
📂C:\Users\Markus\NextCloud entered (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,9 +48,13 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = Resolve-Path "~/NextCloud"
|
$path = Resolve-Path "~/NextCloud"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "No NextCloud folder at 📂$path - is NextCloud installed?" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No NextCloud folder at $path - is NextCloud installed?"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -58,4 +62,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-onedrive
|
PS> ./cd-onedrive
|
||||||
📂C:\Users\Markus\OneDrive
|
📂C:\Users\Markus\OneDrive entered (has 2 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's OneDrive folder.
|
This PowerShell script changes the working directory to the user's OneDrive folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-onedrive
|
PS> ./cd-onedrive
|
||||||
📂C:\Users\Markus\OneDrive
|
📂C:\Users\Markus\OneDrive entered (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,9 +48,13 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = Resolve-Path "~/OneDrive"
|
$path = Resolve-Path "~/OneDrive"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "No OneDrive folder at 📂$path - is OneDrive installed?" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No OneDrive folder at $path - is OneDrive installed?"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -58,4 +62,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-pics
|
PS> ./cd-pics
|
||||||
📂C:\Users\Markus\Pictures
|
📂C:\Users\Markus\Pictures entered (has 7 files and 0 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's pictures folder.
|
This PowerShell script changes the working directory to the user's pictures folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-pics
|
PS> ./cd-pics
|
||||||
📂C:\Users\Markus\Pictures
|
📂C:\Users\Markus\Pictures entered (has 7 files and 0 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -52,14 +52,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('MyPictures')
|
$path = [Environment]::GetFolderPath('MyPictures')
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Pictures folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No pictures folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-public
|
PS> ./cd-public
|
||||||
📂C:\Users\Public
|
📂C:\Users\Public entered (has 2 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the Public folder.
|
This PowerShell script changes the working directory to the Public folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-public
|
PS> ./cd-public
|
||||||
📂C:\Users\Public
|
📂C:\Users\Public entered (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -52,14 +52,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = Resolve-Path "~/../Public"
|
$path = Resolve-Path "~/../Public"
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Public folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No public folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-recent
|
PS> ./cd-recent
|
||||||
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent
|
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent entered (has 2 files and 3 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the 'recent' folder.
|
This PowerShell script changes the working directory to the 'recent' folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-recent
|
PS> ./cd-recent
|
||||||
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent
|
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent entered (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -49,10 +49,12 @@ Script Content
|
|||||||
try {
|
try {
|
||||||
$path = [Environment]::GetFolderPath('Recent')
|
$path = [Environment]::GetFolderPath('Recent')
|
||||||
if (-not(Test-Path "$path" -pathType container)) {
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
throw "Recent folder at 📂$path doesn't exist (yet)"
|
throw "No recent folder at $path"
|
||||||
}
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
@ -60,4 +62,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's recycle bin folder.
|
This PowerShell script changes the working directory to the user's recycle bin folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-recycle-bin
|
PS> ./cd-recycle-bin
|
||||||
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 entered (has 2 files and 0 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -43,14 +43,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Recycle bin folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No recycle bin folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -26,7 +27,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-repo.ps1 rust
|
PS> ./cd-repo.ps1 rust
|
||||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
📂C:\Repos\rust entered, current branch is: ## main ... origin/main
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -50,7 +51,7 @@ Script Content
|
|||||||
Specifies the folder name of the Git repository
|
Specifies the folder name of the Git repository
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-repo.ps1 rust
|
PS> ./cd-repo.ps1 rust
|
||||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
📂C:\Repos\rust entered, current branch is: ## main ... origin/main
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -60,36 +61,28 @@ Script Content
|
|||||||
param([string]$folderName = "")
|
param([string]$folderName = "")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ("$folderName" -eq "") { $folderName = Read-Host "Enter the Git repository's folder name" }
|
if ("$folderName" -eq "") { $folderName = Read-Host "Please enter the Git repository's folder name" }
|
||||||
|
|
||||||
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
|
if (Test-Path "~/Repos" -pathType container) { $path = "~/Repos"
|
||||||
$path = "~/Repos"
|
} elseif (Test-Path "~/repos" -pathType container) { $path = "~/repos"
|
||||||
} elseif (Test-Path "~/repos" -pathType Container) {
|
} elseif (Test-Path "~/Repositories" -pathType container) { $path = "~/Repositories"
|
||||||
$path = "~/repos"
|
} elseif (Test-Path "~/repositories" -pathType container) { $path = "~/repositories"
|
||||||
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
|
} elseif (Test-Path "/Repos" -pathType container) { $path = "/Repos"
|
||||||
$path = "~/Repositories"
|
} elseif (Test-Path "/repos" -pathType container) { $path = "/repos"
|
||||||
} elseif (Test-Path "~/repositories" -pathType Container) {
|
} elseif (Test-Path "/Repositories" -pathType container) { $path = "/Repositories"
|
||||||
$path = "~/repositories"
|
} elseif (Test-Path "/repositories" -pathType container) { $path = "/repositories"
|
||||||
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
|
} elseif (Test-Path "~/source/repos" -pathType container) { $path = "~/source/repos" # Visual Studio default
|
||||||
$path = "/Repos"
|
} elseif (Test-Path "D:/Repos" -pathType container) { $path = "D:/Repos" # second HDD
|
||||||
} elseif (Test-Path "/repos" -pathType Container) {
|
|
||||||
$path = "/repos"
|
|
||||||
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
|
|
||||||
$path = "/Repositories"
|
|
||||||
} elseif (Test-Path "/repositories" -pathType Container) {
|
|
||||||
$path = "/repositories"
|
|
||||||
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
|
|
||||||
$path = "~/source/repos"
|
|
||||||
} else {
|
} else {
|
||||||
throw "No Git repositories folder in your home directory or in the root folder yet"
|
throw "No Git repositories folder in your home directory or in the root folder yet"
|
||||||
}
|
}
|
||||||
$path += "/" + $folderName
|
$path += "/" + $folderName
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "The path to 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) { throw "The file path '$path' doesn't exist (yet)" }
|
||||||
|
|
||||||
$path = Resolve-Path "$path"
|
$path = Resolve-Path "$path"
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
Write-Host "📂$path · on branch: " -noNewline
|
Write-Host "📂$path entered, current branch is: " -noNewline
|
||||||
& git status --short --branch --show-stash
|
& git status --branch --short
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -97,4 +90,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
The *cd-repos.ps1* Script
|
The *cd-repos.ps1* Script
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the Git repositories folder.
|
This PowerShell script changes the working directory to the folder for Git repositories.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-repos.ps1
|
PS> ./cd-repos.ps1
|
||||||
📂C:\Repos
|
📂C:\Repos (has 33 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -34,14 +34,12 @@ Script Content
|
|||||||
```powershell
|
```powershell
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Sets the working directory to the Git repos folder
|
Sets the working dir to the repos folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script changes the working directory to the Git repositories folder.
|
This PowerShell script changes the working directory to the folder for Git repositories.
|
||||||
.PARAMETER subpath
|
|
||||||
Specifies an additional relative subpath (optional)
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-repos.ps1
|
PS> ./cd-repos.ps1
|
||||||
📂C:\Repos
|
📂C:\Repos (has 33 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -49,30 +47,23 @@ Script Content
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
|
if (Test-Path "~/Repos" -pathType container) { $path = "~/Repos"
|
||||||
$path = "~/Repos"
|
} elseif (Test-Path "~/repos" -pathType container) { $path = "~/repos"
|
||||||
} elseif (Test-Path "~/repos" -pathType Container) {
|
} elseif (Test-Path "~/Repositories" -pathType container) { $path = "~/Repositories"
|
||||||
$path = "~/repos"
|
} elseif (Test-Path "~/repositories" -pathType container) { $path = "~/repositories"
|
||||||
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
|
} elseif (Test-Path "/Repos" -pathType container) { $path = "/Repos"
|
||||||
$path = "~/Repositories"
|
} elseif (Test-Path "/repos" -pathType container) { $path = "/repos"
|
||||||
} elseif (Test-Path "~/repositories" -pathType Container) {
|
} elseif (Test-Path "/Repositories" -pathType container) { $path = "/Repositories"
|
||||||
$path = "~/repositories"
|
} elseif (Test-Path "/repositories" -pathType container) { $path = "/repositories"
|
||||||
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
|
} elseif (Test-Path "~/source/repos" -pathType container) { $path = "~/source/repos" # Visual Studio default
|
||||||
$path = "/Repos"
|
} elseif (Test-Path "D:/Repos" -pathType container) { $path = "D:/Repos" # second HDD
|
||||||
} elseif (Test-Path "/repos" -pathType Container) {
|
|
||||||
$path = "/repos"
|
|
||||||
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
|
|
||||||
$path = "/Repositories"
|
|
||||||
} elseif (Test-Path "/repositories" -pathType Container) {
|
|
||||||
$path = "/repositories"
|
|
||||||
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
|
|
||||||
$path = "~/source/repos"
|
|
||||||
} else {
|
} else {
|
||||||
throw "No Git repositories folder in your home directory or in the root folder yet"
|
throw "No folder found for Git repositories (in home or root directory) - Please create one."
|
||||||
}
|
}
|
||||||
$path = Resolve-Path $path
|
$path = Resolve-Path $path
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$subfolders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($subfolders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -80,4 +71,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-root
|
PS> ./cd-root
|
||||||
📂C:\
|
📂C:\ entered (has 0 files and 7 folders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
|
This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-root
|
PS> ./cd-root
|
||||||
📂C:\
|
📂C:\ entered (has 0 files and 7 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -49,12 +49,14 @@ Script Content
|
|||||||
try {
|
try {
|
||||||
if ($IsLinux) { $path = "/" } else { $path = "C:\" }
|
if ($IsLinux) { $path = "/" } else { $path = "C:\" }
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's screenshots folder.
|
This PowerShell script changes the working directory to the user's screenshots folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-screenshots
|
PS> ./cd-screenshots
|
||||||
📂C:\Users\Markus\Pictures\Screenshots
|
📂C:\Users\Markus\Pictures\Screenshots (has 7 files and 0 folders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -47,12 +47,14 @@ function GetScreenshotsFolder {
|
|||||||
try {
|
try {
|
||||||
$path = GetScreenshotsFolder
|
$path = GetScreenshotsFolder
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-scripts.ps1
|
PS> ./cd-scripts.ps1
|
||||||
📂C:\Repos\PowerShell\scripts
|
📂C:\Repos\PowerShell\scripts entered (has 645 scripts)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-scripts.ps1
|
PS> ./cd-scripts.ps1
|
||||||
📂C:\Repos\PowerShell\scripts
|
📂C:\Repos\PowerShell\scripts entered (has 645 scripts)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,14 +48,17 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = Resolve-Path "$PSScriptRoot"
|
$path = Resolve-Path "$PSScriptRoot"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "PowerShell scripts folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No PowerShell scripts folder at 📂$path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
"📂$path entered (has $($files.Count) scripts)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-ssh.ps1
|
PS> ./cd-ssh.ps1
|
||||||
📂C:\Users\Markus\.ssh
|
📂C:\Users\Markus\.ssh entered (has 4 files)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's secure shell (SSH) folder.
|
This PowerShell script changes the working directory to the user's secure shell (SSH) folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-ssh.ps1
|
PS> ./cd-ssh.ps1
|
||||||
📂C:\Users\Markus\.ssh
|
📂C:\Users\Markus\.ssh entered (has 4 files)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,10 +48,13 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = "~/.ssh"
|
$path = "~/.ssh"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Your secure shell (SSH) folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No secure shell (SSH) folder at $path"
|
||||||
|
}
|
||||||
$path = Resolve-Path "$path"
|
$path = Resolve-Path "$path"
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$Path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
"📂$path entered (has $($files.Count) files)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
@ -59,4 +62,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the temporary folder.
|
This PowerShell script changes the working directory to the temporary folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-temp
|
PS> ./cd-temp
|
||||||
📂C:\Users\Markus\AppData\Local\Temp
|
📂C:\Users\Markus\AppData\Local\Temp (has 2 files and 3 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -40,14 +40,18 @@ function GetTempDir {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = GetTempDir
|
$path = GetTempDir
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Temporary folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) { throw
|
||||||
|
"No temporary folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-templates
|
PS> ./cd-templates
|
||||||
📂/home/Markus/Templates
|
📂/home/Markus/Templates entered (has 3 files and 0 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the templates folder.
|
This PowerShell script changes the working directory to the templates folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-templates
|
PS> ./cd-templates
|
||||||
📂/home/Markus/Templates
|
📂/home/Markus/Templates entered (has 3 files and 0 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -52,14 +52,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('Templates')
|
$path = [Environment]::GetFolderPath('Templates')
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Templates folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No templates folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's trash folder.
|
This PowerShell script changes the working directory to the user's trash folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-trash
|
PS> ./cd-trash
|
||||||
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 entered (has 4 files and 0 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -43,14 +43,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Trash folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No trash folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -58,4 +58,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -58,4 +58,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -58,4 +58,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -58,4 +58,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-users
|
PS> ./cd-users
|
||||||
📂C:\Users
|
📂C:\Users entered (has 0 files and 4 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the users directory.
|
This PowerShell script changes the working directory to the users directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-users
|
PS> ./cd-users
|
||||||
📂C:\Users
|
📂C:\Users entered (has 0 files and 4 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,14 +48,18 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = Resolve-Path "~/.."
|
$path = Resolve-Path "~/.."
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Users directory at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No users directory at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-videos
|
PS> ./cd-videos
|
||||||
📂C:\Users\Markus\Videos
|
📂C:\Users\Markus\Videos entered (has 3 files and 0 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the user's videos folder.
|
This PowerShell script changes the working directory to the user's videos folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-videos
|
PS> ./cd-videos
|
||||||
📂C:\Users\Markus\Videos
|
📂C:\Users\Markus\Videos entered (has 3 files and 0 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -52,14 +52,18 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$path = [Environment]::GetFolderPath('MyVideos')
|
$path = [Environment]::GetFolderPath('MyVideos')
|
||||||
}
|
}
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Videos folder at 📂$path doesn't exist (yet)" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No videos folder at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -17,7 +17,7 @@ Example
|
|||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./cd-windows
|
PS> ./cd-windows
|
||||||
📂C:\Windows
|
📂C:\Windows entered (has 7 files and 42 subfolders)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Script Content
|
|||||||
This PowerShell script changes the working directory to the Windows directory.
|
This PowerShell script changes the working directory to the Windows directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-windows
|
PS> ./cd-windows
|
||||||
📂C:\Windows
|
📂C:\Windows entered (has 7 files and 42 subfolders)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -48,14 +48,18 @@ Script Content
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$path = Resolve-Path "$env:WINDIR"
|
$path = Resolve-Path "$env:WINDIR"
|
||||||
if (-not(Test-Path "$path" -pathType container)) { throw "Windows directory at 📂$path doesn't exist" }
|
if (-not(Test-Path "$path" -pathType container)) {
|
||||||
|
throw "No Windows directory at $path"
|
||||||
|
}
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
"📂$path"
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
|
$folders = Get-ChildItem $path -attributes Directory
|
||||||
|
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -69,7 +70,7 @@ try {
|
|||||||
|
|
||||||
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
||||||
& wget -O $Path "https://source.unsplash.com/3840x2160?$Category"
|
& wget -O $Path "https://source.unsplash.com/3840x2160?$Category"
|
||||||
if ($lastExitCode -ne "0") { throw "Download failed" }
|
if ($lastExitCode -ne 0) { throw "Download failed" }
|
||||||
|
|
||||||
& "$PSScriptRoot/set-wallpaper.ps1" -ImageFile "$Path"
|
& "$PSScriptRoot/set-wallpaper.ps1" -ImageFile "$Path"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
@ -79,4 +80,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -67,6 +67,8 @@ Operators
|
|||||||
$a = 2 # Basic variable assignment operator
|
$a = 2 # Basic variable assignment operator
|
||||||
$a += 1 # Incremental assignment operator
|
$a += 1 # Incremental assignment operator
|
||||||
$a -= 1 # Decrement assignment operator
|
$a -= 1 # Decrement assignment operator
|
||||||
|
$a++ # Incremental assignment operator
|
||||||
|
$a-- # Decrement assignment operator
|
||||||
|
|
||||||
$a -eq 0 # Equality comparison operator
|
$a -eq 0 # Equality comparison operator
|
||||||
$a -ne 5 # Not-equal comparison operator
|
$a -ne 5 # Not-equal comparison operator
|
||||||
@ -326,3 +328,12 @@ $Params = @{
|
|||||||
}
|
}
|
||||||
Invoke-RestMethod @Params # Call a REST API, using the HTTP GET method
|
Invoke-RestMethod @Params # Call a REST API, using the HTTP GET method
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Useful Links
|
||||||
|
------------
|
||||||
|
* PowerShell documentation: https://docs.microsoft.com/en-us/powershell
|
||||||
|
* Tutorial: https://www.guru99.com/powershell-tutorial.html
|
||||||
|
* Video tutorials: https://www.youtube.com/results?search_query=PowerShell
|
||||||
|
* FAQ's: https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md
|
||||||
|
* 500+ sample scripts: https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
|
@ -67,4 +67,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -72,4 +72,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -75,4 +75,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -104,4 +104,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value "$HOME\my.credentials"
|
Default value "$HOME\my.credentials"
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -82,4 +83,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -57,4 +57,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -72,4 +72,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
-minLevel <Int64>
|
-minLevel <Int64>
|
||||||
@ -24,6 +25,7 @@ Parameters
|
|||||||
Position? 2
|
Position? 2
|
||||||
Default value 10000000
|
Default value 10000000
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -110,4 +112,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value 5368709120
|
Default value 5368709120
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -102,4 +103,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -63,4 +63,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -61,4 +61,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -75,4 +76,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -170,4 +171,4 @@ function Check-Header { param( $path )
|
|||||||
Check-Header $Path
|
Check-Header $Path
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -65,4 +65,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -28,7 +28,7 @@ Script Content
|
|||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz | License: CC0
|
Author: Markus Fleschutz, Tyler MacInnis | License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function Bytes2String { param([int64]$Bytes)
|
function Bytes2String { param([int64]$Bytes)
|
||||||
@ -48,15 +48,17 @@ try {
|
|||||||
# TODO
|
# TODO
|
||||||
} else {
|
} else {
|
||||||
$Details = Get-WmiObject Win32_VideoController
|
$Details = Get-WmiObject Win32_VideoController
|
||||||
$Model = $Details.Caption
|
foreach ($GPU in $Details) {
|
||||||
$RAMSize = $Details.AdapterRAM
|
$Model = $GPU.Caption
|
||||||
$ResWidth = $Details.CurrentHorizontalResolution
|
$RAMSize = $GPU.AdapterRAM
|
||||||
$ResHeight = $Details.CurrentVerticalResolution
|
$ResWidth = $GPU.CurrentHorizontalResolution
|
||||||
$BitsPerPixel = $Details.CurrentBitsPerPixel
|
$ResHeight = $GPU.CurrentVerticalResolution
|
||||||
$RefreshRate = $Details.CurrentRefreshRate
|
$BitsPerPixel = $GPU.CurrentBitsPerPixel
|
||||||
$DriverVersion = $Details.DriverVersion
|
$RefreshRate = $GPU.CurrentRefreshRate
|
||||||
$Status = $Details.Status
|
$DriverVersion = $GPU.DriverVersion
|
||||||
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion) - status $Status"
|
$Status = $GPU.Status
|
||||||
|
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion) - status $Status"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
@ -65,4 +67,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -64,4 +64,4 @@ Write-Host "`n === H A R D W A R E ===" -foregroundColor green
|
|||||||
exit 0 # success
|
exit 0 # success
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -58,4 +58,4 @@ Script Content
|
|||||||
exit 0 # success
|
exit 0 # success
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -61,4 +61,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -84,4 +85,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -98,4 +99,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -55,4 +55,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -16,6 +16,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -87,4 +88,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -60,4 +60,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -57,4 +57,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -76,4 +76,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -59,4 +59,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -67,4 +67,4 @@ Write-Host "`n === N E T W O R K ===" -foregroundColor green
|
|||||||
exit 0 # success
|
exit 0 # success
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -59,4 +59,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -73,4 +73,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -65,4 +65,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -14,6 +14,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -94,4 +95,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -24,7 +24,7 @@ Script Content
|
|||||||
This PowerShell script queries pending operating system reboots and prints it.
|
This PowerShell script queries pending operating system reboots and prints it.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
./check-pending-reboot.ps1
|
./check-pending-reboot.ps1
|
||||||
✅ No pending reboot
|
✅ No pending reboot.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -41,7 +41,7 @@ function Test-RegistryValue { param([parameter(Mandatory=$true)][ValidateNotNull
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$reply = "✅ No pending reboot"
|
[string]$reply = "✅ No pending reboot."
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
if (Test-Path "/var/run/reboot-required") {
|
if (Test-Path "/var/run/reboot-required") {
|
||||||
$reply = "⚠️ Pending reboot (found: /var/run/reboot-required)"
|
$reply = "⚠️ Pending reboot (found: /var/run/reboot-required)"
|
||||||
@ -79,7 +79,7 @@ try {
|
|||||||
$reason += ", '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'"
|
$reason += ", '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'"
|
||||||
}
|
}
|
||||||
if ($reason -ne "") {
|
if ($reason -ne "") {
|
||||||
$reply = "⚠️ Pending reboot (registry got $($reason.substring(2)))"
|
$reply = "⚠️ Pending reboot (found: $($reason.substring(2)) in registry)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-Host $reply
|
Write-Host $reply
|
||||||
@ -90,4 +90,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -65,4 +65,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -60,10 +60,10 @@ try {
|
|||||||
if ($details.PowerLineStatus -eq "Online") {
|
if ($details.PowerLineStatus -eq "Online") {
|
||||||
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
|
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
|
||||||
$reply = "✅ AC powered"
|
$reply = "✅ AC powered"
|
||||||
} elseif ($percent -ge 95) {
|
} elseif ($percent -ge 90) {
|
||||||
$reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
|
$reply = "✅ Battery $percent% full (power scheme is '$powerScheme')"
|
||||||
} else {
|
} else {
|
||||||
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
|
$reply = "✅ Battery $percent% and charging (power scheme is '$powerScheme')"
|
||||||
}
|
}
|
||||||
} else { # must be offline
|
} else { # must be offline
|
||||||
if (($remaining -eq 0) -and ($percent -ge 60)) {
|
if (($remaining -eq 0) -and ($percent -ge 60)) {
|
||||||
@ -77,7 +77,7 @@ try {
|
|||||||
} elseif ($percent -lt 10) {
|
} elseif ($percent -lt 10) {
|
||||||
$reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
|
$reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
|
||||||
} elseif ($percent -ge 90) {
|
} elseif ($percent -ge 90) {
|
||||||
$reply = "✅ Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
|
$reply = "✅ Battery $percent% full ($($remaining)min remaining, power scheme is '$powerScheme')"
|
||||||
} else {
|
} else {
|
||||||
$reply = "✅ Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') "
|
$reply = "✅ Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') "
|
||||||
}
|
}
|
||||||
@ -91,4 +91,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -59,4 +59,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -76,4 +77,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -98,4 +98,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value "$PWD"
|
Default value "$PWD"
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -78,7 +79,7 @@ try {
|
|||||||
|
|
||||||
Write-Host "⏳ (1/10) Searching for Git executable... " -noNewline
|
Write-Host "⏳ (1/10) Searching for Git executable... " -noNewline
|
||||||
& git --version
|
& git --version
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne 0) { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
|
|
||||||
Write-Host "⏳ (2/10) Checking local repository... " -noNewline
|
Write-Host "⏳ (2/10) Checking local repository... " -noNewline
|
||||||
$FullPath = Resolve-Path "$pathToRepo"
|
$FullPath = Resolve-Path "$pathToRepo"
|
||||||
@ -87,15 +88,15 @@ try {
|
|||||||
|
|
||||||
Write-Host "⏳ (3/10) Querying remote URL... " -noNewline
|
Write-Host "⏳ (3/10) Querying remote URL... " -noNewline
|
||||||
& git -C "$FullPath" remote get-url origin
|
& git -C "$FullPath" remote get-url origin
|
||||||
if ($lastExitCode -ne "0") { throw "'git remote get-url origin' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git remote get-url origin' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
Write-Host "⏳ (4/10) Querying current branch... " -noNewline
|
Write-Host "⏳ (4/10) Querying current branch... " -noNewline
|
||||||
& git -C "$FullPath" branch --show-current
|
& git -C "$FullPath" branch --show-current
|
||||||
if ($lastExitCode -ne "0") { throw "'git branch --show-current' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git branch --show-current' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
Write-Host "⏳ (5/10) Fetching remote updates... " -noNewline
|
Write-Host "⏳ (5/10) Fetching remote updates... " -noNewline
|
||||||
& git -C "$FullPath" fetch --all --recurse-submodules --tags --force --quiet
|
& git -C "$FullPath" fetch --all --recurse-submodules --tags --force --quiet
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git fetch' failed with exit code $lastExitCode" }
|
||||||
Write-Host "OK"
|
Write-Host "OK"
|
||||||
|
|
||||||
Write-Host "⏳ (6/10) Querying latest tag... " -noNewline
|
Write-Host "⏳ (6/10) Querying latest tag... " -noNewline
|
||||||
@ -105,19 +106,19 @@ try {
|
|||||||
|
|
||||||
Write-Host "⏳ (7/10) Verifying data integrity..."
|
Write-Host "⏳ (7/10) Verifying data integrity..."
|
||||||
& git -C "$FullPath" fsck
|
& git -C "$FullPath" fsck
|
||||||
if ($lastExitCode -ne "0") { throw "'git fsck' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git fsck' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
Write-Host "⏳ (8/10) Running maintenance tasks..."
|
Write-Host "⏳ (8/10) Running maintenance tasks..."
|
||||||
& git -C "$FullPath" maintenance run
|
& git -C "$FullPath" maintenance run
|
||||||
if ($lastExitCode -ne "0") { throw "'git maintenance run' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git maintenance run' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
Write-Host "⏳ (9/10) Checking submodule status..."
|
Write-Host "⏳ (9/10) Checking submodule status..."
|
||||||
& git -C "$FullPath" submodule status
|
& git -C "$FullPath" submodule status
|
||||||
if ($lastExitCode -ne "0") { throw "'git submodule status' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git submodule status' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
Write-Host "⏳ (10/10) Checking repo status... " -noNewline
|
Write-Host "⏳ (10/10) Checking repo status... " -noNewline
|
||||||
& git -C "$FullPath" status
|
& git -C "$FullPath" status
|
||||||
if ($lastExitCode -ne "0") { throw "'git status --short' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'git status --short' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
$repoDirName = (Get-Item "$FullPath").Name
|
$repoDirName = (Get-Item "$FullPath").Name
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
@ -129,4 +130,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value "$PWD"
|
Default value "$PWD"
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -91,4 +92,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -56,4 +56,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -49,7 +49,7 @@ function Bytes2String([int64]$bytes) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$result = (smartctl --version)
|
$result = (smartctl --version)
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'smartctl' - make sure smartmontools are installed" }
|
if ($lastExitCode -ne 0) { throw "Can't execute 'smartctl' - make sure smartmontools are installed" }
|
||||||
|
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
$devices = $(sudo smartctl --scan-open)
|
$devices = $(sudo smartctl --scan-open)
|
||||||
@ -120,4 +120,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -64,4 +64,4 @@ Write-Host "`n === S O F T W A R E ===" -foregroundColor green
|
|||||||
exit 0 # success
|
exit 0 # success
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -84,4 +85,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -15,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value 10
|
Default value 10
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -89,16 +90,16 @@ try {
|
|||||||
[int64]$free = ($total - $used)
|
[int64]$free = ($total - $used)
|
||||||
}
|
}
|
||||||
if ($total -eq 0) {
|
if ($total -eq 0) {
|
||||||
Write-Output "⚠️ No swap space configured"
|
Write-Output "⚠️ No swap space configured."
|
||||||
} elseif ($free -eq 0) {
|
} elseif ($free -eq 0) {
|
||||||
Write-Output "⚠️ Swap space with $(MB2String $total) is FULL !!!"
|
Write-Output "⚠️ Swap space of $(MB2String $total) is FULL!"
|
||||||
} elseif ($free -lt $minLevel) {
|
} elseif ($free -lt $minLevel) {
|
||||||
Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) left!"
|
Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) left!"
|
||||||
} elseif ($used -lt 3) {
|
} elseif ($used -lt 3) {
|
||||||
Write-Output "✅ Swap space has $(MB2String $total) reserved"
|
Write-Output "✅ Swap space has $(MB2String $total) reserved."
|
||||||
} else {
|
} else {
|
||||||
[int64]$percent = ($used * 100) / $total
|
[int64]$percent = ($used * 100) / $total
|
||||||
Write-Output "✅ Swap space uses $(MB2String $used) ($percent%) of $(MB2String $total)"
|
Write-Output "✅ Swap space at $(MB2String $used) ($percent%) of $(MB2String $total)."
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
@ -107,4 +108,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
The *check-symlinks.ps1* Script
|
The *check-symlinks.ps1* Script
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
This PowerShell script checks every symbolic link in a folder (including subfolders).
|
This PowerShell script checks all symbolic links in a directory tree. It returns the number of broken symlinks as exit value.
|
||||||
It returns the number of broken symlinks as exit value.
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
@ -16,6 +15,7 @@ Parameters
|
|||||||
Position? 1
|
Position? 1
|
||||||
Default value
|
Default value
|
||||||
Accept pipeline input? false
|
Accept pipeline input? false
|
||||||
|
Aliases
|
||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
@ -26,9 +26,9 @@ Parameters
|
|||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./check-symlinks C:\Users
|
PS> ./check-symlinks D:\
|
||||||
⏳ Checking symlinks at 📂C:\Users including subfolders...
|
⏳ Please wait while checking symlinks at: 📂D:\ ...
|
||||||
✅ Found 0 broken symlinks at 📂C:\Users in 60 sec
|
✅ Found 0 broken symlinks at 📂D:\ in 60s.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -45,16 +45,15 @@ Script Content
|
|||||||
```powershell
|
```powershell
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Checks symlinks in a folder
|
Checks all symlinks in a folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script checks every symbolic link in a folder (including subfolders).
|
This PowerShell script checks all symbolic links in a directory tree. It returns the number of broken symlinks as exit value.
|
||||||
It returns the number of broken symlinks as exit value.
|
|
||||||
.PARAMETER folder
|
.PARAMETER folder
|
||||||
Specifies the path to the folder
|
Specifies the path to the folder
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-symlinks C:\Users
|
PS> ./check-symlinks D:\
|
||||||
⏳ Checking symlinks at 📂C:\Users including subfolders...
|
⏳ Please wait while checking symlinks at: 📂D:\ ...
|
||||||
✅ Found 0 broken symlinks at 📂C:\Users in 60 sec
|
✅ Found 0 broken symlinks at 📂D:\ in 60s.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -64,40 +63,40 @@ Script Content
|
|||||||
param([string]$Folder = "")
|
param([string]$Folder = "")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($Folder -eq "" ) { $Folder = read-host "Enter the path to the folder" }
|
if ($Folder -eq "" ) { $Folder = Read-Host "Enter the path to the folder" }
|
||||||
|
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
$FullPath = Resolve-Path "$Folder"
|
$fullPath = Resolve-Path "$Folder"
|
||||||
"⏳ Checking symlinks at 📂$FullPath including subfolders..."
|
"⏳ Please wait while checking symlinks at 📂$fullPath ..."
|
||||||
|
|
||||||
[int]$NumTotal = [int]$NumBroken = 0
|
[int]$numTotal = [int]$numBroken = 0
|
||||||
Get-ChildItem $FullPath -recurse | Where { $_.Attributes -match "ReparsePoint" } | ForEach-Object {
|
Get-ChildItem $fullPath -recurse | Where { $_.Attributes -match "ReparsePoint" } | ForEach-Object {
|
||||||
$Symlink = $_.FullName
|
$Symlink = $_.FullName
|
||||||
$Target = ($_ | Select-Object -ExpandProperty Target -ErrorAction Ignore)
|
$Target = ($_ | Select-Object -ExpandProperty Target -ErrorAction Ignore)
|
||||||
if ($Target) {
|
if ($Target) {
|
||||||
$path = $_.FullName + "\..\" + ($_ | Select-Object -ExpandProperty Target)
|
$path = $_.FullName + "\..\" + ($_ | Select-Object -ExpandProperty Target)
|
||||||
$item = Get-Item $path -ErrorAction Ignore
|
$item = Get-Item $path -ErrorAction Ignore
|
||||||
if (!$item) {
|
if (!$item) {
|
||||||
$NumBroken++
|
$numBroken++
|
||||||
"Symlink $Symlink to: $Target seems broken (#$NumBroken)"
|
"Broken symlink #$($numBroken) at $Symlink linking to: $Target"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$NumTotal++
|
$numTotal++
|
||||||
}
|
}
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
if ($NumTotal -eq 0) {
|
if ($numTotal -eq 0) {
|
||||||
"✅ No symlink found at 📂$FullPath in $Elapsed sec"
|
"✅ No symlink found at 📂$fullPath in $($elapsed)s."
|
||||||
} elseif ($NumBroken -eq 1) {
|
} elseif ($numBroken -eq 1) {
|
||||||
"✅ Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec"
|
"✅ Found $numBroken broken symlink at 📂$fullPath in $($elapsed)s ($numTotal symlinks in total)."
|
||||||
} else {
|
} else {
|
||||||
"✅ Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec"
|
"✅ Found $numBroken broken symlinks at 📂$fullPath in $($elapsed)s ($numTotal symlinks in total)."
|
||||||
}
|
}
|
||||||
exit $NumBroken
|
exit $numBroken
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
@ -66,4 +66,4 @@ try {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user