-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda613a
commit 5d369a0
Showing
11 changed files
with
115 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/common/gitleaks.md | ||
|
||
% gitleaks, common | ||
|
||
# Scan a remote repository | ||
gitleaks detect --repo-url <https:__github.com_username_repository.git> | ||
|
||
# Scan a local directory | ||
gitleaks detect --source <path_to_repository> | ||
|
||
# Output scan results to a JSON file | ||
gitleaks detect --source <path_to_repository> --report <path_to_report.json> | ||
|
||
# Use a custom rules file | ||
gitleaks detect --source <path_to_repository> --config-path <path_to_config.toml> | ||
|
||
# Start scanning from a specific commit | ||
gitleaks detect --source <path_to_repository> --log-opts <--since=commit_id> | ||
|
||
# Scan uncommitted changes before a commit | ||
gitleaks protect --staged | ||
|
||
# Display verbose output indicating which parts were identified as leaks during the scan | ||
gitleaks protect --staged --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/common/quarkus.md | ||
|
||
% quarkus, common | ||
|
||
# Create a new application project in a new directory | ||
quarkus create app <project_name> | ||
|
||
# Run the current project in live coding mode | ||
quarkus dev | ||
|
||
# Run the application | ||
quarkus run | ||
|
||
# Run the current project in continuous testing mode | ||
quarkus test | ||
|
||
# Add one or more extensions to the current project | ||
quarkus extension add <extension_name_1 extension_name_2 ...> | ||
|
||
# Build a container image using Docker | ||
quarkus image build docker | ||
|
||
# Deploy the application to Kubernetes | ||
quarkus deploy kubernetes | ||
|
||
# Update project | ||
quarkus update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/linux/evtest.md | ||
|
||
% evtest, linux | ||
|
||
# List all detected input devices | ||
sudo evtest | ||
|
||
# Display events from a specific input device | ||
sudo evtest /dev/input/event<number> | ||
|
||
# Grab the device exclusively, preventing other clients from receiving events | ||
sudo evtest --grab /dev/input/event<number> | ||
|
||
# Query the state of a specific key or button on an input device | ||
sudo evtest --query /dev/input/event<number> <event_type> <event_code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/windows/ospp.vbs.md | ||
|
||
% ospp.vbs, windows | ||
|
||
# Install a product key (Note: it replaces the existing key) | ||
cscript ospp.vbs /inpkey:<product_key> | ||
|
||
# Uninstall an installed product key with the last five digits of the product key | ||
cscript ospp.vbs /unpkey:<product_key_digits> | ||
|
||
# Set a KMS host name | ||
cscript ospp.vbs /sethst:<ip|hostname> | ||
|
||
# Set a KMS port | ||
cscript ospp.vbs /setprt:<port> | ||
|
||
# Activate installed Office product keys | ||
cscript ospp.vbs /act | ||
|
||
# Display license information for installed product keys | ||
cscript ospp.vbs /dstatus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/windows/test-netconnection.md | ||
|
||
% test-netconnection, windows | ||
|
||
# Test a connection and display detailed results | ||
Test-NetConnection -InformationLevel Detailed | ||
|
||
# Test a connection to a remote host using the specified port number | ||
Test-NetConnection -ComputerName <ip_or_hostname> -Port <port_number> |