Merge pull request #309 from lord63-forks/lint-fix

Lint fix
waldyrious/alt-syntax
Ruben Vereecken 2015-10-23 02:06:48 +02:00
commit acf8756f56
61 changed files with 79 additions and 78 deletions

View File

@ -1,6 +1,6 @@
# alias
> Creates an alias for a word when used
> Creates an alias for a word when used
> as the first word of a command
- creating a generic alias
@ -21,4 +21,4 @@
- overriding la as ls -a
`alias {{la}}="{{ls -a}}"`
`alias {{la}}="{{ls -a}}"`

View File

@ -1,4 +1,4 @@
#ar
# ar
> Create, modify, and extract from archives (.a .so .o)
@ -8,4 +8,4 @@
- List the content (files) of libfoo.a
`ar -t libfoo.a`
`ar -t libfoo.a`

View File

@ -1,4 +1,4 @@
#bundle
# bundle
> Dependency manager for the Ruby programming language.

View File

@ -10,7 +10,7 @@
`chmod u+rw {{file}}`
- Remove executable rights from the (g)roup
- Remove executable rights from the (g)roup
`chmod g-x {{file}}`

View File

@ -7,7 +7,7 @@
`chown {{user}} {{path/to/file}}`
- change the user and group of a file
`chown {{user}}:{{group}} {{path/to/file}}`
- recursively change the owner of an entire folder
@ -15,7 +15,7 @@
`chown -R {{user}} {{path/to/folder}}`
- change the owner of a symbolic link
`chown -h {{user}} {{path/to/symlink}}`
- use the owner and group of a reference file and apply those values to another file

View File

@ -1,4 +1,4 @@
#CHSH
# chsh
> Change user's login shell

View File

@ -1,7 +1,7 @@
# cksum
> Calculates CRC checksums and byte counts of a file
> Note, on old UNIX systems the CRC implementation may differ.
> Note, on old UNIX systems the CRC implementation may differ.
- Display a 32 bit checksum, size in bytes and filename

View File

