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 | |
# Run using `source sts.sh MFA-CODE` | |
// TO BE SET | |
mfa-device="" | |
response=$(aws sts get-session-token --serial-number $mfa-device --token-code $1) | |
if [[ ! -z $response ]]; then |
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
task stopT(type: Exec){ | |
description="Stop T in blah blah blah" | |
commandLine 'bash' | |
args '-c', "lsof -i tcp:8443 | grep -v grep |awk 'NR!=1{ print \$2 }'| xargs kill -9" | |
doLast{ | |
println "Stopping : T balh blah blah balh" | |
} | |
} | |
task stopD(type: Exec){ |
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
<gedcom> | |
<indi id="@I0001@"> | |
<name>Elizabeth Alexandra Mary /Windsor/</name> | |
<sex>F</sex> | |
<birt> | |
<date>21 Apr 1926</date> | |
<plac>17 Bruton Street, London, W1</plac> | |
</birt> | |
<occu>Queen</occu> | |
<famc>@F0003@</famc> |
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
package org.bahmni.reports.util; | |
import net.sf.dynamicreports.jasper.builder.JasperReportBuilder; | |
import net.sf.dynamicreports.report.base.DRReport; | |
import net.sf.dynamicreports.report.base.column.DRColumn; | |
import net.sf.dynamicreports.report.builder.ReportBuilder; | |
import net.sf.dynamicreports.report.constant.PageType; | |
import net.sf.jasperreports.engine.JasperReport; | |
import org.apache.commons.collections.CollectionUtils; | |
import org.apache.commons.collections.Predicate; |
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
- name: Change ssl.conf file | |
blockinfile: | |
dest: /etc/httpd/conf.d/ssl.conf | |
marker: "#<!-- {mark} ANSIBLE MANAGED BLOCK erp-ssl -->" | |
insertafter: "#erp-ssl" | |
state: present | |
block: | | |
{% if openerp_url is defined %} | |
{% for erp_host in groups['bahmni-erp'] %} | |
{% if hostvars[erp_host].get('passive', 'no') == hostvars[item].get('passive', 'no') %} |