Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ When I come to a problem that can be solved with shell scripting, I put a soluti

`build_gcc.sh` - script for building gcc 4.7 for OS X.

`capture.sh` - script to take screenshots using terminal

`convert_video_4_ios.sh` - script for converting any video to iOS-compatible format (mpeg4/aac). This script uses `ffmpeg` for real work. As an arguments, pass list of files to convert (for example, `./convert_video_4_ios.sh *.avi`). Resulting filenames are the same as in input, but with .mp4 extension.

`duit.sh` - a wrapper for `du` which outputs results in a human-readable format and sorted by size.
Expand Down
7 changes: 7 additions & 0 deletions capture.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
while true; do
CAPTURE_FILE_NAME=`date "+%Y_%m_%d_%H%M%S.jpg"`
screencapture $CAPTURE_FILE_NAME
sleep 2
done
exit 0