This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for if in `ls /sys/class/net`; do | |
I=0 | |
for q in `ls /sys/class/net/${if}/queues/tx-*/xps_cpus`;do | |
echo 2^${I}|bc > ${q} | |
I=${I}+1 | |
done | |
done | |
echo "obase=16;2^$(cat /proc/cpuinfo | grep ^processor|wc -l)-1"| bc > /sys/class/net/eth0/queues/rx-0/rps_cpus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for region in `aws ec2 describe-regions --query 'Regions[].RegionName' --output text`;do aws ec2 describe-volumes --region ${region} --filters Name=attachment.status,Values=detached;done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y kernel-devel-`uname -r` kernel-headers-`uname -r` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmpfs /var/cache/nginx tmpfs defaults,noatime,mode=1777,size=20% 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# C_INCLUDE_PATH=/usr/include/libev ./waf configure | |
Checking for program gcc,cc : ok /usr/bin/gcc | |
Checking for program cpp : ok /usr/bin/cpp | |
Checking for program ar : ok /usr/bin/ar | |
Checking for program ranlib : ok /usr/bin/ranlib | |
Checking for gcc : ok | |
Checking for library ev : ok | |
Checking for header ev.h : ok | |
Checking for library pthread : ok | |
Checking for header pthread.h : ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install cloud-utils-growpart -y | |
LC_ALL="en_US.UTF-8" growpart /dev/sda 1 | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, | |
Thank you for contacting us. We have received your request for authorization for penetration testing. | |
Your request as detailed below has been approved. | |
Your authorization number is: XXXXXXXXXX | |
As a reminder, | |
- you have agreed to abide by the Terms and Conditions and AWS’s Procedures Regarding the Use of Security Assessment Tools and Services. You can review what you have agreed to at https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/AWSSecurityPenTestRequest | |
- you have agreed to abide by Amazon Web Services Customer Agreement available at http://aws.amazon.com/agreement/ |
NewerOlder