-
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
5d369a0
commit b4089fd
Showing
12 changed files
with
114 additions
and
7 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
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/common/archwiki-rs.md | ||
|
||
% archwiki-rs, common | ||
|
||
# Read a page from the ArchWiki | ||
archwiki-rs read-page <page_title> | ||
|
||
# Read a page from the ArchWiki in the specified format | ||
archwiki-rs read-page <page_title> --format <plain-text|markdown|html> | ||
|
||
# Search the ArchWiki for pages containing the provided text | ||
archwiki-rs search "<search_text>" --text-search | ||
|
||
# Download a local copy of all ArchWiki pages into a specific directory | ||
archwiki-rs local-wiki <path_to_local_wiki> --format <plain-text|markdown|html> |
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/common/d2.md | ||
|
||
% d2, common | ||
|
||
# Compile and render a D2 source file into an SVG or PNG file | ||
d2 <path_to_input_file.d2> <path_to_output_file.svg|path_to_output_file.png> | ||
|
||
# [w]atch live changes made to a D2 source file in the default web browser | ||
d2 --watch <path_to_input_file.d2> <path_to_output_file.svg|path_to_output_file.png> | ||
|
||
# Format a D2 source file | ||
d2 fmt <path_to_input_file.d2> | ||
|
||
# List available themes | ||
d2 themes | ||
|
||
# Use a different [t]heme for the output file (list available themes first to get the desired `theme_id`) | ||
d2 --theme <theme_id> <path_to_input_file.d2> <path_to_output_file.svg|path_to_output_file.png> | ||
|
||
# Make rendered diagrams look like hand [s]ketches | ||
d2 --sketch true <path_to_input_file.d2> <path_to_output_file.svg|path_to_output_file.png> |
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/pants.md | ||
|
||
% pants, common | ||
|
||
# List all targets | ||
pants list :: | ||
|
||
# Run all tests | ||
pants test :: | ||
|
||
# Fix, format, and lint only uncommitted files | ||
pants --changed-since=HEAD fix fmt lint | ||
|
||
# Typecheck only uncommitted files and their dependents | ||
pants --changed-since=HEAD --changed-dependents=transitive check | ||
|
||
# Create a distributable package for the specified target | ||
pants package <path_to_directory:target-name> | ||
|
||
# Auto-generate BUILD file targets for new source files | ||
pants tailor :: | ||
|
||
# Display help | ||
pants help |
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
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,13 @@ | ||
; This has been extracted from | ||
; https://github.com/tldr-pages/tldr/blob/master/pages/linux/ntpd.md | ||
|
||
% ntpd, linux | ||
|
||
# Start the daemon | ||
sudo ntpd | ||
|
||
# Synchronize system time with remote servers a single time (quit after synchronizing) | ||
sudo ntpd --quit | ||
|
||
# Synchronize a single time allowing "Big" adjustments | ||
sudo ntpd --panicgate --quit |
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/linux/sslstrip.md | ||
|
||
% sslstrip, linux | ||
|
||
# Log only HTTPS POST traffic on port 10000 by default | ||
sslstrip | ||
|
||
# Log only HTTPS POST traffic on port 8080 | ||
sslstrip --listen=<8080> | ||
|
||
# Log all SSL traffic to and from the server on port 8080 | ||
sslstrip --ssl --listen=<8080> | ||
|
||
# Log all SSL and HTTP traffic to and from the server on port 8080 | ||
sslstrip --listen=<8080> --all | ||
|
||
# Specify the file path to store the logs | ||
sslstrip --listen=<8080> --write=<path_to_file> | ||
|
||
# Display help | ||
sslstrip --help |