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.
<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{ |
# The following goes into .zshrc and need 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 | |
echo ✨ Please execute \`nvm use\` to use\/install the correct node version! | |
echo |
<?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; | |
} |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
I hereby claim:
To claim this, I am signing this object: