This file contains hidden or 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
| export PS1='\e[1;35m\u\e[m@\h:\e[1;31m\w\e[m\n\$ ' |
This file contains hidden or 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
| cat json.file | python -m json.tool | less |
This file contains hidden or 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
| git clone --no-hardlinks path/to/file.git |
This file contains hidden or 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/bash | |
| #TO RUN | |
| # > ./dns_spf_expander.sh domain.com | |
| lookup_count=0 | |
| function spf_expand { | |
| for spf in $1 ; do | |
| if echo $spf | grep "include:" > /dev/null 2>&1 ; then | |
| ((lookup_count++)) |
This file contains hidden or 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
| validate score of email via: | |
| http://www.mail-tester.com/ | |
| email [email protected] (will send email report) | |
| validate SPF synatx with: | |
| http://www.kitterman.com/spf/validate.html? | |
| gapps validator: | |
| https://toolbox.googleapps.com/apps/checkmx/ |
This file contains hidden or 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
| > show binary logs; | |
| > purge binary logs to 'filename'; |
This file contains hidden or 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
| ADD RULE with PORT and IPADDRESS | |
| sudo iptables -A INPUT -p tcp -m tcp --dport port_number -s ip_address -j ACCEPT | |
| ADD RULE for PORT on all addresses | |
| sudo iptables -A INPUT -p tcp -m tcp --dport port_number --sport 1024:65535 -j ACCEPT | |
| DROP IPADRESS | |
| sudo iptables -I INPUT -s x.x.x.x -j DROP | |
| VIEW IPTABLES with rule numbers |
This file contains hidden or 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
| echo "3/2+1" | bc -l |
This file contains hidden or 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
| git init; git add .; git commit #current directory | |
| git fetch path/to/repo master:whatever-branch-name-you-want | |
| git merge whatever-branch-name-you-want |
This file contains hidden or 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
| postqueue -p #read queue headers | |
| postcat -q #{message_id} #read message | |
| postsuper -d ALL deferred #delete deferred |