Skip to content

Commit

Permalink
Update tldr
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored and github-actions[bot] committed Apr 28, 2024
1 parent fda613a commit 5d369a0
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pages/common/git-bug.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ git bug user create
# Create a new bug
git bug add

# You can push your new entry to a remote
# Push a new bug entry to a remote
git bug push

# You can pull for updates
# Pull for updates
git bug pull

# List existing bugs
Expand Down
6 changes: 3 additions & 3 deletions pages/common/git-bulk.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ git bulk --addcurrent <workspace_name>
# Register a workspace for bulk operations
git bulk --addworkspace <workspace_name> <absolute_path_to_repository>

# Clone a repository inside a specific directory then register the repository as a workspace
# Clone a repository inside a specific directory, then register the repository as a workspace
git bulk --addworkspace <workspace_name> <absolute_path_to_parent_directory> --from <remote_repository_location>

# Clone repositories from a newline-separated list of remote locations then register them as workspaces
git bulk --addworkspace <workspace-name> <path_to_root_directory> --from <path_to_file>
# Clone repositories from a newline-separated list of remote locations, then register them as workspaces
git bulk --addworkspace <workspace_name> <path_to_root_directory> --from <path_to_file>

# List all registered workspaces
git bulk --listall
Expand Down
25 changes: 25 additions & 0 deletions pages/common/gitleaks.cheat
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
4 changes: 2 additions & 2 deletions pages/linux/medusa.cheat → pages/common/medusa.cheat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; This has been extracted from
; https://github.com/tldr-pages/tldr/blob/master/pages/linux/medusa.md
; https://github.com/tldr-pages/tldr/blob/master/pages/common/medusa.md

% medusa, linux
% medusa, common

# Execute brute force against an FTP server using a file containing usernames and a file containing passwords
medusa -M ftp -h host -U <path_to_username_file> -P <path_to_password_file>
Expand Down
4 changes: 2 additions & 2 deletions pages/common/ps.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ ps aux
# List all running processes including the full command string
ps auxww

# Search for a process that matches a string
ps aux | grep <string>
# Search for a process that matches a string (the brackets will prevent `grep` from matching itself)
ps aux | grep <[s]tring>

# List all processes of the current user in extra full format
ps --user $(id -u) -F
Expand Down
28 changes: 28 additions & 0 deletions pages/common/quarkus.cheat
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
16 changes: 16 additions & 0 deletions pages/linux/evtest.cheat
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>
2 changes: 1 addition & 1 deletion pages/linux/id3v2.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
id3v2 --list-genres

# List all tags of specific files
id3v2 --list-tags <path_to_file1 path_to_file2 ...>
id3v2 --list <path_to_file1 path_to_file2 ...>

# Delete all `id3v2` or `id3v1` tags of specific files
id3v2 <--delete-v2|--delete-v1> <path_to_file1 path_to_file2 ...>
Expand Down
5 changes: 4 additions & 1 deletion pages/linux/readelf.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ readelf --headers <path_to_binary>
# Display the entries in symbol table section of the ELF file, if it has one
readelf --symbols <path_to_binary>

# Display the information contained in the ELF header at the start of the file
# Display ELF header information
readelf --file-header <path_to_binary>

# Display ELF section header information
readelf --section-headers <path_to_binary>
22 changes: 22 additions & 0 deletions pages/windows/ospp.vbs.cheat
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
10 changes: 10 additions & 0 deletions pages/windows/test-netconnection.cheat
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>

0 comments on commit 5d369a0

Please sign in to comment.