added eject
parent
03e2ec593c
commit
3cd3be4b45
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
caffeinate
|
||||||
|
|
||||||
|
Prevent a system from sleeping.
|
||||||
|
|
||||||
|
- Prevent mac from sleeping for 1 hour (3600 seconds):
|
||||||
|
caffeinate -u -t 3600
|
||||||
|
|
||||||
|
- Prevent mac from sleeping until a command completes:
|
||||||
|
caffeinate -s command
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
carthage
|
||||||
|
|
||||||
|
A dependency management tool for Cocoa applications.
|
||||||
|
|
||||||
|
- Download the latest version of all dependencies mentioned in Cartfile, and build them:
|
||||||
|
carthage update
|
||||||
|
|
||||||
|
- Update dependencies, but only build for iOS:
|
||||||
|
carthage update --platform ios
|
||||||
|
|
||||||
|
- Update dependencies, but don't build any of them:
|
||||||
|
carthage update --no-build
|
||||||
|
|
||||||
|
- Download and rebuild the current version of dependencies (without updating them):
|
||||||
|
carthage bootstrap
|
||||||
|
|
||||||
|
- Rebuild a specific dependency:
|
||||||
|
carthage build dependency
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
Page not found. Updating cache ..
|
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
diskutil
|
||||||
|
|
||||||
|
Utility to manage local disks and volumes.
|
||||||
|
|
||||||
|
- List all currently available disks, partitions and mounted volumes:
|
||||||
|
diskutil list
|
||||||
|
|
||||||
|
- Repair the file system data structures of a volume:
|
||||||
|
diskutil repairVolume /dev/diskX
|
||||||
|
|
||||||
|
- Unmount a volume:
|
||||||
|
diskutil unmountDisk /dev/diskX
|
||||||
|
|
||||||
|
- Eject a CD/DVD (unmount first):
|
||||||
|
diskutil eject /dev/disk1
|
||||||
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
drutil
|
||||||
|
|
||||||
|
Interact with DVD burners.
|
||||||
|
|
||||||
|
- Eject a disk from the drive:
|
||||||
|
drutil eject
|
||||||
|
|
||||||
|
- Burn a folder as an ISO9660 filesystem onto a DVD. Don't verify and eject when complete:
|
||||||
|
drutil burn -noverify -eject -iso9660
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
# eject
|
||||||
|
# eject removable media
|
||||||
|
# You can also close the tray using certain options.
|
||||||
|
|
||||||
|
# Eject any available device
|
||||||
|
# CD-ROM, floppy disk, tape, or JAZ or ZIP disk
|
||||||
|
eject
|
||||||
|
|
||||||
|
# Eject a device by its name
|
||||||
|
eject /dev/cdrom
|
||||||
|
|
||||||
|
# Close the tray using eject command
|
||||||
|
eject -t
|
||||||
|
|
||||||
|
# Lock the hardware eject button
|
||||||
|
eject -i on
|
||||||
|
|
||||||
|
# Unlock the hardware eject button
|
||||||
|
eject -i off
|
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
look
|
||||||
|
|
||||||
|
Look for lines in sorted file.
|
||||||
|
|
||||||
|
- Look for lines which begins with the given prefix:
|
||||||
|
look prefix file
|
||||||
|
|
||||||
|
- Look for lines ignoring case:
|
||||||
|
look -f prefix file
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
pmset
|
||||||
|
|
||||||
|
Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
|
||||||
|
Commands that modify settings must begin with sudo.
|
||||||
|
|
||||||
|
- Display the current power management settings:
|
||||||
|
pmset -g
|
||||||
|
|
||||||
|
- Display the current power source and battery levels:
|
||||||
|
pmset -g batt
|
||||||
|
|
||||||
|
- Set display to never sleep when on charger power:
|
||||||
|
sudo pmset -c displaysleep 0
|
||||||
|
|
||||||
|
- Set display to sleep after 15 minutes when on battery power:
|
||||||
|
sudo pmset -b displaysleep 15
|
||||||
|
|
||||||
|
- Schedule computer to automatically wake up every weekday at 9 AM:
|
||||||
|
sudo pmset repeat wake MTWRF 09:00:00
|
||||||
|
|
||||||
|
- Restore to system defaults:
|
||||||
|
sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1
|
||||||
|
|
||||||
|
|
||||||
|
See also: sudo
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
Page not found. Updating cache ..
|
@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
say
|
||||||
|
|
||||||
|
Converts text to speech.
|
||||||
|
|
||||||
|
- Say a phrase aloud:
|
||||||
|
say "I like to ride my bike."
|
||||||
|
|
||||||
|
- Read a file aloud:
|
||||||
|
say -f filename.txt
|
||||||
|
|
||||||
|
- Say a phrase with a custom voice and speech rate:
|
||||||
|
say -v voice -r words_per_minute "I'm sorry Dave, I can't let you do that."
|
||||||
|
|
||||||
|
- List the available voices:
|
||||||
|
say -v ?
|
||||||
|
|
||||||
|
- Create an audio file of the spoken text:
|
||||||
|
say -o filename.aiff "Here's to the Crazy Ones."
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
svgo
|
||||||
|
|
||||||
|
SVG Optimizer: a Nodejs-based tool for optimizing Scalable Vector Graphics files.
|
||||||
|
It applies a series of transformation rules (plugins), which can be toggled individually.
|
||||||
|
|
||||||
|
- Optimize a file using the default plugins (overwrites the original file):
|
||||||
|
svgo test.svg
|
||||||
|
|
||||||
|
- Optimize a file and save the result to another file:
|
||||||
|
svgo test.svg test.min.svg
|
||||||
|
|
||||||
|
- Optimize all SVG files within a folder (overwrites the original files):
|
||||||
|
svgo -f path/to/folder/with/svg/files
|
||||||
|
|
||||||
|
- Optimize all SVG files within a folder and save the resulting files to another folder:
|
||||||
|
svgo -f path/to/input/folder -o path/to/output/folder
|
||||||
|
|
||||||
|
- Optimize SVG content passed from another command, and save the result to a file:
|
||||||
|
cat test.svg | svgo -i - -o test.min.svg
|
||||||
|
|
||||||
|
- Optimize a file and print out the result:
|
||||||
|
svgo test.svg -o -
|
||||||
|
|
||||||
|
- Optimize a file making sure a given plugin is enabled:
|
||||||
|
svgo --enable=plugin_name
|
||||||
|
|
||||||
|
- Show available plugins:
|
||||||
|
svgo --show-plugins
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
wacaw
|
||||||
|
|
||||||
|
A little command-line tool for Mac OS X that allows you to capture both still pictures and video from an attached camera.
|
||||||
|
|
||||||
|
- Take a picture from webcam:
|
||||||
|
wacaw filename
|
||||||
|
|
||||||
|
- Record a video:
|
||||||
|
wacaw --video filename -D duration_in_seconds
|
||||||
|
|
||||||
|
- Take a picture with custom resolution:
|
||||||
|
wacaw -x width -y height filename
|
||||||
|
|
||||||
|
- Copy image just taken to clipboard:
|
||||||
|
wacaw --to-clipboard
|
||||||
|
|
||||||
|
- List the devices available:
|
||||||
|
wacaw -L
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue