Last Sync: 2022-12-07 07:30:05
This commit is contained in:
parent
29db2b9b75
commit
b20d1f83a4
2 changed files with 30 additions and 0 deletions
7
Electronics/Digital_Circuits/Latches.md
Normal file
7
Electronics/Digital_Circuits/Latches.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
categories:
|
||||
- Computer Architecture
|
||||
- Electronics
|
||||
- Hardware
|
||||
tags: [logic-gates, binary, memory]
|
||||
---
|
23
scripts/auto_save.sh
Executable file
23
scripts/auto_save.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script runs as a cron job in half-hour intervals to automatically commit changes to the remote repository
|
||||
|
||||
NOTES_PATH="${HOME}/repos/computer_science"
|
||||
SPACE_2_UNDRSCR="${HOME}/repos/bash_scripts/space_to_underscore_filename.sh"
|
||||
|
||||
cd "$NOTES_PATH"
|
||||
|
||||
# Loop through directories and convert spaces in filenames to underscores
|
||||
source ${SPACE_2_UNDRSCR}
|
||||
git pull
|
||||
CHANGES_EXIST="$(git status --porcelain | wc -l)"
|
||||
|
||||
# If no changes, exit. Else commit and push with timestamp
|
||||
if [ "$CHANGES_EXIST" -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git pull
|
||||
git add .
|
||||
git commit -q -m "Last Sync: $(date +"%Y-%m-%d %H:%M:%S")"
|
||||
git push -q
|
Loading…
Add table
Reference in a new issue