mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
Fix comment line length
This commit is contained in:
parent
c05a3214b0
commit
ee7879177a
@ -1,5 +1,6 @@
|
||||
# Elm
|
||||
# Domain-specific programming language for declaratively creating web browser-based graphical user interfaces.
|
||||
# Domain-specific programming language for declaratively creating
|
||||
# web browser-based graphical user interfaces.
|
||||
|
||||
# Start Elm REPL
|
||||
elm repl
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Erlang
|
||||
# General-purpose, concurrent, functional programming language, as well as a garbage-collected runtime system.
|
||||
# General-purpose, concurrent, functional programming language,
|
||||
# as well as a garbage-collected runtime system.
|
||||
|
||||
# See also:
|
||||
# erl
|
||||
|
@ -1,11 +1,12 @@
|
||||
# jshint
|
||||
#
|
||||
# JSHint is a fork of JSLint. The reasons for the fork is basically that
|
||||
# the author disagrees in some points with Douglas Crockford on JavaScript coding style.
|
||||
# the author disagrees in some points with Douglas Crockford
|
||||
# on JavaScript coding style.
|
||||
#
|
||||
# If you're looking for a very high standard for yourself or team, JSLint (by Doug Crockford)
|
||||
# If you want to be a bit more flexible,
|
||||
# or have some old pros on your team that don't buy into JSLint's opinions, try JSHint
|
||||
# If you're looking for a very high standard for yourself or team,
|
||||
# use JSLint (by Doug Crockford).
|
||||
# If you want to be a bit more flexible, or have some old pros on your team
|
||||
# that don't buy into JSLint's opinions, try JSHint.
|
||||
|
||||
# to install jshint
|
||||
sudo npm install jshint -g
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Julia
|
||||
# high-level dynamic programming language designed to address the needs of high-performance numerical analysis
|
||||
# and computational science while also being effective for general-purpose programming
|
||||
# high-level dynamic programming language designed to address the needs
|
||||
# of high-performance numerical analysis and computational science,
|
||||
# while also being effective for general-purpose programming.
|
||||
|
||||
# Execute script from the file; pass additional arguments
|
||||
julia script.jl arg1 arg2
|
||||
|
@ -6,13 +6,16 @@
|
||||
# Create a logical volume of 10 gigabytes in the volume group vg1:
|
||||
lvcreate -L 10G vg1
|
||||
|
||||
# Create a 1500 megabyte linear logical volume named mylv in the volume group vg1:
|
||||
# Create a 1500 megabyte linear logical volume named mylv
|
||||
# in the volume group vg1:
|
||||
lvcreate -L 1500 -n mylv vg1
|
||||
|
||||
# Create a logical volume called mylv that uses 60% of the total space in volume group vg1:
|
||||
# Create a logical volume called mylv that uses 60% of the total space
|
||||
# in the volume group vg1:
|
||||
lvcreate -l 60%VG -n mylv vg1
|
||||
|
||||
# Create a logical volume called mylv that uses all of the unallocated space in the volume group vg1:
|
||||
# Create a logical volume called mylv that uses all of the unallocated space
|
||||
# in the volume group vg1:
|
||||
lvcreate -l 100%FREE -n mylv vg1
|
||||
|
||||
# Create a snapshot (lvsnap) from a logical volume (/dev/vgA/lv1);
|
||||
|
@ -9,7 +9,8 @@ pg_top -p 5432 -U postgres -d database -W
|
||||
# A
|
||||
# Display the actual query plan (EXPLAIN ANALYZE)
|
||||
# E
|
||||
# Display re-determined execution plan (EXPLAIN) of the SQL statement by a backend process
|
||||
# Display re-determined execution plan (EXPLAIN) of the SQL statement
|
||||
# by a backend process
|
||||
# L
|
||||
# Display the currently held locks by a backend process
|
||||
# Q
|
||||
|
@ -5,7 +5,8 @@
|
||||
# Create a Podfile for the current project with the default contents:
|
||||
pod init
|
||||
|
||||
# Download and install all pods defined in the Podfile (that haven't been installed before):
|
||||
# Download and install all pods defined in the Podfile
|
||||
# (that haven't been installed before):
|
||||
pod install
|
||||
|
||||
# List all available pods:
|
||||
|
@ -1,11 +1,11 @@
|
||||
# qlmanage
|
||||
#
|
||||
# QuickLook server tool (Mac OS X)
|
||||
|
||||
# Display QuickLook for one or multiple files:
|
||||
qlmanage -p filename filename2
|
||||
|
||||
# Compute 300px wide PNG thumbnails of all JPEGs in the current directory and put them in a directory:
|
||||
# Compute 300px wide PNG thumbnails of all JPEGs in the current directory
|
||||
# and put them in a directory:
|
||||
qlmanage *.jpg -t -s 300 path/to/directory
|
||||
|
||||
# Reset Quicklook:
|
||||
|
@ -9,20 +9,21 @@ sgdisk -g /dev/sda
|
||||
sgdisk -m /dev/sda
|
||||
|
||||
# Sort GPT partitions
|
||||
# when a new partition is created in the space between two partitions or a partition is deleted
|
||||
# when a new partition is created in the space between two partitions
|
||||
# or a partition is deleted
|
||||
sgdisk -s /dev/sda
|
||||
|
||||
# Using sgdisk you can create a binary backup consisting of the protective MBR,
|
||||
# the main GPT header, the backup GPT header, and one copy of the partition table
|
||||
# Create a binary backup consisting of the protective MBR, the main GPT header,
|
||||
# the backup GPT header, and one copy of the partition table
|
||||
sgdisk -b=sgdisk-sda.bak
|
||||
|
||||
# Restore GPT/MBR backup:
|
||||
sgdisk -l=sgdisk-sda.bak
|
||||
|
||||
# Clone your current device's partition layout '/dev/sda' to another drive '/dev/sdc'
|
||||
# Clone partition layout of '/dev/sda' to another drive '/dev/sdc'
|
||||
sgdisk -R=/dev/sdc /dev/sda
|
||||
|
||||
# If both drives will be in the same computer, you need to randomize the GUIDs after cloning
|
||||
# Randomize GUIDs (after cloning)
|
||||
sgdisk -G /dev/sdc
|
||||
|
||||
|
||||
|
@ -8,7 +8,8 @@ sox -m ${input_audiofile1} ${input_audiofile2} ${output_audiofile}
|
||||
# Trim an audio file to the specified times:
|
||||
sox ${input_audiofile} ${output_audiofile} trim ${start} ${end}
|
||||
|
||||
# Normalize an audio file (adjust volume to the maximum peak level, without clipping):
|
||||
# Normalize an audio file
|
||||
# (adjust volume to the maximum peak level, without clipping):
|
||||
sox --norm ${input_audiofile} ${output_audiofile}
|
||||
|
||||
# Reverse and save an audio file:
|
||||
|
Loading…
Reference in New Issue
Block a user