-
Notifications
You must be signed in to change notification settings - Fork 3
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
d5743a0
commit 2999197
Showing
224 changed files
with
3,828 additions
and
287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# cppclean | ||
|
||
> Find unused code in C++ projects. | ||
|
||
- Run in a project's folder: | ||
|
||
`cppclean {{path/to/project}}` | ||
|
||
- Run on a project where the headers are in the "inc1/" and "inc2/" folders: | ||
|
||
`cppclean {{path/to/project}} --include-path={{inc1}} --include-path={{inc2}}` | ||
|
||
- Run on a specific file "main.cpp": | ||
|
||
`cppclean {{main.cpp}}` | ||
|
||
- Run on the current directory, excluding the "build" directory: | ||
|
||
`cppclean {{.}} --exclude={{build}}` |
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,23 @@ | ||
# dc | ||
|
||
> An arbitrary precision calculator. Uses reverse polish notation (RPN). | ||
|
||
- Run calculator in interactive mode: | ||
|
||
`dc` | ||
|
||
- Execute dc script in file: | ||
|
||
`dc -f {{file}}` | ||
|
||
- Calculate 4 times 5 [4 5 *], subtract 17 [17 -], and [p]rint the output (using echo): | ||
|
||
`echo "4 5 * 17 - p"| dc` | ||
|
||
- Set number of decimal places to 7 [7 k], calculate 5 divided by -3 [5 _3 /] and [p]rint (using dc -e): | ||
|
||
`dc -e "7 k 5 _3 / p"` | ||
|
||
- Calculate the golden ratio, phi: Set number of decimal places to 100 [100 k], square root of 5 [5 v] plus 1 [1 +], divided by 2 [2 /], and [p]rint result: | ||
|
||
`dc -e "100 k 5 v 1 + 2 / p"` |
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,23 @@ | ||
# dep | ||
|
||
> Tool for dependency management in Go projects. | ||
|
||
- Initialize the current directory as the root of a Go project: | ||
|
||
`dep init` | ||
|
||
- Install any missing dependencies (Scans Gopkg.toml and your .go files): | ||
|
||
`dep ensure` | ||
|
||
- Report the status of the project's dependencies: | ||
|
||
`dep status` | ||
|
||
- Add a dependency to the project: | ||
|
||
`dep ensure -add {{package_url}}` | ||
|
||
- Update the locked versions of all dependencies: | ||
|
||
`dep ensure -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,15 @@ | ||
# doxygen | ||
|
||
> A documentation system for various programming languages. | ||
|
||
- Generate a default template configuration file "Doxyfile": | ||
|
||
`doxygen -g` | ||
|
||
- Generate a template configuration file: | ||
|
||
`doxygen -g {{path/to/config_file}}` | ||
|
||
- Generate documentation using an existing configuration file: | ||
|
||
`doxygen {{path/to/config_file}}` |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# gatsby | ||
|
||
> Static site generator for React. | ||
|
||
- Create a new site: | ||
|
||
`gatsby new {{site_name}}` | ||
|
||
- Create a new site with a Gatsby 'starter': | ||
|
||
`gatsby new {{site_name}} {{url_of_starter_github_repo}}` | ||
|
||
- Start a live-reloading local development server: | ||
|
||
`gatsby develop` | ||
|
||
- Perform a production build and generate static HTML: | ||
|
||
`gatsby build` | ||
|
||
- Start a local server which serves the production build: | ||
|
||
`gatsby serve` |
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# git commit | ||
|
||
> Commit staged files to the repository. | ||
> Commit files to the repository. | ||
|
||
- Commit staged files to the repository with comment: | ||
- Commit staged files to the repository with a message: | ||
|
||
`git commit -m {{message}}` | ||
|
||
- Replace the last commit with currently staged changes: | ||
|
||
`git commit --amend` | ||
|
||
- Auto stage all modified files and commit with a message: | ||
|
||
`git commit -a -m {{message}}` |
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,23 @@ | ||
# git gc | ||
|
||
> Optimise the local repository by cleaning unnecessary files. | ||
|
||
- Optimise the repository: | ||
|
||
`git gc` | ||
|
||
- Aggressively optimise, takes more time: | ||
|
||
`git gc --aggressive` | ||
|
||
- Do not prune loose objects (prunes by default): | ||
|
||
`git gc --no-prune` | ||
|
||
- Suppress all output: | ||
|
||
`git gc --quiet` | ||
|
||
- View full usage: | ||
|
||
`git gc --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# gofmt | ||
|
||
> Tool for formatting Go source code. | ||
|
||
- Format a file and display the result to the console: | ||
|
||
`gofmt {{source.go}}` | ||
|
||
- Format a file, overwriting the original file in-place: | ||
|
||
`gofmt -w {{source.go}}` | ||
|
||
- Format a file, and then simplify the code, overwriting the original file: | ||
|
||
`gofmt -s -w {{source.go}}` | ||
|
||
- Print all (including spurious) errors: | ||
|
||
`gofmt -e {{source.go}}` |
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,20 @@ | ||
# hg | ||
|
||
> A command line interface for Mercurial, a distributed source control management system. | ||
> See the `hg-add` and `hg-commit` pages for additional information. | ||
|
||
- Execute Mercurial command: | ||
|
||
`hg {{command}}` | ||
|
||
- Call general help: | ||
|
||
`hg help` | ||
|
||
- Call help on a command: | ||
|
||
`hg help {{command}}` | ||
|
||
- Check the Mercurial version: | ||
|
||
`hg --version` |
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,23 @@ | ||
# hg add | ||
|
||
> Adds specified files to the staging area for the next commit in Mercurial. | ||
|
||
- Add files or directories to the staging area: | ||
|
||
`hg add {{path/to/file}}` | ||
|
||
- Add all unstaged files matching a specified pattern: | ||
|
||
`hg add --include {{pattern}}` | ||
|
||
- Add all unstaged files, excluding those that match a specified pattern: | ||
|
||
`hg add --exclude {{pattern}}` | ||
|
||
- Recursively add sub-repositories: | ||
|
||
`hg add --subrepos` | ||
|
||
- Perform a test-run without performing any actions: | ||
|
||
`hg add --dry-run` |
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,27 @@ | ||
# hg commit | ||
|
||
> Commit all staged or specified files to the repository. | ||
|
||
- Commit staged files to the repository: | ||
|
||
`hg commit` | ||
|
||
- Commit a specific file or directory: | ||
|
||
`hg commit {{path/to/file}}` | ||
|
||
- Commit with a specific message: | ||
|
||
`hg commit --message {{message}}` | ||
|
||
- Commit all files matching a specified pattern: | ||
|
||
`hg commit --include {{pattern}}` | ||
|
||
- Commit all files, excluding those that match a specified pattern: | ||
|
||
`hg commit --exclude {{pattern}}` | ||
|
||
- Commit using the interactive mode: | ||
|
||
`hg commit --interactive` |
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,19 @@ | ||
# ignite | ||
|
||
> A CLI for React Native boilerplates, plugins, generators, and more. | ||
|
||
- Create a new React Native project: | ||
|
||
`ignite new {{project_name}}` | ||
|
||
- Generate file from a plugin: | ||
|
||
`ignite generate {{plugin_name}} {{file_name}}` | ||
|
||
- Add an Ignite plugin to the project: | ||
|
||
`ignite add {{plugin_name}}` | ||
|
||
- Remove an Ignite plugin from the project: | ||
|
||
`ignite remove {{plugin_name}}` |
Oops, something went wrong.