182 karma · joined Feb 14, 2020 (6y ago) · 113 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
function cd { builtin cd "$@" && [ -d .git ] && git pull || true; exa -all --group-directories-first; }
alias acp='git add -u &&-c "git log --color --pretty=format:\"%s\" --abbrev-commit -- |>/tmp/git_log_sk && git commit --gpg-sign --edit -F /tmp/git_log_sk && rm /tmp/git_log_sk" && git push -u
origin HEAD'
The cd automatically pulls if it's a git repo.
The acp is shorthand for "add+commit+push" with sk as a fuzzy finder for a commit message editing (vim integrations).comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Spoiler: I wrote it.
comment 2y ago · link · parent
# /etc/pam.d/sudo
auth optional pam_faildelay.so delay=5000000
auth [success=1 default=ignore] pam_yubico.so authfile=/home/user/auth_file id=16
session required pam_env.so readenv=1 user_readenv=0
session required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0
@include common-auth
@include common-account
@include common-session-noninteractive
# /etc/pam.d/sshd auth optional pam_faildelay.so delay=5000000
auth requisite pam_yubico.so authfile=/home/user/auth_file id=16 debug
account include base-account
auth required pam_env.so
auth required pam_nologin.so successokcomment 3y ago · link · parent
That's fine.
The scope of it, the way I understood it, was for educational purposes. To that extent, a simple disclaimer "Only run this in a sanbox you can afford to lose or throw away" would have been sufficient.
OP, nice work anyway!
comment 3y ago · link · parent
These were more of a template on how to develop, not a concrete recipe. Scrum then established a process where there was need for a family of processes, continuously evolving, ever changing.
The very fact that "you absolutely have to have a specific ceremony (i.e.: Retro when no topics)" is a red flag which imho puts the cart before the horse.
Why is there a "Scrum Master" anyway, if individuals are encouraged to interact and own the process? Suppose an individual wants to change the process, and reaches consensus within the team/community. Why would a Scrum Master / Manager even be able to veto any decision?
Why is there a Sprint when SW development is actually a marathon? Uncle Bob talks about this in several of his Clean Methodology books.
I don't think that Agile is dead [1], although it has been taken over by people eager to sell you a *cough* certification (Scrum or any other). It's not dead because its genius is that it's constantly evolving, and you can always interpret it differently since it's only a template. Scrum, on the other hand.. well..
For the future, I look forward to not putting an equal sign between Scrum and Agile, even though apparently Scrum is how you "do" Agile, according to the industry.
[1] https://www.simplethread.com/agile-at-20-the-failed-rebellio...
comment 3y ago · link · parent
Perhaps somebody can confirm if it's a good idea or not, but I like to generate only 1 emergency code for Authenticator (the least) and then delete that line in ~/.google-authenticator. Also, permissions of 400.
In case interested, check it out in code here: https://github.com/mihaigalos/config/blob/main/services/pam/...
comment 3y ago · link · parent
* Using Yubikey PAM always as a 2FA for ssh,sudo (also on every Linux in my home network).
* Always require authentication on each sudo command (prevents escalating once and then reusing privileges).
* Only running Docker with sudo as recommended (requires 2FA now).
* Closing all traffic other than services I need with nftables.
Regularly look at the journalctl for suspicious activity.
comment 3y ago · link · parent
comment 3y ago · link · parent
See here if interested: https://github.com/mihaigalos/pass
comment 3y ago · link · parent
Besides, a language for smart contracts that is built around the domain is easier to work with than a general-purpose one. So your Q would then be: why not something like Solidity or similar? - perhaps somebody else can elaborate.