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 gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
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
| I started getting the error below after upgrading to gpg (GnuPG) 2.1.21 . | |
| gpg: signing failed: Timeout | |
| gpg: signing failed: Timeout | |
| This was confusing at first, but the timeout was caused by gpg showing a password prompt that takes the full screen of the terminal, and after a period of time, it returned to the command line showing the timeout error. | |
| I didn't notice the password prompt at first because I was working on multiple terminals and only saw the timeout error at the end. | |
| Another error that I encountered earlier was: |
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
| Poor man's quick stats of git logs analysis | |
| =========================================== | |
| Retrieve git logs across multiple repositories, then count the number of commits made by any author: | |
| repoman exec 'git log' >> /tmp/gitlog.txt | |
| grep "Author: " /tmp/gitlog.txt | wc -l | |
| Count the commits by author: |
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
| ======================================================================== | |
| Step 1: Delete an existing doc in _replicator database. | |
| request: | |
| { method: 'POST', | |
| headers: | |
| { 'content-type': 'application/json', | |
| accept: 'application/json' }, | |
| uri: 'http://user:pass@localhost:5984/_replicator/_bulk_docs', | |
| body: '{"docs":[{"_id":"foo1","source":"http://user:pass@localhost:5984/mydb","target":"http://user:pass@localhost:5984/mydb2","continuous":true,"_rev":"59-abb0482eb5a5730d6a290a4c38206e96","_deleted":true}]}' } |
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
| variable "bucket_site" {} | |
| variable "region" {} | |
| variable "route53_domain_name" {} | |
| variable "route53_domain_zoneid" {} | |
| variable "route53_domain_alias_name" {} | |
| variable "route53_domain_alias_zoneid" {} | |
| provider "aws" { | |
| region = "${var.region}" | |
| } |
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
| Based on https://helpx.adobe.com/experience-manager/6-4/sites/administering/using/enabling-crxde-lite.html | |
| ================================================================================================ | |
| AEM 6.3 and AEM 6.2 | |
| ================================================================================================ | |
| [aem-6.3] curl -u admin:admin -F "jcr:primaryType=sling:OsgiConfig" -F "alias=/crx/server" -F "dav.create-absolute-uri=true" -F "dav.create-absolute-uri@TypeHint=Boolean" http://localhost:4502/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet | |
| <html> | |
| <head> | |
| <title>Content created /apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet</title> |
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
| kingkong:/tmp/gypfilecheck$ time couchtato iterate -u http://host/registry -p 5000 | |
| retrieved 5000 docs - 0 | |
| >> LDAP 1.1.4 has gypfile: true | |
| >> airtunes 0.1.3 has gypfile: true | |
| >> aligned-buffer 0.1.2 has gypfile: true | |
| >> allsync 0.0.3b has gypfile: true | |
| >> ancillary 2.0.0 has gypfile: true | |
| >> aplus 0.1.0 has gypfile: true | |
| >> base128 0.1.0 has gypfile: true | |
| >> bcrypt 0.7.5 has gypfile: true |
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
| The html page: | |
| <div class="app-page" data-page="blah"> | |
| <div class="app-topbar"> | |
| <div class="app-title">Blah</div> | |
| </div> | |
| <div class="app-content"> | |
| <ul id="somelist" class="app-list"> | |
| <li class="app-button" data-target="sometarget">Foo</li> | |
| </ul> |
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 | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: check-fact <fact_name>" >&2 | |
| exit 1 | |
| fi | |
| name=${1} | |
| max_retries=60 |
NewerOlder