@ -6,10 +6,10 @@
`convert {{image.jpg}} {{image.png}}`
- Scale an image 50% it's original size
- Scale an image 50% it's original size
`convert {{image.png}} -resize 50% {{image2.png}}`
- Horizontally append images
- Horizontally append images
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`

View File

@ -15,7 +15,7 @@
`cp -r {{/path/to/original}} {{/path/to/copy}}`
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
- Make a copy of a file adding and extension or changing an extension
- Make a copy of a file adding and extension or changing an extension
`cp {{file.html}}\{,.backup\}`
`cp file.\{html,backup\}`

View File

@ -5,7 +5,7 @@
- Download a URL to a file
`curl "{{URL}}" -o filename`
`curl "{{URL}}" -o filename`
- send form-encoded data

View File

@ -18,6 +18,6 @@
`diff -r {{directory1}} {{directory2}}`
- Compare directories, only showing the names of files that differ
- Compare directories, only showing the names of files that differ
`diff -rq {{directory1}} {{directory2}}`

View File

@ -1,6 +1,6 @@
# fdupes
> Finds duplicate files in a given
> Finds duplicate files in a given
> set of directories
- search a single directory

View File

@ -6,7 +6,7 @@
`ffmpeg -i {{video-filename}} -vn -ar 44100 -ac 2 -ab 192 -f mp3 {{sound.mp3}}`
- Convert frames from a video into individual numbered images
- Convert frames from a video into individual numbered images
`ffmpeg -i {{video-filename}} {{image%d.png}}`

View File

@ -1,4 +1,4 @@
#FSWEBCAM
# fswebcam
> small and simple webcam for *nix

View File

@ -1,4 +1,4 @@
#gem
# gem
> Interact with the package manager for the Ruby programming language.

View File

@ -1,4 +1,4 @@
#git add
# git add
> Adds changed files to the index

View File

@ -1,4 +1,4 @@
#git branch
# git branch
> Main command for working with branches

View File

@ -1,4 +1,4 @@
#git checkout
# git checkout
> Checkout a branch or paths to the working tree
@ -8,4 +8,4 @@
- Create and switch to a new branch
`git checkout -b {{BRANCH-NAME}}`
`git checkout -b {{BRANCH-NAME}}`

View File

@ -1,4 +1,4 @@
#git clone
# git clone
> Clone an existing repository
@ -12,4 +12,4 @@
- Do it quietly
`git clone -q`
`git clone -q`

View File

@ -1,4 +1,4 @@
#git commit
# git commit
>Commit staged files to the repository
@ -8,4 +8,4 @@
- Replace the last commit with currently staged changes
`git commit --amend`
`git commit --amend`

View File

@ -1,4 +1,4 @@
#git diff
# git diff
> Show changes to tracked files

View File

@ -1,4 +1,4 @@
#git init
# git init
> Initializes a new local Git repository
@ -8,4 +8,4 @@
- Initialize a barebones repository
`git init --bare`
`git init --bare`

View File

@ -1,4 +1,4 @@
#git log
# git log
>Show a history of commits

View File

@ -1,4 +1,4 @@
#git merge
# git merge
> Merge branches
@ -8,4 +8,4 @@
- Edit the merge message
`git merge -e {{BRANCH-NAME}}`
`git merge -e {{BRANCH-NAME}}`

View File

@ -1,4 +1,4 @@
#git push
# git push
> Push commits to a remote repository

View File

@ -1,4 +1,4 @@
#git remote
# git remote
> Manage set of tracked repositories (“remotes”)

View File

@ -1,4 +1,4 @@
#git status
# git status
> Show the index (changed files)
@ -8,4 +8,4 @@
- Give output in short format
`git status -s`
`git status -s`

View File

@ -1,4 +1,4 @@
#git
# git
> Main command for all `git` commands
@ -16,4 +16,4 @@
- Execute Git command
`git {{COMMAND}}`
`git {{COMMAND}}`

View File

@ -20,4 +20,4 @@
- Import a public key
`gpg --import {{public.gpg}}`
`gpg --import {{public.gpg}}`

View File

@ -4,7 +4,7 @@
> Supports simple patterns and regular expressions
- search for an exact string
`grep {{something}} {{file_path}}`
- search recursively in current directory for an exact string
@ -19,7 +19,7 @@
`grep -C 3 {{something}} {{file_path}}`
- print the count of matches instead of the matching text
- print the count of matches instead of the matching text
`grep -c {{something}} {{file_path}}`

View File

@ -1,6 +1,6 @@
# gzip
> Compress/uncompress files with gzip compression (LZ77)
> Compress/uncompress files with gzip compression (LZ77)
- compress a file, replacing it with a gzipped compressed version
@ -20,4 +20,4 @@
- specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6
`gzip -9 -c {{file.ext}} > compressed-file.ext.gz`
`gzip -9 -c {{file.ext}} > compressed-file.ext.gz`

View File

@ -10,10 +10,10 @@
`HandBrakeCLI -i {{input.mp4}} -o {{output.mp4} -w 320 -l 240`
- List available presets
- List available presets
`HandBrakeCLI --preset-list`
- Convert an AVI video to MP4 using the Android preset
`HandBrakeCLI --preset="Android" -i {{input.ext}} -o {{output.mp4}}`
`HandBrakeCLI --preset="Android" -i {{input.ext}} -o {{output.mp4}}`

View File

@ -10,7 +10,7 @@
`haxelib install {{libname}}`
- Upgrade all installed Haxe libraries
- Upgrade all installed Haxe libraries
`haxelib upgrade`

View File

@ -1,4 +1,4 @@
#ipcs
# ipcs
> Display information about ressources used in IPC (Inter-process Communication)
@ -8,4 +8,4 @@
- General information about all the IPC
`ipcs -a`
`ipcs -a`

View File

@ -6,7 +6,7 @@
`MP4Box -info {{filename}}`
- Add an SRT subtitle file into an MP4 file
- Add an SRT subtitle file into an MP4 file
`MP4Box -add {{input-subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`

View File

@ -10,7 +10,7 @@
`mtr -n {{host}}`
- Generate output after pinging each hop 10 times
- Generate output after pinging each hop 10 times
`mtr -w {{host}}`

View File

@ -1,6 +1,6 @@
# mysql
> the MySQL command-line tool
> the MySQL command-line tool
- Connect to a database

View File

@ -1,6 +1,6 @@
# mysqldump
> Backups mysql databases
> Backups mysql databases
- creating a backup

View File

@ -10,7 +10,7 @@
`nc {{ip_address}} {{port}}`
- set a timeout
- set a timeout
`nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}`

View File

@ -1,4 +1,4 @@
#node
# node
>Main node command
@ -8,4 +8,4 @@
- Execute node on a JS file
`node {{FILENAME}}.js`
`node {{FILENAME}}.js`

View File

@ -1,4 +1,4 @@
#passwd
# passwd
> passwd is a tool used to change a user's password.

View File

@ -1,4 +1,4 @@
#patch
# patch
> Patch a file (or files) with a diff file.
> Note that diff files contain both the target filenames and list of changes.

View File

@ -2,7 +2,7 @@
> Find or signal process by name
- return PIDs of any running processes with a matching command string
- return PIDs of any running processes with a matching command string
`pgrep {{Finder}}`

View File

@ -12,7 +12,7 @@
- Replace whitespace with underscores
`rename --nows {{*.txt}}`
`rename --nows {{*.txt}}`
`rename 's/\s+/_/g' {{*.txt}}`
- No action, just show what renames would occur

View File

@ -20,6 +20,6 @@
`rsync -r mike@devbox:~/projects/cakeStore /Users/mike/devProjects/`
- transfer file over SSH and show progress
- transfer file over SSH and show progress
`rsync -e ssh --progress {{remote_host_name}}:{{remote_file}} {{local_file}}`

View File

@ -1,4 +1,5 @@
# salt-key
> Invoke salt locally on a salt minion.
- Perform a highstate on this minion

View File

@ -1,4 +1,5 @@
# salt-key
> Manages salt minion keys on the salt master
> Needs to be run on the salt master, likely as root or with sudo

View File

@ -1,4 +1,4 @@
#salt-run
# salt-run
>Frontend for executing salt-runners on minions

View File

@ -1,4 +1,4 @@
#salt
# salt
>Execute commands and assert state on remote salt minions.

View File

@ -2,7 +2,7 @@
> Hold a session open on a remote server. Manage multiple windows with a single SSH connection.
- Start a new screen session
- Start a new screen session
`screen`

View File

@ -16,10 +16,10 @@
`ssh {{username}}@{{remote_host}} -p {{2222}}`
- run a command on a remote server
`ssh {{remote_host}} "{{command -with -flags}}"`
- ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999)
- ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999)
`ssh -D {{9999}} -C {{username}}@{{remote_host}}`
@ -27,6 +27,6 @@
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
- ssh enable agent forward
- ssh enable agent forward
`ssh -A {{username}}@{{remote_host}}`

View File

@ -6,7 +6,6 @@
`sudo {{ls}} {{/usr/local/scrt}}`
- To edit a file as user www:
`sudo -u {{www}} {{vi}} {{/var/www/index.html}}`

View File

@ -2,7 +2,7 @@
> Subversion command line client tool
- Check out a working copy from a repository
- Check out a working copy from a repository
`svn co {{url/to/repository}}`
@ -16,7 +16,7 @@
- Send changes from your working copy to the repository
`svn ci -m {{commit log message}} {{[PATH...]}}`
`svn ci -m {{commit log message}} {{[PATH...]}}`
- Show detailed help

View File

@ -1,4 +1,4 @@
#TEE
# tee
> read from standard input and write to standard output and files

View File

@ -6,7 +6,7 @@
`touch {{filename}}`
- Set the times on a file to those specified
- Set the times on a file to those specified
`touch -t 201412250801.59 {{filename}}
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}

View File

@ -11,7 +11,7 @@
`wget --limit-rate={{200k}} {{url}}`
- Continue an incomplete download
- Continue an incomplete download
`wget -c {{url}}`

View File

@ -7,6 +7,6 @@
`which {{ls}}`
`which {{executable}}`
- If there are multiple executables which match, display all
- If there are multiple executables which match, display all
`which -a {{executable}}`

View File

@ -27,7 +27,7 @@
`zpool histrory {{poolname}}`
- Create a mirrored pool.
- Create a mirrored pool.
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}`
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`

View File

@ -14,6 +14,6 @@
`du -ah {{directory}}`
- list the KB sizes of directories for N levels below the specified directory
- list the KB sizes of directories for N levels below the specified directory
`du -k -depth=1 {{directory}}`

View File

@ -18,7 +18,7 @@
`sysctl -n machdep.cpu.feature`
- Set a changeable kernel state variable
- Set a changeable kernel state variable
`sysctl -w name=value`
`sysctl -w kern.maxfiles=15000`

View File

@ -1,4 +1,4 @@
#WACAW
# wacaw
> a little command-line tool for Mac OS X that allows you to capture both still pictures and video from an attached camera.