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 # alias
> Creates an alias for a word when used > Creates an alias for a word when used
> as the first word of a command > as the first word of a command
- creating a generic alias - creating a generic alias
@ -21,4 +21,4 @@
- overriding la as ls -a - 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) > Create, modify, and extract from archives (.a .so .o)
@ -8,4 +8,4 @@
- List the content (files) of libfoo.a - 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. > Dependency manager for the Ruby programming language.

View File

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

View File

@ -7,7 +7,7 @@
`chown {{user}} {{path/to/file}}` `chown {{user}} {{path/to/file}}`
- change the user and group of a file - change the user and group of a file
`chown {{user}}:{{group}} {{path/to/file}}` `chown {{user}}:{{group}} {{path/to/file}}`
- recursively change the owner of an entire folder - recursively change the owner of an entire folder
@ -15,7 +15,7 @@
`chown -R {{user}} {{path/to/folder}}` `chown -R {{user}} {{path/to/folder}}`
- change the owner of a symbolic link - change the owner of a symbolic link
`chown -h {{user}} {{path/to/symlink}}` `chown -h {{user}} {{path/to/symlink}}`
- use the owner and group of a reference file and apply those values to another file - 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 > Change user's login shell

View File

@ -1,7 +1,7 @@
# cksum # cksum
> Calculates CRC checksums and byte counts of a file > 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 - Display a 32 bit checksum, size in bytes and filename

View File

@ -6,10 +6,10 @@
`convert {{image.jpg}} {{image.png}}` `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}}` `convert {{image.png}} -resize 50% {{image2.png}}`
- Horizontally append images - Horizontally append images
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}` `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 -r {{/path/to/original}} {{/path/to/copy}}`
`cp -vr {{/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\}`
`cp file.\{html,backup\}` `cp file.\{html,backup\}`

View File

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

View File

@ -18,6 +18,6 @@
`diff -r {{directory1}} {{directory2}}` `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}}` `diff -rq {{directory1}} {{directory2}}`

View File

@ -1,6 +1,6 @@
# fdupes # fdupes
> Finds duplicate files in a given > Finds duplicate files in a given
> set of directories > set of directories
- search a single directory - 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}}` `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}}` `ffmpeg -i {{video-filename}} {{image%d.png}}`

View File

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

View File

@ -1,4 +1,4 @@
#gem # gem
> Interact with the package manager for the Ruby programming language. > 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 > Adds changed files to the index

View File

@ -1,4 +1,4 @@
#git branch # git branch
> Main command for working with branches > 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 > Checkout a branch or paths to the working tree
@ -8,4 +8,4 @@
- Create and switch to a new branch - 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 > Clone an existing repository
@ -12,4 +12,4 @@
- Do it quietly - 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 >Commit staged files to the repository
@ -8,4 +8,4 @@
- Replace the last commit with currently staged changes - 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 > Show changes to tracked files

View File

@ -1,4 +1,4 @@
#git init # git init
> Initializes a new local Git repository > Initializes a new local Git repository
@ -8,4 +8,4 @@
- Initialize a barebones repository - 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 >Show a history of commits

View File

@ -1,4 +1,4 @@
#git merge # git merge
> Merge branches > Merge branches
@ -8,4 +8,4 @@
- Edit the merge message - 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 > Push commits to a remote repository

View File

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

View File

@ -1,4 +1,4 @@
#git status # git status
> Show the index (changed files) > Show the index (changed files)
@ -8,4 +8,4 @@
- Give output in short format - 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 > Main command for all `git` commands
@ -16,4 +16,4 @@
- Execute Git command - Execute Git command
`git {{COMMAND}}` `git {{COMMAND}}`

View File

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

View File

@ -4,7 +4,7 @@
> Supports simple patterns and regular expressions > Supports simple patterns and regular expressions
- search for an exact string - search for an exact string
`grep {{something}} {{file_path}}` `grep {{something}} {{file_path}}`
- search recursively in current directory for an exact string - search recursively in current directory for an exact string
@ -19,7 +19,7 @@
`grep -C 3 {{something}} {{file_path}}` `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}}` `grep -c {{something}} {{file_path}}`

View File

@ -1,6 +1,6 @@
# gzip # 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 - 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 - 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` `HandBrakeCLI -i {{input.mp4}} -o {{output.mp4} -w 320 -l 240`
- List available presets - List available presets
`HandBrakeCLI --preset-list` `HandBrakeCLI --preset-list`
- Convert an AVI video to MP4 using the Android preset - 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}}` `haxelib install {{libname}}`
- Upgrade all installed Haxe libraries - Upgrade all installed Haxe libraries
`haxelib upgrade` `haxelib upgrade`

View File

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

View File

@ -6,7 +6,7 @@
`MP4Box -info {{filename}}` `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}}` `MP4Box -add {{input-subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#node # node
>Main node command >Main node command
@ -8,4 +8,4 @@
- Execute node on a JS file - 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. > 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. > Patch a file (or files) with a diff file.
> Note that diff files contain both the target filenames and list of changes. > 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 > 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}}` `pgrep {{Finder}}`

View File

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

View File

@ -20,6 +20,6 @@
`rsync -r mike@devbox:~/projects/cakeStore /Users/mike/devProjects/` `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}}` `rsync -e ssh --progress {{remote_host_name}}:{{remote_file}} {{local_file}}`

View File

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

View File

@ -1,4 +1,5 @@
# salt-key # salt-key
> Manages salt minion keys on the salt master > Manages salt minion keys on the salt master
> Needs to be run on the salt master, likely as root or with sudo > 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 >Frontend for executing salt-runners on minions

View File

@ -1,4 +1,4 @@
#salt # salt
>Execute commands and assert state on remote salt minions. >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. > 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` `screen`

View File

@ -16,10 +16,10 @@
`ssh {{username}}@{{remote_host}} -p {{2222}}` `ssh {{username}}@{{remote_host}} -p {{2222}}`
- run a command on a remote server - run a command on a remote server
`ssh {{remote_host}} "{{command -with -flags}}"` `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}}` `ssh -D {{9999}} -C {{username}}@{{remote_host}}`
@ -27,6 +27,6 @@
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}` `ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
- ssh enable agent forward - ssh enable agent forward
`ssh -A {{username}}@{{remote_host}}` `ssh -A {{username}}@{{remote_host}}`

View File

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

View File

@ -2,7 +2,7 @@
> Subversion command line client tool > 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}}` `svn co {{url/to/repository}}`
@ -16,7 +16,7 @@
- Send changes from your working copy to the repository - 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 - Show detailed help

View File

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

View File

@ -6,7 +6,7 @@
`touch {{filename}}` `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 201412250801.59 {{filename}}
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}} `touch -t {{YYYYMMDDHHMM.SS}} {{filename}}

View File

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

View File

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

View File

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

View File

@ -14,6 +14,6 @@
`du -ah {{directory}}` `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}}` `du -k -depth=1 {{directory}}`

View File

@ -18,7 +18,7 @@
`sysctl -n machdep.cpu.feature` `sysctl -n machdep.cpu.feature`
- Set a changeable kernel state variable - Set a changeable kernel state variable
`sysctl -w name=value` `sysctl -w name=value`
`sysctl -w kern.maxfiles=15000` `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. > a little command-line tool for Mac OS X that allows you to capture both still pictures and video from an attached camera.