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
| #!/usr/bin/env python3 | |
| import crypt | |
| print( | |
| crypt.crypt( | |
| input(), | |
| crypt.mksalt( | |
| crypt.METHOD_SHA512 | |
| ) |
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
| curl -v -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Input.SendText","params":{"text":"This is the text we want to send","done":false},"id":1}' http://host:port/jsonrpc |
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 | |
| # tlsGen.sh | |
| # | |
| # Instructions: | |
| # ./tlsGen.sh <domain> | |
| domain=$1 | |
| openssl req -new -x509 -extensions v3_req -newkey rsa:8192 -nodes -days 3650 \ | |
| -subj "/O=${domain}/CN=*.${domain}/subjectAltName=DNS:*.${domain}/" \ |
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 | |
| pattern="$@" | |
| outputDir="0transcoded" | |
| mkdir "${outputDir}" | |
| for each in ${pattern}; do | |
| fileName="${each%.*}" |
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
| 'ud': function(from, to, argArray) { | |
| var help = 'ud - defines words using the Urban Dictionary.\n ud <word or phrase to define>'; | |
| var url = 'http://api.urbandictionary.com/v0/define?term=' + argArray.join('%20'); | |
| request(url, function (error, response, body) { | |
| if (!error && response.statusCode == 200) { | |
| definitions = JSON.parse(body); | |
| if (definitions.result_type != 'no_results') { | |
| bot.say(to, 'Urban Dictionary: ' + argArray.join(' ') + ' - ' + definitions.list[0].definition); | |
| } else { | |
| bot.say(to, 'Urban Dictionary: No result for ' + argArray.join(' ') + '.'); |