Skip to content
Snippets Groups Projects
Commit 0eb58386 authored by nimrod's avatar nimrod
Browse files

Codespell pre-commit hook.

- Add a pre-commit hook.
- Correct some spelling mistakes.
parent 5909705e
Branches
No related tags found
No related merge requests found
...@@ -104,3 +104,9 @@ repos: ...@@ -104,3 +104,9 @@ repos:
args: args:
- "--server" - "--server"
- https://git.shore.co.il - https://git.shore.co.il
- repo: https://github.com/codespell-project/codespell.git
rev: v2.1.0
hooks:
- id: codespell
exclude: \.local/share/applications/.*\.desktop
#!/usr/bin/env python3 #!/usr/bin/env python3
# pylint: disable=invalid-name # pylint: disable=invalid-name
"""Backup a Git repositories namespace to my GitLab instace. """Backup a Git repositories namespace to my GitLab instance.
Which means creating a namespace in GitLab, creating a project for every Which means creating a namespace in GitLab, creating a project for every
repository in the namespace, adding a remote to the repository and pushing repository in the namespace, adding a remote to the repository and pushing
......
...@@ -57,13 +57,13 @@ sync () { ...@@ -57,13 +57,13 @@ sync () {
cp -rf "$RUNTIME_DIR/kbfs/"* "$DOCUMENTS_DIR/" cp -rf "$RUNTIME_DIR/kbfs/"* "$DOCUMENTS_DIR/"
if [ ! -w "/Volumes" ] if [ ! -w "/Volumes" ]
then then
echo "Skiped creating links in /Volumes/Keybase, directory not writeable." >&2 echo "Skipped creating links in /Volumes/Keybase, directory not writeable." >&2
else else
ln -sf "$DOCUMENTS_DIR" /Volumes/Keybase ln -sf "$DOCUMENTS_DIR" /Volumes/Keybase
fi fi
if [ ! -w "/keybase" ] if [ ! -w "/keybase" ]
then then
echo "Skiped creating links in /keybase, directory not writeable." >&2 echo "Skipped creating links in /keybase, directory not writeable." >&2
else else
find /home/nimrod/Documents/Smile/keybase/ -maxdepth 1 -mindepth 1 -exec ln -sf --target /keybase/ '{}' \; find /home/nimrod/Documents/Smile/keybase/ -maxdepth 1 -mindepth 1 -exec ln -sf --target /keybase/ '{}' \;
fi fi
......
#!/bin/sh #!/bin/sh
set -eu set -eu
# To install, add the folowing lines to your crontab: # To install, add the following lines to your crontab:
# PATH="~/Documents/bin:/usr/local/bin:/usr/bin:/bin" # PATH="~/Documents/bin:/usr/local/bin:/usr/bin:/bin"
# */5 * * * * update-voltage # */5 * * * * update-voltage
......
...@@ -89,7 +89,7 @@ logger -p user.debug "WiFi login HTTP code: $http_code" ...@@ -89,7 +89,7 @@ logger -p user.debug "WiFi login HTTP code: $http_code"
redirect_url="$(wifi-portal)" || die "Failed to get the redirect URL." redirect_url="$(wifi-portal)" || die "Failed to get the redirect URL."
if [ "$redirect_url" = "" ] if [ "$redirect_url" = "" ]
then then
logger -p user.debug "Successfuly logged in to the WiFi network." logger -p user.debug "Successfully logged in to the WiFi network."
else else
logger -p user.debug "Failed to login to the WiFi network, still redirecting to a captive portal." logger -p user.debug "Failed to login to the WiFi network, still redirecting to a captive portal."
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment