Skip to content

Instantly share code, notes, and snippets.

View bigdatalyn's full-sized avatar
🗓️
Focusing

bigdatalyn bigdatalyn

🗓️
Focusing
View GitHub Profile
@bigdatalyn
bigdatalyn / README.md
Created December 11, 2019 08:58 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@bigdatalyn
bigdatalyn / autodeny.sh
Created December 12, 2019 02:55 — forked from sparkydogX/autodeny.sh
将ssh登录错误次数过多的ip加入黑名单
#! /bin/bash
cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}' > /usr/local/bin/black.list
for i in `cat /usr/local/bin/black.list`
do
IP=`echo $i |awk -F= '{print $1}'`
NUM=`echo $i|awk -F= '{print $2}'`
if [ ${#NUM} -gt 1 ]; then
grep $IP /etc/hosts.deny > /dev/null
if [ $? -gt 0 ];then
echo "sshd:$IP:deny" >> /etc/hosts.deny