mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-23 23:57:21 +02:00
Compare commits
No commits in common. "a62664de3ef1f2a0dd8055eb0e4661408b44f94e" and "b9f62ce2e21717d8256ac858c30c1a14b2f15cfc" have entirely different histories.
a62664de3e
...
b9f62ce2e2
@ -3,29 +3,50 @@
|
|||||||
# See https://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See https://pre-commit.ci for more information
|
# See https://pre-commit.ci for more information
|
||||||
ci:
|
ci:
|
||||||
|
# Attempts to use networking and fails at name resolution, local hook
|
||||||
|
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||||
skip: [install-dev-deps, prettier]
|
skip: [install-dev-deps, prettier]
|
||||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
# https://github.com/pre-commit-ci/issues/issues/83
|
# https://github.com/pre-commit-ci/issues/issues/83
|
||||||
autoupdate_schedule: quarterly
|
autoupdate_schedule: quarterly
|
||||||
|
|
||||||
|
# Override hook language versions from system defaults
|
||||||
|
default_language_version:
|
||||||
|
python: pypy3
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
|
# The repo from `pre-commit sample-config`
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v4.6.0
|
||||||
hooks:
|
hooks:
|
||||||
|
# `pre-commit sample-config` puts these four on top:
|
||||||
|
# trailing-whitespace, end-of-file-fixer, check-yaml,
|
||||||
|
# check-added-large-files
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
# Markdown allows double trailing space for forced line change. The
|
||||||
|
# hook appears to remove single ones.
|
||||||
args: ["--markdown-linebreak-ext", "md,markdown"]
|
args: ["--markdown-linebreak-ext", "md,markdown"]
|
||||||
|
# Let's not touch LICENSE files or reuse.software directory. Or if we
|
||||||
|
# do, that is a good example case anyway to keep as a comment?
|
||||||
|
#exclude: ^LICENSES\/.*|LICENSE$
|
||||||
|
# Other file extensions where trailing whitespace may be intentional
|
||||||
|
# and lack of it break things. Use identify-cli for figuring out more
|
||||||
|
# types to add.
|
||||||
exclude_types: [svg, tsv]
|
exclude_types: [svg, tsv]
|
||||||
#- id: end-of-file-fixer
|
#- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
# These are not from `pre-commit sample-config`
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
#- id: check-docstring-first
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-shebang-scripts-are-executable
|
- id: check-shebang-scripts-are-executable
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
|
#- id: debug-statements
|
||||||
- id: destroyed-symlinks
|
- id: destroyed-symlinks
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
@ -36,6 +57,19 @@ repos:
|
|||||||
# Remember also: --no-sort-keys
|
# Remember also: --no-sort-keys
|
||||||
# ASCII excludes the älphäbet amongst others
|
# ASCII excludes the älphäbet amongst others
|
||||||
[--autofix, --no-ensure-ascii]
|
[--autofix, --no-ensure-ascii]
|
||||||
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
|
# Synchronize dependencies between this file and package managers
|
||||||
|
- repo: https://github.com/pre-commit/sync-pre-commit-deps
|
||||||
|
rev: v0.0.1
|
||||||
|
hooks:
|
||||||
|
- id: sync-pre-commit-deps
|
||||||
|
|
||||||
|
# Checks the ci: section on top of the file
|
||||||
|
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
||||||
|
rev: v1.6.1
|
||||||
|
hooks:
|
||||||
|
- id: check-pre-commit-ci-config
|
||||||
|
|
||||||
# Markdown Table of Contents generation.
|
# Markdown Table of Contents generation.
|
||||||
- repo: https://github.com/thlorenz/doctoc
|
- repo: https://github.com/thlorenz/doctoc
|
||||||
@ -45,17 +79,45 @@ repos:
|
|||||||
# https://github.com/Mikaela/gist/blob/master/doctoc.txt
|
# https://github.com/Mikaela/gist/blob/master/doctoc.txt
|
||||||
args: [--update-only, --notitle]
|
args: [--update-only, --notitle]
|
||||||
|
|
||||||
|
# Python type checking
|
||||||
|
# - repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
# rev: "v1.6.0"
|
||||||
|
# hooks:
|
||||||
|
# - id: mypy
|
||||||
|
# args: [--install-types, --non-interactive]
|
||||||
|
|
||||||
|
# - repo: https://github.com/asottile/pyupgrade
|
||||||
|
# rev: v3.15.0
|
||||||
|
# hooks:
|
||||||
|
# - id: pyupgrade
|
||||||
|
# args: [--py311-plus]
|
||||||
|
|
||||||
|
# - repo: https://github.com/asottile/reorder-python-imports
|
||||||
|
# rev: v3.12.0
|
||||||
|
# hooks:
|
||||||
|
# - id: reorder-python-imports
|
||||||
|
# args: [--py311-plus]
|
||||||
|
|
||||||
|
# - repo: https://github.com/asottile/add-trailing-comma
|
||||||
|
# rev: v3.1.0
|
||||||
|
# hooks:
|
||||||
|
# - id: add-trailing-comma
|
||||||
|
|
||||||
# GitHub Actions etc. configuration validity checking
|
# GitHub Actions etc. configuration validity checking
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
#- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.29.0
|
#rev: 0.27.0
|
||||||
hooks:
|
#hooks:
|
||||||
#- id: check-jsonschema
|
#- id: check-dependabot
|
||||||
- id: check-dependabot
|
#- id: check-github-actions
|
||||||
- id: check-github-actions
|
#- id: check-github-workflows
|
||||||
- id: check-github-workflows
|
#- id: check-gitlab-ci
|
||||||
- id: check-gitlab-ci
|
|
||||||
- id: check-renovate
|
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
additional_dependencies: ["pyjson5"]
|
# rev: 3.0.0
|
||||||
|
# hooks:
|
||||||
|
# - id: bundler-audit
|
||||||
|
# https://github.com/jumanjihouse/pre-commit-hooks/issues/111
|
||||||
|
#- id: check-mailmap
|
||||||
|
|
||||||
# Easierish licensing when attempting reuse compliancy
|
# Easierish licensing when attempting reuse compliancy
|
||||||
- repo: https://github.com/fsfe/reuse-tool
|
- repo: https://github.com/fsfe/reuse-tool
|
||||||
@ -63,6 +125,11 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: reuse
|
- id: reuse
|
||||||
|
|
||||||
|
# Code formatters and especially editorconfig should probaly be last to
|
||||||
|
# ensure nothing breaks the rules.
|
||||||
|
|
||||||
|
# prettier, opinionated code formatter
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: install-dev-deps
|
- id: install-dev-deps
|
||||||
@ -78,6 +145,21 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
exclude_types: [json]
|
exclude_types: [json]
|
||||||
|
|
||||||
|
# Black, opinionated Python code formatter
|
||||||
|
# - repo: https://github.com/psf/black
|
||||||
|
# rev: 23.9.1
|
||||||
|
# hooks:
|
||||||
|
# - id: black
|
||||||
|
# args: ["--line-length", "79", "--target-version", "py311"]
|
||||||
|
#- id: black-jupyter
|
||||||
|
|
||||||
|
# Shell code formatter, requires Go
|
||||||
|
# - repo: https://github.com/scop/pre-commit-shfmt
|
||||||
|
# rev: v3.8.0-1
|
||||||
|
# hooks:
|
||||||
|
# - id: shfmt
|
||||||
|
#- id: shfmt-docker
|
||||||
|
|
||||||
# .editorconfig validity checking
|
# .editorconfig validity checking
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
rev: "2.7.3"
|
rev: "2.7.3"
|
||||||
@ -86,3 +168,31 @@ repos:
|
|||||||
alias: ec
|
alias: ec
|
||||||
# I don't actually care about line lengths as more than a guideline
|
# I don't actually care about line lengths as more than a guideline
|
||||||
args: [-disable-max-line-length]
|
args: [-disable-max-line-length]
|
||||||
|
|
||||||
|
# # Python linter
|
||||||
|
# - repo: local
|
||||||
|
# hooks:
|
||||||
|
# - id: pylint
|
||||||
|
# name: pylint
|
||||||
|
# # Use as many jobs as CPU cores, disable TODO warnings
|
||||||
|
# entry: pylint -j 0 -d W0511
|
||||||
|
# language: system
|
||||||
|
# types_or: [python, pyi]
|
||||||
|
|
||||||
|
# # Checking that LaTeX compiles
|
||||||
|
# - repo: local
|
||||||
|
# hooks:
|
||||||
|
# - id: latexmk
|
||||||
|
# name: latexmk
|
||||||
|
# entry: latexmk -quiet
|
||||||
|
# language: system
|
||||||
|
# types: [text, tex]
|
||||||
|
|
||||||
|
# Fedora: perl-Image-ExifTool
|
||||||
|
# - repo: local
|
||||||
|
# hooks:
|
||||||
|
# - id: exiftool
|
||||||
|
# name: Remove all EXIF metadata using exiftool
|
||||||
|
# entry: exiftool -all=
|
||||||
|
# language: system
|
||||||
|
# types: [image]
|
||||||
|
@ -1,2 +1 @@
|
|||||||
exec --no-startup-id wlsunset -l 60.46742 -L 26.94508 -t 1000
|
exec --no-startup-id wlsunset -l 60.46742 -L 26.94508 -t 1000
|
||||||
exec --no-startup-id env DARKMAN_LAT=60.46742 DARKMAN_LNG=26.94508 darkman run
|
|
||||||
|
@ -1,2 +1 @@
|
|||||||
exec --no-startup-id wlsunset -l 60.15937 -L 24.87530 -t 1000
|
exec --no-startup-id wlsunset -l 60.15937 -L 24.87530 -t 1000
|
||||||
exec --no-startup-id env DARKMAN_LAT=60.15937 DARKMAN_LNG=24.87530 darkman run
|
|
||||||
|
@ -11,7 +11,6 @@ ExecStart=-/usr/bin/systemctl restart yggdrasil.service
|
|||||||
# If they somehow managed to not start already
|
# If they somehow managed to not start already
|
||||||
ExecStart=-/usr/bin/systemctl enable --now unbound.service
|
ExecStart=-/usr/bin/systemctl enable --now unbound.service
|
||||||
ExecStart=-/usr/bin/systemctl enable --now systemd-resolved.service
|
ExecStart=-/usr/bin/systemctl enable --now systemd-resolved.service
|
||||||
ExecStart=-/usr/sbin/tlp setcharge
|
|
||||||
User=root
|
User=root
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
|
12
rc/bashrc
12
rc/bashrc
@ -301,8 +301,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
|||||||
|
|
||||||
##### Aliases RJ706I #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
# To get sudo work with aliases.
|
||||||
alias sudo="\sudo --preserve-env=tmux"
|
alias sudo="\sudo "
|
||||||
|
|
||||||
# Moving between directories:
|
# Moving between directories:
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
@ -442,11 +442,9 @@ alias ex-tarbz2="tar xfvj "
|
|||||||
# To have less handle ls colours
|
# To have less handle ls colours
|
||||||
alias less="less -R "
|
alias less="less -R "
|
||||||
|
|
||||||
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
# "su -" with/without sudo
|
||||||
# instead.
|
alias ssu="sudo su -"
|
||||||
alias ssu="sudo -i"
|
alias suu="su -"
|
||||||
alias sui="sudo -i"
|
|
||||||
#alias suu="su -"
|
|
||||||
|
|
||||||
# systemd runlevels/targets
|
# systemd runlevels/targets
|
||||||
alias currenttargets="systemctl list-units --type=target"
|
alias currenttargets="systemctl list-units --type=target"
|
||||||
|
12
rc/zshrc
12
rc/zshrc
@ -267,8 +267,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
|||||||
|
|
||||||
##### Aliases RJ706I #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
# To get sudo work with aliases.
|
||||||
alias sudo="\sudo --preserve-env=tmux"
|
alias sudo="\sudo "
|
||||||
|
|
||||||
# Moving between directories:
|
# Moving between directories:
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
@ -436,11 +436,9 @@ alias history="history -i "
|
|||||||
# To have less handle ls colours
|
# To have less handle ls colours
|
||||||
alias less="less -R "
|
alias less="less -R "
|
||||||
|
|
||||||
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
# "su -" with/without sudo
|
||||||
# instead.
|
alias ssu="sudo su -"
|
||||||
alias ssu="sudo -i"
|
alias suu="su -"
|
||||||
alias sui="sudo -i"
|
|
||||||
#alias suu="su -"
|
|
||||||
|
|
||||||
# Who command which I use with Conky
|
# Who command which I use with Conky
|
||||||
alias cwho="who -H -w -u"
|
alias cwho="who -H -w -u"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user