How do you append line continuation marks to a block of text at a fixed (maximum + 1) column?
e.g. turning this:
some_command argument
-o option1
--some-flag
-option 2
Into this:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsc1lsWeRLv16aYgtdO374wBRQ+T3w0tULJIjugzRzUOTV+YElWU0pHbPdBqpeKv/5Ab62wc1QD4j0ALi9qvBnVUvPd57zKdiUP7O31eEw9fuYwEP0Ru1nLVwLUmma8JodAiQ+Dw8iLQDEms++xbY0OwGLlQseFDhFoH9tP4VLYXbS/38bjG86sCuK+SLpmqYnCXi64V9SXZk1+JRI7rd0+8Re2T7YL7EqIIKrJIosJLw3Nign2D+6TrP3HnbEVURmKUQUayzS4+pbZ+vHm9XrPLSLpifd9BiETAXmnvrb1Qy8yzO3CjxiPZ3Z9rPlwE1DzKYyQglY5Gb/Jhj417c5Q== b@assaflavie.com |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsc1lsWeRLv16aYgtdO374wBRQ+T3w0tULJIjugzRzUOTV+YElWU0pHbPdBqpeKv/5Ab62wc1QD4j0ALi9qvBnVUvPd57zKdiUP7O31eEw9fuYwEP0Ru1nLVwLUmma8JodAiQ+Dw8iLQDEms++xbY0OwGLlQseFDhFoH9tP4VLYXbS/38bjG86sCuK+SLpmqYnCXi64V9SXZk1+JRI7rd0+8Re2T7YL7EqIIKrJIosJLw3Nign2D+6TrP3HnbEVURmKUQUayzS4+pbZ+vHm9XrPLSLpifd9BiETAXmnvrb1Qy8yzO3CjxiPZ3Z9rPlwE1DzKYyQglY5Gb/Jhj417c5Q== b@assaflavie.com |
exports.handler = (event, context, callback) => { | |
const msg = `Hello ${event.name || ‘World’}!`; | |
callback(null, { status: 200, body: msg }); | |
}; |
{ | |
"regions":[ | |
{ | |
"id":"us-east-1", | |
"name":"US East", | |
"location":"N. Virginia" | |
}, | |
{ | |
"id":"us-east-2", | |
"name":"US East", |
{ | |
"AWS Database Migration Service": { | |
StringPrefix: "dms", | |
Actions: ["AddTagsToResource", "CreateEndpoint", "CreateReplicationInstance", "CreateReplicationSubnetGroup", "CreateReplicationTask", "DeleteEndpoint", "DeleteReplicationInstance", "DeleteReplicationSubnetGroup", "DeleteReplicationTask", "DescribeAccountAttributes", "DescribeConnections", "DescribeEndpointTypes", "DescribeEndpoints", "DescribeOrderableReplicationInstances", "DescribeRefreshSchemasStatus", "DescribeReplicationInstances", "DescribeReplicationSubnetGroups", "DescribeReplicationTasks", "DescribeSchemas", "DescribeTableStatistics", "ListTagsForResource", "ModifyEndpoint", "ModifyReplicationInstance", "ModifyReplicationSubnetGroup", "RefreshSchemas", "RemoveTagsFromResource", "StartReplicationTask", "StopReplicationTask", "TestConnection"], | |
ARNFormat: "arn:aws:dms:<region>:<account>:<resource>", | |
ARNRegex: "arn:aws:dms:.+", | |
HasResource: !1 | |
}, | |
"Amazon Mobile Targeting": { | |
StringPref |
#!/bin/bash -e | |
# Requirements: | |
# - fzf | |
# - aws cli | |
# - jq | |
# Optional: | |
# - GNU Parallel (makes it faster) | |
#!/bin/bash | |
# Usage `./replace-asg-instances.sh my-asg-name` | |
# Will set all instances to Unhealthy, so they are replaced by the ASG. | |
# Notice this is meant to work with EC2 health-check ASG, not ELB health-checks. | |
if [[ $1 == "" ]]; then | |
echo Usage "./replace-asg-instances.sh my-asg-name" | |
exit 1 | |
fi |
node { | |
stage('build') { | |
git 'https://github.com/cloudshare/express-ws-chat.git' | |
cloudshareDockerMachine { | |
sh 'docker-compose build' | |
} | |
} | |
} |
How do you append line continuation marks to a block of text at a fixed (maximum + 1) column?
e.g. turning this:
some_command argument
-o option1
--some-flag
-option 2
Into this:
// ==UserScript== | |
// @name Google Search Result Markers | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds prefix to Google search result links, to make it easier to hit them with Vimium | |
// @author Assaf Lavie | |
// @match https://*.google.co.il/* | |
// @match https://*.google.com/* | |
// @require http://code.jquery.com/jquery-latest.js | |
// @grant none |