Skip to content

Instantly share code, notes, and snippets.

View xmorave2's full-sized avatar

Josef Moravec xmorave2

View GitHub Profile
@radiuscz
radiuscz / antibot.sh
Last active June 12, 2024 21:18
VuFind - přetížení roboty Semrush, Ahrefs, BLEX
#!/bin/bash
sed -i 's/# Uncomment the following lines/BrowserMatchNoCase SemrushBot|AhrefsBot|BLEXBot|AspiegelBot|SEOkicks|PetalBot|YandexBot|bingbot|DotBot|MJ12bot|Seekport|Adsbot|Amazonbot|DataForSeoBot|seoscanners|uni-leipzig|Turnitin|Bytespider|Barkrowler|serpstatbot|ImagesiftBot|ClaudeBot bad_bot|facebookexternalhit|FriendlyCrawler\n Order Deny,Allow\n Deny from env=bad_bot\n\n # Uncomment the following lines/' /usr/local/vufind2/local-*/httpd-vufind.conf
@jajm
jajm / git-bz-rebase
Last active March 1, 2021 12:42
git-bz-rebase
#!/bin/sh
usage="Usage: git bz-rebase BUG_NUMBER"
if [ -z "$1" ]; then
echo "$usage" && exit 1
fi
if [ ! -x "$(which pup)" ]; then
echo "pup is required for this to work"