show dbs
This file contains 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
from django.apps import apps | |
app_config = apps.get_app_config('mainApp') | |
LogLine = app_config.get_model('ModelName') |
This file contains 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 | |
# | |
# Goal: Make backup of mysql databases for magento stores | |
# Created by: Samuel Maciel Sampaio [20120901] [20140321] | |
# Contact: [email protected] <smktecnologia.com.br> | |
# Needed Applications: | |
# - mysql | |
# - mysqldump | |
# - s3put |
This file contains 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# | |
# | |
# check_git_remote_changes.sh | |
# By: Samuel Maciel Sampaio <20140115> | |
# | |
# Cron Job like git hook, to inform the Jenkins|Hudson | |
# ScriptTrigger Plugin to do a build. | |
# Plugin: https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin | |
GIT_REPO_FOLDER=$1 |