Protect your server with a strong iptables rules and ipset lists.
apt install ipset
(async function(){ | |
const endpointShifts = 'https://api.factorialhr.com/attendance/shifts'; | |
const endpointPeriods = 'https://api.factorialhr.com/attendance/periods'; | |
const url = window.location.href.split('/'); | |
const month = url.pop(); | |
const year = url.pop(); | |
const times = [[ '08:00', '14:00' ], [ '15:30', '17:30' ]]; |
<? | |
// | |
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
// | |
// File: twitterFollowerCuratorBot.php | |
// | |
// Created: May 2021 | |
// License: MIT | |
// |
# Save on /usr/local/bin/apt-dist-upgrade with 700 permissions to root | |
# Execute: sudo apt-dist-upgrade | |
export DEBIAN_FRONTEND=noninteractive | |
export NEEDRESTART_MODE=a | |
export DEBIAN_PRIORITY=critical | |
apt clean | |
apt autoclean |
#!/bin/bash | |
# ------------------------------------- | |
# Script to do incremental rsync backups | |
# into a local computer | |
# | |
# This script is freely distributed under the GPL | |
# ------------------------------------- |
## User installation: | |
# | |
# 1) Append to user file ~/.bashrc | |
# | |
# Wide System installation: | |
# | |
# 1) Create /etc/bash.bashrc.d folder | |
# 2) Paste this file into /etc/bash.bashrc.d/custom.sh file | |
# 3) Append ". /etc/bash.bashrc.d/custom.sh" at end of /etc/bash.bashrc file | |
# |
#!/bin/bash | |
# ------------------------------------- | |
# Databases backup with X days storage history | |
# | |
# User executing this script must have FULL permissions | |
# to mysql and mysqldump | |
# | |
# Use $HOME/.my.cnf to store MySQL auth | |
# |
#!/bin/bash | |
# ------------------------------------- | |
# Script to do incremental rsync backups | |
# from a central backup server | |
# | |
# This script is freely distributed under the GPL | |
# ------------------------------------- | |
# ------------------------------------- |
#!/bin/bash | |
if [ "`whoami`" != 'root' ]; then | |
echo "" | |
echo "This script only can be executed by root" | |
echo "" | |
exit 1 | |
fi |
#/bin/sh | |
if [ "`whoami`" != 'root' ]; then | |
echo '' | |
echo 'Only root can execute this script' | |
echo '' | |
exit 1 | |
fi |