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 | |
domains="domain1.xyz domain2.xyz" | |
for DOMAIN in ${domains}; do | |
puppet node deactivate ${DOMAIN} | |
puppet node clean ${DOMAIN} | |
done |
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: |
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
# 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
>>> cat blah.js | |
var cp = require('child_process'); | |
var c = cp.exec('./blah.sh &', function (err) { | |
if (err) { | |
console.error('err: ' + err.message); | |
} else { | |
console.log('done'); | |
} | |
}); |