From c329991151a7e24d137d0bbd739cc846b29d4b4d Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Sun, 20 Oct 2019 00:38:19 +0530 Subject: [PATCH 1/7] added script with timer --- README.md | 2 ++ q3.sh | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 q3.sh diff --git a/README.md b/README.md index 11b6acc..952e5fc 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,8 @@ Dependencies: [ffmpeg](https://pkgs.org/download/ffmpeg) encode-x265 encode-x265 ``` +### Clock timer with notifications + ### 🎥 Convert video to gif diff --git a/q3.sh b/q3.sh new file mode 100644 index 0000000..5fe5bd7 --- /dev/null +++ b/q3.sh @@ -0,0 +1,24 @@ +#!/bin/bash +read -p "Enter the number of iterations " n +flag=0 + +for (( i=0; i Date: Sun, 20 Oct 2019 00:40:54 +0530 Subject: [PATCH 2/7] updated readme --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 952e5fc..d563474 100644 --- a/README.md +++ b/README.md @@ -187,8 +187,23 @@ encode-x265 encode-x265 ``` ### Clock timer with notifications +```sh +A popular time management technique uses a timer to break down work into intervals (usually +25 mins) followed by a small break. +The task is to create a BASH script to aid this process. Take a command line argument for the +number of iterations (work + break). Print notifications about the breaks (5 mins) or time to work +(25 mins) in the terminal. Every 4 iterations, include a long break (15 mins). Print notification +when all the cycles are complete. +Example usage: +bash timer.sh 2 +Output structure: +#1 work +#1 break time +#2 work +#2 break time +Finished - +``` ### 🎥 Convert video to gif Script: [gif-convert](gif-convert) From 3b362d120612e463fde77a70c648170f652b380d Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Sun, 20 Oct 2019 00:43:41 +0530 Subject: [PATCH 3/7] updated permissions --- q3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 q3.sh diff --git a/q3.sh b/q3.sh old mode 100644 new mode 100755 index 5fe5bd7..e89083b --- a/q3.sh +++ b/q3.sh @@ -20,5 +20,5 @@ do fi done echo "finished" - +chmod 777 q3.sh From 3f70c82b3ca2af7ef284330eab8499eaeec19c9c Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Tue, 22 Oct 2019 17:05:12 +0530 Subject: [PATCH 4/7] Updated Readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d563474..e1142ed 100644 --- a/README.md +++ b/README.md @@ -186,8 +186,14 @@ Dependencies: [ffmpeg](https://pkgs.org/download/ffmpeg) encode-x265 encode-x265 ``` -### Clock timer with notifications + +```sh +Script: [clock timer](q3.sh) + ```sh +Syntax: q3.sh {Number of breaks required.} +``` +### Clock timer with notifications A popular time management technique uses a timer to break down work into intervals (usually 25 mins) followed by a small break. The task is to create a BASH script to aid this process. Take a command line argument for the @@ -202,7 +208,6 @@ Output structure: #2 work #2 break time Finished - ``` ### 🎥 Convert video to gif From 7d2becc7f410cc3da044bb4a49feebc88d68adac Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Tue, 22 Oct 2019 17:07:29 +0530 Subject: [PATCH 5/7] Updated Readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e1142ed..e424bc2 100644 --- a/README.md +++ b/README.md @@ -187,13 +187,13 @@ encode-x265 encode-x265 ``` -```sh -Script: [clock timer](q3.sh) + +### Clock timer with notifications ```sh +Script: [clock timer](q3.sh) Syntax: q3.sh {Number of breaks required.} -``` -### Clock timer with notifications + A popular time management technique uses a timer to break down work into intervals (usually 25 mins) followed by a small break. The task is to create a BASH script to aid this process. Take a command line argument for the From 46f9f27df19f357d2e2f78e24234e91e976d2e31 Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Tue, 22 Oct 2019 17:09:51 +0530 Subject: [PATCH 6/7] Updated Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e424bc2..17cd991 100644 --- a/README.md +++ b/README.md @@ -190,10 +190,10 @@ encode-x265 ### Clock timer with notifications -```sh -Script: [clock timer](q3.sh) +Script: [q3.sh](q3.sh) Syntax: q3.sh {Number of breaks required.} +```sh A popular time management technique uses a timer to break down work into intervals (usually 25 mins) followed by a small break. The task is to create a BASH script to aid this process. Take a command line argument for the From df7d6329da22248ff8e55e0809f778c027754cb2 Mon Sep 17 00:00:00 2001 From: anubhav1306 Date: Tue, 22 Oct 2019 17:11:07 +0530 Subject: [PATCH 7/7] Updated Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17cd991..ec2e9f3 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ encode-x265 ### Clock timer with notifications -Script: [q3.sh](q3.sh) +Script: [q3.sh](q3.sh) Syntax: q3.sh {Number of breaks required.} ```sh