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
| import thesaurus as th | |
| wordlist = [] | |
| with open('test.txt') as f: | |
| wordlist = ([word for line in f for word in line.split()]) | |
| changedw = [] | |
| for word in wordlist: | |
| tmpword = th.Word(word).synonyms(relevance=3) | |
| if not tmpword: |
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 | |
| for method in GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE; do | |
| echo curl -v -X $method $1 | |
| done |
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
| #for debian systems try | |
| cat /etc/*_version | |
| #for red hat based | |
| cat /etc/*-release | |
| #other possibilities that work in multiple ones | |
| cat /etc/os-release | |
| lsb_release -a | |
| hostnamectl |
NewerOlder