From daf63c9f7d1deb676a13c1615feea4ac442cfbed Mon Sep 17 00:00:00 2001 From: Sumit Kumar Singh Date: Mon, 29 Oct 2018 22:19:08 +0530 Subject: [PATCH 1/2] Create capture.sh : screenshot script --- capture.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 capture.sh diff --git a/capture.sh b/capture.sh new file mode 100644 index 0000000..d45b39a --- /dev/null +++ b/capture.sh @@ -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 From 614cfa342e4e73cdfc7eeca85d95e7fc05dcd426 Mon Sep 17 00:00:00 2001 From: Sumit Kumar Singh Date: Mon, 29 Oct 2018 22:20:20 +0530 Subject: [PATCH 2/2] Update Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c210436..d631781 100644 --- a/README.md +++ b/README.md @@ -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.