Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eagleEggs/7426d8dcc07acd0b5f35131c029db880 to your computer and use it in GitHub Desktop.
Save eagleEggs/7426d8dcc07acd0b5f35131c029db880 to your computer and use it in GitHub Desktop.
quick JSON dump setup
import json
config = {
# inputs:
'platform': 'Firefox',
'url': 'https://yahoo.com',
'title': 'Testing',
'engineer': '',
'repository': 'c:',
'database_ip': '',
'database_port': '3306',
'database_name': '',
'database_username': '',
'database_password': '',
'email_from': '',
'email_to': '',
'email_username': '',
'email_password': '',
# checkboxes:
'sql': '1', # SQL database connection
'sl': '1', # sideload mods usage
'email_check': '0',
'graph_check': '0',
'pdf_check': '1',
'html_check': '1'
}
with open("database/ta.config", 'w') as config_file:
json.dump(config, config_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment