forked from rstacruz/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
293 additions
and
13 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,42 @@ | ||
title: Bundler | ||
---- | ||
|
||
### Gems | ||
|
||
gem 'hello' | ||
gem 'hello', group: 'development' | ||
|
||
### Github support | ||
|
||
gem 'hello', github: 'rstacruz/hello' | ||
gem 'hello', github: 'rstacruz/hello', 'branch: master' | ||
|
||
### Grouping | ||
|
||
group :development do | ||
gem 'hello' | ||
end | ||
|
||
### Deployment | ||
|
||
$ bundle install --without=test,development --deployment | ||
|
||
### Local gem development | ||
|
||
In your Gemfile, define a Git source and a branch: | ||
|
||
gem 'hello', github: 'rstacruz/hello', branch: 'master' | ||
|
||
And then: | ||
|
||
$ bundle config --global local.xxx ~/projects/xxx | ||
|
||
### Rake Gem tasks | ||
|
||
# Rakefile | ||
require 'bundler/gem_tasks' | ||
|
||
Terminal: | ||
|
||
$ rake release | ||
$ rake 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
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,84 @@ | ||
title: Command line stuff | ||
--- | ||
|
||
### List (ls) | ||
|
||
Usage: | ||
|
||
ls [options] [paths] | ||
|
||
Format: | ||
|
||
-1 One entry per line | ||
-l Long view | ||
-o Long view (without groups) | ||
-C Multicolumn (sorted horizontally) | ||
-x Multicolumn (sorted vertically) | ||
|
||
-F Add / after directories | ||
-G Color | ||
|
||
Options: | ||
|
||
-R Recurse | ||
-a Include hidden (dotfiles) | ||
-A Include hidden (but not . and ..) | ||
|
||
Sorting: | ||
|
||
-r reverse order | ||
-S sort by size | ||
-t sort by time modified | ||
-u sort by time accessed | ||
-U sort by time created | ||
-c sort by time status was changed | ||
|
||
-h Human-readable size (3k) | ||
|
||
### Find (find) | ||
|
||
Usage: | ||
|
||
find <path> <conditions> <actions> | ||
|
||
Conditions: | ||
|
||
-name "*.c" | ||
|
||
-user jonathan | ||
-nouser | ||
|
||
-type f # File | ||
-type d # Directory | ||
-type l # Symlink | ||
|
||
-depth 2 # At least 3 levels deep | ||
-regex PATTERN | ||
|
||
-newer file.txt | ||
-newerm file.txt # modified newer than file.txt | ||
-newerX file.txt # [c]hange, [m]odified, [B]create | ||
-newerXt "1 hour ago" # [t]imestamp | ||
|
||
Condition flow: | ||
|
||
\! -name "*.c" | ||
\( x -or y \) | ||
|
||
Actions: | ||
|
||
-exec rm {} \; | ||
-delete | ||
|
||
Examples: | ||
|
||
find . -name '*.jpg' | ||
find . -name '*.jpg' -exec rm {} \; | ||
|
||
find . -newerBt "24 hours ago" | ||
|
||
### Search-and-replace in all files | ||
|
||
perl -p -i -e 's/hello/HELLO/g' **/* | ||
|
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,12 @@ | ||
### Man paths | ||
|
||
1 General User Commands | ||
2 System Calls | ||
3 Library Routines (*) | ||
4 Special Files and Sockets | ||
5 File formats and Conventions | ||
6 Games and Fun Stuff | ||
7 Miscellaneous Documentation | ||
8 System Administration | ||
9 Kernel and Programming Style | ||
n Tcl/Tk |
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,66 @@ | ||
title: Ronn | ||
---- | ||
|
||
### Generating | ||
|
||
$ ronn foo.ronn | ||
|
||
$ ronn -r foo.ronn # Creates foo.7 | ||
|
||
$ ronn --html --style toc,80c foo.ronn | ||
|
||
# manual - top center | ||
# org - bottom left | ||
$ ronn --manual="MY MANUAL" --organization="RONN 0.7.0" | ||
|
||
See [ronn.1](http://rtomayko.github.com/ronn/ronn.1.html). | ||
|
||
### Format | ||
|
||
name(1) -- short, single-sentence description | ||
============================================= | ||
|
||
## SYNOPSIS | ||
|
||
`name` [<optional>...] <flags> | ||
|
||
## DESCRIPTION | ||
|
||
A normal paragraph. This can span multiple lines and is terminated with two | ||
or more line endings -- just like Markdown. | ||
|
||
Inline markup for `code`, `user input`, and **strong** are displayed | ||
boldface; <variable>, _emphasis_, *emphasis*, are displayed in italics | ||
(HTML) or underline (roff). | ||
|
||
### Linking | ||
|
||
Manual references like sh(1), markdown(7), roff(7), etc. are hyperlinked in | ||
HTML output. | ||
|
||
Link to sections like [STANDARDS][], [SEE ALSO][], or [WITH A DIFFERENT LINK | ||
TEXT][#SEE-ALSO]. | ||
|
||
### Definition lists | ||
|
||
* `-a`, `--argument`=[<value>]: | ||
One or more paragraphs describing the argument. | ||
|
||
* You can put whatever you *want* here, really: | ||
Nesting and paragraph spacing are respected. | ||
|
||
### Frequently used sections | ||
|
||
## OPTIONS | ||
## SYNTAX | ||
## ENVIRONMENT | ||
## RETURN VALUES | ||
## STANDARDS | ||
## SECURITY CONSIDERATIONS | ||
## BUGS | ||
## HISTORY | ||
## AUTHOR | ||
## COPYRIGHT | ||
## SEE ALSO | ||
|
||
See [ronn-format.7](http://rtomayko.github.com/ronn/ronn-format.7.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
title: Rtorrent | ||
--- | ||
|
||
### Global | ||
|
||
^q Quit | ||
|
||
### Main view | ||
|
||
bksp Add torrent | ||
|
||
-> View download | ||
|
||
1 - 7 Change view | ||
|
||
^S Start download | ||
^D Stop download (or remove stopped) | ||
^K Close a torrent | ||
|
||
+ - Change priority | ||
|
||
### Throttling | ||
|
||
a/s/d Increase the upload throttle by 1/5/50 KB | ||
z/x/c Decrease the upload throttle by 1/5/50 KB | ||
A/S/D Increase the download throttle by 1/5/50 KB | ||
Z/X/C Decrease the download throttle by 1/5/50 KB | ||
|
||
### Download view | ||
|
||
1/2 Adjust max uploads | ||
3/4 Adjust min peers | ||
5/6 Adjust max peers | ||
|
||
### File list view | ||
|
||
space Change priority |
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