mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-04 05:07:20 +02:00
Compare commits
No commits in common. "ec235e7f9019311e9ac988604c1b070e9583f961" and "8586fd7dc108af86d3738cb521ec72ebd4522338" have entirely different histories.
ec235e7f90
...
8586fd7dc1
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,7 +14,6 @@
|
||||
!.nvmrc
|
||||
!.pre-commit-config.yaml
|
||||
!.prettierignore
|
||||
!.python-version
|
||||
!.renovate-shared.json*
|
||||
!.reuse
|
||||
|
||||
|
@ -10,10 +10,8 @@ ci:
|
||||
autoupdate_schedule: quarterly
|
||||
|
||||
default_language_version:
|
||||
node: "lts"
|
||||
# Remember .python-version !
|
||||
python: "3.12"
|
||||
ruby: ".ruby-version"
|
||||
node: lts
|
||||
ruby: .ruby-version
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
|
@ -1 +0,0 @@
|
||||
3.12.4
|
@ -1,8 +1,5 @@
|
||||
# Only let child processes to be debugged
|
||||
# https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
|
||||
#kernel.yama.ptrace_scope = 1
|
||||
# Only processes with CAP_SYS_PTRACE capability are allowed unless children
|
||||
# call PTRACE_TRACEME.
|
||||
kernel.yama.ptrace_scope = 2
|
||||
# Disable debuggers entirely. Cannot be unset [without reboot].
|
||||
#kernel.yama.ptrace_scope = 3
|
||||
# Disable debuggers entirely
|
||||
kernel.yama.ptrace_scope = 3
|
||||
|
1
etc/systemd/system/.gitignore
vendored
1
etc/systemd/system/.gitignore
vendored
@ -1 +0,0 @@
|
||||
ssh.service.d
|
@ -1,6 +0,0 @@
|
||||
[Service]
|
||||
# This drop-in will make the service deduplicate everything.
|
||||
# WARNING: This is most likely a bad idea. My excuse is this system being on
|
||||
# a small USB STICK with nothing important on it, what is yours?
|
||||
ExecStart=
|
||||
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/rootfs.hash /
|
@ -5,10 +5,8 @@ Wants=sysctl-p--system.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
TimeoutStartSec=infinity
|
||||
# - means it can fail, without failing those after it.
|
||||
# These aren't given --now as THEY WOULD INFINITE LOOP.
|
||||
ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.service
|
||||
ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.timer
|
||||
# - means it can fail, without failing those after it
|
||||
# I always want DNS.
|
||||
ExecStartPre=-/usr/bin/systemctl enable --now unbound.service
|
||||
ExecStartPre=-/usr/bin/systemctl enable --now systemd-resolved.service
|
||||
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||
|
@ -6,8 +6,6 @@ Type=oneshot
|
||||
TimeoutStartSec=infinity
|
||||
# - means it can fail, without failing those after it
|
||||
# Another attempt at ensuring Yggdrasil works with nordvpnd
|
||||
ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.service
|
||||
ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.timer
|
||||
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||
ExecStartPre=-/usr/bin/systemctl enable --now tlp
|
||||
ExecStart=-/usr/bin/systemctl restart yggdrasil.service
|
||||
|
@ -1 +0,0 @@
|
||||
sshd.service.d
|
@ -1 +0,0 @@
|
||||
../service.d/never-fail.conf
|
@ -1,6 +0,0 @@
|
||||
[Unit]
|
||||
Description=Disconnect and disable NordVPN on user systemd start
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/nordvpn-off
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Turn off NordVPN on login
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=1
|
||||
OnBootSec=2
|
||||
RandomizedDelaySec=3
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -1,10 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
Terminal=true
|
||||
Exec=kgx --command="sh --norc -c tmux"
|
||||
Name=Tmux in Console
|
||||
Name[fi]=Tmux Consolessa
|
||||
Comment=Command line autostart
|
||||
Comment[fi]=Komentorivin automaattikäynnistys
|
@ -311,7 +311,7 @@ fi
|
||||
|
||||
# https://github.com/pyenv/pyenv
|
||||
if [ -d ~/.pyenv/bin ]; then
|
||||
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
||||
PATH="$HOME/.pyenv/bin:$PATH"
|
||||
pyenv init > /dev/null 2>&1
|
||||
# Worth considering (and verifying before running)
|
||||
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -276,7 +276,7 @@ fi
|
||||
|
||||
# https://github.com/pyenv/pyenv
|
||||
if [ -d ~/.pyenv/bin ]; then
|
||||
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
||||
PATH="$HOME/.pyenv/bin:$PATH"
|
||||
pyenv init > /dev/null 2>&1
|
||||
# Worth considering (and verifying before running)
|
||||
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||||
|
@ -1,6 +1,3 @@
|
||||
# Workaround it appearing to break SSH especially on family PC
|
||||
@reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet"
|
||||
|
||||
# Ensure /etc/sysctl.d/ gets read
|
||||
@reboot /usr/sbin/sysctl -p --system >/dev/null 2>&1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user