A quick block for clients that bother you somehow or do malicious stuff.
sudo fail2ban-client status
Choose the jail you want to block the IP from/add it to.
| <div class="animate-pulse-bg from-transparent to-sky-300">Background pulse</div> |
| #!/bin/bash | |
| # | |
| # The group 'sftponly' needs to exist | |
| # $ groupadd sftponly | |
| # Update ssh to allow new group and use chroot | |
| # $ nano /etc/ssh/sshd_config | |
| # | |
| # Match Group sftponly | |
| # ChrootDirectory %h |
| <style> | |
| mark{ | |
| animation: 1.5s highlight 1.25s 1 normal forwards; | |
| background-color: none; | |
| background: linear-gradient(90deg, theme('colors.amber.200') 50%, theme('colors.transparent') 50%); | |
| background-size: 200% 100%; | |
| background-position: 100% 0; | |
| } | |
| @keyframes highlight{ |
| # [...your .zshrc file] | |
| # Append this to your .zshrc (you need to have zsh/oh my zsh installed 🙃) | |
| # Watch folder changes | |
| function chpwd { | |
| if [[ -e .nvmrc ]]; then | |
| # If above file is found inside folder, display the following | |
| echo | |
| echo ✨ nvmrc dotfile found |
| <?php | |
| /* | |
| This specific case creates a new route/URl to display Wordpress | |
| posts from a fixed category with a parameter-based taxonomy | |
| term with a custom template. | |
| Needs template file: custom-template_category-tax_term.php | |
| Inside the template you can fetch the query-var with: | |
| $wp_query->get('my_tax_query_var') |
| /* | |
| Creates a container around embeds | |
| */ | |
| function responsive_embed_wrapper($content) { | |
| return '<figure class="oembed-wrap">' . $content . '</figure>'; | |
| } | |
| add_filter('embed_oembed_html', 'responsive_embed_wrapper', 10, 3); |
| #!/bin/bash | |
| MOUNTPOINT="/some/mount-point" | |
| EMAIL="[email protected]" | |
| if cat /proc/mounts | grep ${MOUNTPOINT} > /dev/null; then | |
| echo "${MOUNTPOINT} already mounted." | |
| exit 0 | |
| fi |
| .hyphen-long-words{ | |
| hyphens: auto; | |
| overflow-wrap: break-word; | |
| } |