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 | |
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 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 | |
domains="domain1.xyz domain2.xyz" | |
for DOMAIN in ${domains}; do | |
puppet node deactivate ${DOMAIN} | |
puppet node clean ${DOMAIN} | |
done |
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 | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: check-fact <fact_name>" >&2 | |
exit 1 | |
fi | |
name=${1} | |
max_retries=60 |
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
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 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 | |
set -e | |
set -u | |
# brew install gource ffmpeg | |
user=<github_user/org> | |
repos="<repo1> <repo2> ... <repoN>" | |
rm -rf repos logs out |
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
set term png small size 800,600 | |
set output "command-ps-graph.png" | |
set ylabel "%CPU" | |
set y2label "MEM" | |
set ytics nomirror | |
set y2tics nomirror in | |
set yrange [0:*] |
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
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 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 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 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}]}' } |