diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..52cfff0 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +default: + bash ./initialization/init_workflow.sh \ No newline at end of file diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/automatisation/cronjob_nextcloud.sh b/automatisation/cronjob_nextcloud.sh new file mode 100644 index 0000000..58d0657 --- /dev/null +++ b/automatisation/cronjob_nextcloud.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# +# ----------------- documentation ----------------- +# tâche à effectuer régulièrement sur les ordis portables +# +# @author functions_sync by @tykayn - contact at cipherbliss.com +source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh + +# récupérer les notes du mobile et les stocker dans l'incoming inbox orgmode + +bash $WORKFLOW_PATH/archive_from_nextcloud.sh +bash $WORKFLOW_PATH/update_calendar_tkwulfi.sh +bash $WORKFLOW_PATH/get_nextcloud_notes_todo.sh +bash $WORKFLOW_PATH/backup_nextcloud_in_user_home.sh +bash $WORKFLOW_PATH/git_auto_commit_workflow_folder.sh + +upPhotosADispatcher diff --git a/backup-management/.gitkeep b/backup-management/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bin/.gitkeep b/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/files-management/.gitkeep b/files-management/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/initialization/init_workflow.sh b/initialization/init_workflow.sh new file mode 100644 index 0000000..5a4df48 --- /dev/null +++ b/initialization/init_workflow.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# +# mise en place du workflow +# diff --git a/initialization/secrets_example.sh b/initialization/secrets_example.sh new file mode 100644 index 0000000..404fede --- /dev/null +++ b/initialization/secrets_example.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# +# variables à ne pas versionner +# + +export secret_key="bidule" \ No newline at end of file diff --git a/knowledge/org-heading-stats.sh b/knowledge/org-heading-stats.sh new file mode 100644 index 0000000..4bfc3bc --- /dev/null +++ b/knowledge/org-heading-stats.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +FILES="${@}" +USERTAG="@$USER" + +no_files_found() +{ + echo "No files found. Please do give me some Org-mode files as parameter" >&2 + exit 1 +} + +[ "x$FILES" = "x" ] && no_files_found + +TODO=$(egrep '^\*+.*(TODO|NEXT)' ${FILES}|wc -l) +STARTED=$(egrep '^\*+.*STARTED' ${FILES}|wc -l) +WAITING=$(egrep '^\*+.*WAITING' ${FILES}|wc -l) +CANCELLED=$(egrep '^\*+.*CANCELLED' ${FILES}|wc -l) +DONE=$(egrep '^\*+.*DONE' ${FILES}|wc -l) + +TOTAL=$(wc -l ${FILES}|grep total) +HEADINGS=$(egrep '^\*+' ${FILES}|wc -l) + +USERTAGGED=$(egrep "^\*+.*:${USERTAG}:.*" ${FILES}|wc -l) +OTHERATTAGGED=$(egrep '^\*+.*:@.+:.*' ${FILES} | grep -v "${USERTAG}" | wc -l) + +OPEN=$(( TODO + STARTED + WAITING )) +FINISHED=$(( CANCELLED + DONE )) +TASKS=$(( OPEN + FINISHED )) +NONTASKS=$(( HEADINGS - TASKS )) + +cat <