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
| ### Keybase proof | |
| I hereby claim: | |
| * I am jeremy-page on github. | |
| * I am jeremyinnc (https://keybase.io/jeremyinnc) on keybase. | |
| * I have a public key ASAtYlhP6oP3hzKSeiTIDjaj8pxyDEhDlxvzpAOANWQ_Owo | |
| To claim this, I am signing this object: |
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 boto3 | |
| client = boto3.client('route53') | |
| def add_cname_record(source, target): | |
| try: | |
| response = client.change_resource_record_sets( | |
| HostedZoneId='<hosted zone id>', | |
| ChangeBatch= { | |
| 'Comment': 'add %s -> %s' % (source, target), |
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
| Edit the gmetad.conf file of Ganglia to include the following values: | |
| carbon_server: "localhost" | |
| carbon_port: 3000 | |
| carbon_protocol udp | |
| carbon_timeout 500 | |
| Edit the influxdb.conf file of InfuxDB to include the following values: |
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
| Edit the gmetad.conf file of Ganglia to include the following values: | |
| carbon_server: "localhost" | |
| carbon_port: 3000 | |
| carbon_protocol udp | |
| carbon_timeout 500 | |
| Edit the influxdb.conf file of InfuxDB to include the following values: |
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
| // Creating a file in $JENKINS_HOME/init.groovy.d/<file>.groovy | |
| // will make give you a few minutes after Jenkins boots before it trys | |
| // to do work | |
| import jenkins.model.Jenkins | |
| import hudson.security.ACL | |
| // Go into quiet mode | |
| Jenkins.instance.doQuietDown() |
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
| aws emr describe-cluster --cluster-id <cluster-id> |jq '.Cluster.InstanceGroups[1].AutoScalingPolicy' |
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 out | |
| def config = new HashMap() | |
| def bindings = getBinding() | |
| config.putAll(bindings.getVariables()) | |
| out = config['out'] | |
| out.println "Printed do Jenkins console." |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am jeremy-page on github. | |
| * I am jeremypage (https://keybase.io/jeremypage) on keybase. | |
| * I have a public key ASCcgQleXSLAHh6saunh5uveK92rRj1cqx8GWMXUWTLsHgo | |
| To claim this, I am signing this object: |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am jeremy-page on github. | |
| * I am jeremypage (https://keybase.io/jeremypage) on keybase. | |
| * I have a public key ASCcgQleXSLAHh6saunh5uveK92rRj1cqx8GWMXUWTLsHgo | |
| To claim this, I am signing this object: |
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
| # Alfresco users | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] .userName' | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] | "\(.userName),\(.firstName),\(.lastName),\(.email)"' | |
| # Alfresco groups | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] .shortName' | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] | "\(.shortName),\(.fullName),\(.displayName)"' |