readarray -t var < <(command)
var=()
while IFS= read -r line; do
var+=( "$line" )
| #!/usr/bin/env bash | |
| set -e | |
| # references: | |
| # https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html | |
| # https://rodelllemit.medium.com/aws-pentesting-abusing-sts-sts-getfederationtoken-permission-68579c6b9a96 | |
| # https://github.com/b-b3rn4rd/awscli-console-plugin/blob/master/console.go | |
| # https://stackoverflow.com/questions/71758013 |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "os" | |
| ) | |
| func main() { | |
| ln, err := net.Listen("tcp", "") |
| #!/usr/bin/env bash | |
| PATH=/usr/local/bin:$PATH | |
| # https://en.wikipedia.org/wiki/Magdalena_rat | |
| RAT_ICON=iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAlmVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSATEAAgAAABEAAABah2kABAAAAAEAAABsAAAAAAAAAJAAAAABAAAAkAAAAAF3d3cuaW5rc2NhcGUub3JnAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALAAAAABAa5naAAAACXBIWXMAABYlAAAWJQFJUiTwAAADCGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yODg8L2V4aWY6UGl4ZWxZRGltZW5za |
| { | |
| "basics": { | |
| "name": "William A. Havanki, Jr.", | |
| "label": "", | |
| "picture": "", | |
| "email": "[email protected]", | |
| "website": "http://havanki.us/", | |
| "summary": "", | |
| "location": { | |
| "address": "1234 Test St.", |
| #!/usr/bin/env bash | |
| # Copyright 2017 William A. Havanki, Jr. | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| #!/bin/bash | |
| protected_branch='master' | |
| current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
| remote_name=$1 | |
| if [[ $remote_name != "origin" ]]; then | |
| exit 0 | |
| fi |
| Observed in monitor: | |
| Unexpected throwable while invoking! | |
| java.lang.OutOfMemoryError: Java heap space | |
| at java.util.Arrays.copyOf(Arrays.java:2786) | |
| at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94) | |
| at org.apache.thrift.transport.TFramedTransport.write(TFramedTransport.java:146) | |
| at org.apache.thrift.protocol.TCompactProtocol.writeBinary(TCompactProtocol.java:342) | |
| at org.apache.thrift.protocol.TCompactProtocol.writeBinary(TCompactProtocol.java:337) | |
| at org.apache.accumulo.core.data.thrift.TKeyValue$TKeyValueStandardScheme.write(TKeyValue.java:465) |
| /* | |
| * Current getMetadataTable() method. This is hard to test because it requires a real HdfsZooInstance object. | |
| */ | |
| public synchronized static Writer getMetadataTable(Credentials credentials) { | |
| Writer metadataTable = metadata_tables.get(credentials); | |
| if (metadataTable == null) { | |
| metadataTable = new Writer(HdfsZooInstance.getInstance(), credentials, MetadataTable.ID); | |
| metadata_tables.put(credentials, metadataTable); | |
| } | |
| return metadataTable; |
| #!/bin/sh | |
| echo "What should the Application be called (e.g. GCal)?" | |
| read inputline | |
| name="$inputline" | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url="$inputline" |