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
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
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
#!/bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: check-fact <fact_name>" >&2 | |
exit 1 | |
fi | |
name=${1} | |
max_retries=60 |
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
#!/bin/bash | |
user=<user> | |
pass=<pass> | |
base_url=<http://stash_host:stash_port> | |
project=<project> | |
repos="<repo1> <repo2> ... <repoN>" | |
permission=<REPO_READ|REPO_WRITE|REPO_ADMIN> | |
group=<group> |
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
var fs = require('fs'); | |
var http = require('http'); | |
var url = require('url'); | |
if (process.argv.length !== 3) { | |
console.error('Usage: node couchdb2couchpenter.js https://host:port'); | |
process.exit(1); | |
} | |
var _url = url.parse(process.argv[2]); |
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
> openssl s_client -connect registry.npmjs.org:443 -prexit | |
CONNECTED(00000003) | |
write:errno=54 | |
--- | |
no peer certificate available | |
--- | |
No client certificate CA names sent | |
--- | |
SSL handshake has read 0 bytes and written 130 bytes |
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
* [email protected] | |
- dependencies: | |
- async: ~0.9.0 | |
- bagofcli: ~0.2.0 | |
- bagofrequest: ~0.1.0 | |
- colors: ~1.0.3 | |
- lodash: ~2.4.1 | |
- prod: ~1.0.0 | |
- semver: ~4.1.0 | |
- devDependencies: |
NewerOlder