Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'| /* | |
| * Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
| * These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
| * @author: https://gist.github.com/nhoizey/4060568 | |
| * Modified By: [email protected] | |
| * CHANGELOG: new viewports | |
| * Usage: | |
| * $ casperjs screenshots.js http://example.com | |
| */ |
Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'| #!/bin/bash -eo pipefail | |
| ## Allows for creation of "Basic" DNS records in a Route53 hosted zone | |
| function main() { | |
| record_name=$1 | |
| record_value=$2 | |
| [[ -z $record_name ]] && echo "record_name is: $record_name" && exit 1 | |
| [[ -z $record_value ]] && echo "record_value is: $record_value" && exit 1 |
| #!/bin/sh | |
| set -e | |
| HOST=localhost | |
| DB=test-entd-products | |
| COL=asimproducts | |
| S3PATH="s3://mongodb-backups-test1-entd/$DB/$COL/" | |
| S3BACKUP=$S3PATH`date +"%Y%m%d_%H%M%S"`.dump.gz | |
| S3LATEST=$S3PATH"latest".dump.gz | |
| /usr/bin/aws s3 mb $S3PATH |
| #!/usr/bin/env python | |
| from __future__ import with_statement | |
| import contextlib | |
| import logging | |
| import os | |
| import sys | |
| import urllib2 | |
| from boto.ec2.connection import EC2Connection |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/ecdsa" | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "crypto/x509/pkix" |
| tell application "Flint" to activate -- needs to be in front | |
| tell application "System Events" to tell application process "Flint" | |
| try | |
| get properties of window 1 | |
| set size of window 1 to {700, 800} | |
| set position of window 1 to {1700, 300} | |
| end try | |
| end tell | |
| tell application "Adium" to activate -- needs to be in front |
When you set Let's Encrypt up, you will:
domain.keydomain.crtThe domain.key file is for your eyes only; you should keep it safe where you run taskd
and set server.key to point to it.
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |