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
| from django.core.management.base import BaseCommand | |
| from django.apps import apps | |
| from persons.models import Person, Organization | |
| import datetime | |
| from django.utils import timezone | |
| from django.contrib.contenttypes.models import ContentType | |
| from django.contrib.auth.models import Permission | |
| class Command(BaseCommand): |
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
| jenkins.model.Jenkins.getInstance().getUpdateCenter().getSites().findAll{ !it.data.warnings }.each { site -> | |
| site.updateDirectlyNow(hudson.model.DownloadService.signatureCheck) | |
| } | |
| hudson.model.DownloadService.Downloadable.all().each { downloadable -> | |
| downloadable.updateNow(); | |
| } | |
| def plugins = jenkins.model.Jenkins.instance.pluginManager.activePlugins.findAll { | |
| it -> it.hasUpdate() |
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
| esource "aws_cloudwatch_log_group" "entropy-engine-lambda" { | |
| name = "/aws/lambda/${aws_lambda_function.entropy-engine-lambda.function_name}" | |
| retention_in_days = local.log-retention | |
| tags = { | |
| branch = terraform.workspace | |
| project = var.project | |
| } | |
| } | |
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 groovy.io.FileType | |
| import groovy.xml.* | |
| def dirStr = "C:\\integration\\Pentaho\\Projects\\content\\public" | |
| def dir = new File(dirStr) | |
| def slurper = new XmlSlurper() | |
| def connFileMap = [:] | |
| File outputFile = new File("c:\\Users\\CMaggiul\\connections.csv") | |
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
| from logging import getLogger | |
| from django.core.management.base import BaseCommand | |
| from persons.models import StudentProfile | |
| import csv | |
| logger = getLogger(__name__) | |
| class Command(BaseCommand): | |
| def add_arguments(self, parser): |
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
| def xmlStr = ''' | |
| <solutions> | |
| <solution solutionName="XYZ.1052"> | |
| <settings/> | |
| </solution> | |
| <solution solutionName="XYZ.1012"> | |
| <settings/> | |
| </solution> | |
| <solution solutionName="XYZ.1053"> | |
| <settings/> |
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
| /** | |
| * @Author Chris Maggiulli | |
| * | |
| * This is an imperative ( scripted ) Jenkinsfile which will dynamically create nodes and run them in parallel. Modify the List of Hashmaps | |
| * to include the name of the node and the command you wish to run. | |
| * | |
| **/ | |
| node('master') { | |
| stage('orchestration') { | |
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
| /** | |
| * This script will print the job name and build number of all jobs in the last N days for all builds with a non null description. | |
| * This script is useful for locating builds that have been earmarked with a build description. | |
| * Example: Assume you have a build that runs every 2 minutes but 90% of the builds do not produce any artifacts. If you earmark the | |
| * builds that produce artifacts by setting a build description you can then use this script to locate all the artifact-producting builds. | |
| * | |
| * Note: We are filtering on build description, which is different from a projects description | |
| * | |
| */ |
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
| /** | |
| * @author Chris Maggiulli | |
| * @description This script will print the job name and build number of all jobs in the last N days. | |
| */ | |
| final jenkins = Jenkins.instance | |
| final lookBack = -1 // Number of days to look back | |
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 | |
| aws ecs run-task --task-definition appdev-trimesters-81tri --launch-type FARGATE --cluster ecs-appdev-1 --network-configuration '{"awsvpcConfiguration": {"subnets": ["subnet-054bdb3dc221f2a1b","subnet-040d311d49d9e266a","subnet-07deyac98cc06bddb","subnet-0012634yu8b87f579"],"securityGroups": ["sg-04b11d010f5725n91","sg-09ac8f259bvf43b5"],"assignPublicIp": "DISABLED"}}' |