profile
viewpoint
Bruce Edge bedge Next Issue Media Calabasas, CA

bedge/dotfiles 2

A set of vim, zsh, git, and tmux configuration files.

bedge/bullet-train.zsh 0

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin

bedge/cftpl 0

Templates and Management for AWS CloudFormation

bedge/EasyClip 0

Simplified clipboard functionality for Vim

bedge/examples 0

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework and AWS Lambda

bedge/flask-restplus 0

Fully featured framework for fast, easy and documented API development with Flask

bedge/git-workshop 0

This has been relocated to <https://github.com/github/githubschool>

bedge/jdeb 0

This library provides an Ant task and a Maven plugin to create Debian packages from Java builds in a truly cross platform manner.

issue commentzdharma/zinit

zi update fails building zsh on mac

Is there a reason I need to use any zinit-embedded zsh builder? Can I not just remove the zsh build from the zinit cfg?

bedge

comment created time in 22 days

issue commentzdharma/zinit

zi update fails building zsh on mac

Here's what I get:

[I] ➜ zi recall zsh
.zinit-recall:45: command not found: +zinit-deploy-message
No such plugin or snippet

~ via p3
[I] ➜ # No Ice modifiers

It's odd that the last bit, '# No Ice modifiers' is left after the prompt returns, as if queued up for execution.

eg: hitting <return> afterwards yields:

[I] ➜ # No Ice modifiers
zsh: bad pattern: #
bedge

comment created time in 23 days

issue commentzdharma/zinit

zi update fails building zsh on mac

Yes, I have a zsh src dir:

[I] ➜ zinit cd  zsh

zsh on  master [?] via p3

zsh on  master [?] via p3
[I] ➜ pwd
/Users/edgeb1/.zinit/plugins/zsh

Is there way to transition back to the brew zsh config?

I fully admit to cargo-culting a snazzy zinit cfg from someone else, but I'm that deep into it that I feel the need to build my own zsh binary.

bedge

comment created time in 23 days

issue commentzdharma/zinit

zi update fails building zsh on mac

zsh was Installed via homebrew. I did wonder why the zi update was trying to rebuild zsh as well.

Maybe that's the real issue, leave zsh alone if installed through other means?

bedge

comment created time in 23 days

issue openedzdharma/zinit

zi update fails building zsh on mac

Describe the bug

zinit update

fails with

[I] ➜ zinit update
Assuming --all is passed
Note: updating also unloaded plugins
Updating docker/compose
Binary release already up to date (version: 1.26.0)
Updating junegunn/fzf-bin
Binary release already up to date (version: 0.21.1)
Updating sindresorhus/pure
Updating tj/git-extras
Updating trapd00r/LS_COLORS
Updating vim/vim
Updating zdharma/fast-syntax-highlighting
Updating zdharma/history-search-multi-word
Updating zinit-zsh/z-a-as-monitor
Updating zinit-zsh/z-a-bin-gem-node
Updating zinit-zsh/z-a-patch-dl
Updating zinit-zsh/zinit-console
Updating zsh
configuring for zsh 5.8.0.2-dev
checking build system type... x86_64-apple-darwin18.7.0
checking host system type... x86_64-apple-darwin18.7.0
checking for gcc... gcc
checking whether the C compiler works... yes

....

/usr/local/opt/coreutils/libexec/gnubin/install -c  zle.so /Users/edgeb1/.zinit/polaris/lib/zsh/5.8.0.2-dev/zsh/zle.so
/bin/sh ../../mkinstalldirs /Users/edgeb1/.zinit/polaris/lib/zsh/5.8.0.2-dev/zsh
/usr/local/opt/coreutils/libexec/gnubin/install -c  zleparameter.so /Users/edgeb1/.zinit/polaris/lib/zsh/5.8.0.2-dev/zsh/zleparameter.so
if test x/Users/edgeb1/.zinit/polaris/share/zsh/5.8.0.2-dev/functions != x && test x/Users/edgeb1/.zinit/polaris/share/zsh/5.8.0.2-dev/functions != xno; then \
          test x/Users/edgeb1/.zinit/polaris/share/zsh/site-functions != xno && \
            /bin/sh ./mkinstalldirs /Users/edgeb1/.zinit/polaris/share/zsh/site-functions; \
          sdir_top="." fndir="/Users/edgeb1/.zinit/polaris/share/zsh/5.8.0.2-dev/functions" dir_top="." \
          scriptdir="/Users/edgeb1/.zinit/polaris/share/zsh/5.8.0.2-dev/scripts" runhelpdir="/Users/edgeb1/.zinit/polaris/share/zsh/5.8.0.2-dev/help" \
          FUNCTIONS_SUBDIRS="no" \
          INSTALL_DATA="/usr/local/opt/coreutils/libexec/gnubin/install -c -m 644" \
          INSTALL_PROGRAM="/usr/local/opt/coreutils/libexec/gnubin/install -c" \
          DESTDIR="" VERSION="5.8.0.2-dev" \
          /bin/sh ./Config/installfns.sh || exit 1; \
        fi; \
        exit 0
/bin/sh ../mkinstalldirs /Users/edgeb1/.zinit/polaris/share/man/man1
for file in zsh.1 zshbuiltins.1 zshcalsys.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 zshoptions.1 zshparam.1 zshroadmap.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 zsha
ll.1; do \
            test -s $file || exit 1; \
            /usr/local/opt/coreutils/libexec/gnubin/install -c -m 644 $file /Users/edgeb1/.zinit/polaris/share/man/man1/`echo $file | sed 's|zsh|zsh|'` || exit 1; \
        done
make[1]: *** [install.man] Error 1
make: *** [install.man] Error 2
Updating zsh-users/zsh-autosuggestions
Updating zsh-users/zsh-completions
Updating zsh-users/zsh-syntax-highlighting

To Reproduce

zinit update

Expected behavior Completes without error

Versions:

  • $ZSH_VERSION == ...

[I] ➜ zsh --version zsh 5.8 (x86_64-apple-darwin18.7.0)

  • Operating system name and version (uname -a): ...

[I] ➜ uname -a Darwin edgeb1-16G8WL 18.7.0 Darwin Kernel Version 18.7.0: Mon Apr 27 20:09:39 PDT 2020; root:xnu-4903.278.35~1/RELEASE_X86_64 x86_64 i386 MacBookPro11,4 Darwin

created time in 23 days

pull request commenttmux-plugins/tmux-logging

Save scrollback and start logging as single function

@codydiehl, I agree completely. This PR was a quick hack to add a missing toggle. I expect there's more than one case it's missing. Glad to see it's getting a second look.

bedge

comment created time in a month

issue commentzsa/wally

Error while rebooting the device

This may be more help, the dtrace output of a full run, not just the bit after it hangs like I attached above. wally-dtrace.txt

FredricW

comment created time in a month

issue commentzsa/wally

Error while rebooting the device

Same issue with mid 2015 macbook pro, mojave 10.14.6 Using hub in HP HC270cr monitor

FredricW

comment created time in a month

startedmludvig/aws-utils

started time in a month

issue commentflosell/iam-policy-json-to-terraform

Superfluous $$'s and quotes

Hi @flosell, Agreed, re-implementing something handled by the terraform's 0.12upgrade command seems wasteful. Maybe that's usable as a shim to cleanup the output?

Thanks for the link on the hashicorp VCS plugin info. I had read previously that they had little interest in owning it. I was also sharding my loyalties between vsc and intellij as their TF plugin is 0.12 compatible today.

Fantastic to see the continued interest in these small (albeit less so as time goes on) but vital tools.

bedge

comment created time in a month

issue commentflosell/iam-policy-json-to-terraform

Superfluous $$'s and quotes

Hi @flosell, yes, you are entirely correct. Makes complete sense given that I'm misusing the utility.

Here's a fe wmore use cases I can think of - In-place re-write of existing tf files to migrate the heredoc json to the new preferred aws_iam_policy_document format. Have to fudge the names for the aws_iam_policy_document elements, although a generated name would be hard to complain about.

Or, as a vsc or intellij plugin where you could highlight the heredoc in the editor, give it a name (for the aws_iam_policy_document) and have it do the transformation in-place in the editor.

Regardless, there's nothing else like this, and even with the manual tweaks, it's a big time saver and deserves more widespread adoption. The heredoc json format is less than optimal as suppresses any form of IDE edit-time syntax checking.

Your effort is very much appreciated.

bedge

comment created time in 2 months

startedflosell/iam-policy-json-to-terraform

started time in 2 months

issue commentmicrosoft/vscode

Allow tabs to wrap to multi-line

Re:

Highly-condensed version of wrapping tabs using @stevenlaidlaw approach... some space lost to the right due to editor commands, but seeing the tabs all at once is worth it 😃

.tabs-and-actions-container>.monaco-scrollable-element {
    height: auto !important;
}

.tabs-and-actions-container>.monaco-scrollable-element>.tabs-container {
    height: auto !important;
    flex-wrap: wrap;
}

.tabs-and-actions-container>.monaco-scrollable-element>.tabs-container .label-description
 {
    margin-left: 0;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab .monaco-icon-label:before {
    height: 35px;
}

.monaco-icon-label>.monaco-icon-label-container {
    flex-direction: column-reverse;
    display: flex;
}

.monaco-icon-label:before {
    background-size: 20px;
    width: 20px;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab {
    width: 80px;
    min-width: fit-content;
    min-width: -moz-fit-content;
    flex-shrink: 0;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close {
    width: 15px;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close .action-label {
    margin-right: 0;
}

image

@DLiblik I like the idea, but there's too much padding around each filename, any suggestion for compressing a bit? Also, the wrapping is non-optimal:

Screen Shot 2020-05-15 at 7 45 41 AM

I know it's the toolbar that's causing the wrapping issue, and I've been using this as a console cmd to remove it:

[...document.querySelectorAll('.editor-actions')].map(a => a.style.display = 'none')

But if we're wrapping, it would be preferable to keep the toolbar and extend to the full width below it.

illz

comment created time in 2 months

issue openedflosell/iam-policy-json-to-terraform

Superfluous $$'s and quotes

Found a couple of cases where there's extra $'s and "'s being added.

Here's a sample input json:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetBucketLocation",
                "s3:GetObjectAcl",
                "s3:GetObject",
                "s3:ListBucket",
                "s3:ListBucketVersions",
                "s3:DeleteObject",
                "s3:DeleteObjectVersion"
            ],
            "Resource": [
                "arn:aws:s3:::${aws_s3_bucket.output.id}/*",
                "arn:aws:s3:::${aws_s3_bucket.output.id}"
            ]
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:GetObjectAcl",
                "s3:GetObject",
                "s3:ListBucket",
                "s3:ListBucketVersions",
                "s3:DeleteObject",
                "s3:DeleteObjectVersion"
            ],
            "Resource": [
                "arn:aws:s3:::${aws_s3_bucket.upload.id}/*",
                "arn:aws:s3:::${aws_s3_bucket.upload.id}"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
              "kms:Encrypt",
              "kms:Decrypt",
              "kms:ReEncrypt*",
              "kms:GenerateDataKey*",
              "kms:DescribeKey"
            ],
            "Resource": [
              "${aws_kms_key.key.arn}"
            ]
        }
    ]
}

and the resulting aws_iam_policy_document:

data "aws_iam_policy_document" "policy" {
  statement {
    sid    = "VisualEditor0"
    effect = "Allow"

    resources = [
      "arn:aws:s3:::$${aws_s3_bucket.output.id}/*",
      "arn:aws:s3:::$${aws_s3_bucket.output.id}",
    ]

    actions = [
      "s3:PutObject",
      "s3:GetBucketLocation",
      "s3:GetObjectAcl",
      "s3:GetObject",
      "s3:ListBucket",
      "s3:ListBucketVersions",
      "s3:DeleteObject",
      "s3:DeleteObjectVersion",
    ]
  }

  statement {
    sid    = "VisualEditor1"
    effect = "Allow"

    resources = [
      "arn:aws:s3:::$${aws_s3_bucket.upload.id}/*",
      "arn:aws:s3:::$${aws_s3_bucket.upload.id}",
    ]

    actions = [
      "s3:GetBucketLocation",
      "s3:GetObjectAcl",
      "s3:GetObject",
      "s3:ListBucket",
      "s3:ListBucketVersions",
      "s3:DeleteObject",
      "s3:DeleteObjectVersion",
    ]
  }

  statement {
    sid       = ""
    effect    = "Allow"
    resources = ["$${aws_kms_key.key.arn}"]

    actions = [
      "kms:Encrypt",
      "kms:Decrypt",
      "kms:ReEncrypt*",
      "kms:GenerateDataKey*",
      "kms:DescribeKey",
    ]
  }
}

Here's the diff of manual edits needed to fix the output:

[I] ➜ diff tenant-bucket-access.hcl.orig tenant-bucket-access.hcl
7,8c7,8
<       "arn:aws:s3:::$${aws_s3_bucket.output.id}/*",
<       "arn:aws:s3:::$${aws_s3_bucket.output.id}",
---
>       "arn:aws:s3:::${aws_s3_bucket.output.id}/*",
>       "arn:aws:s3:::${aws_s3_bucket.output.id}",
28,29c28,29
<       "arn:aws:s3:::$${aws_s3_bucket.upload.id}/*",
<       "arn:aws:s3:::$${aws_s3_bucket.upload.id}",
---
>       "arn:aws:s3:::${aws_s3_bucket.upload.id}/*",
>       "arn:aws:s3:::${aws_s3_bucket.upload.id}",
46c46
<     resources = ["$${aws_kms_key.key.arn}"]
---
>     resources = [ aws_kms_key.key.arn ]

created time in 2 months

issue openedawslabs/awscli-aliases

Anyone at the helm?

This is a great feature of the CLI, but it appears this repo has stagnated. Is there anyone managing this project?

While it's super-useful to add the "I need this now" feature, one needs some guidance to ensure some level of consistency.

Are there any other alias repos in existence?

created time in 2 months

startedawslabs/awscli-aliases

started time in 2 months

issue openedmicrosoft/vscode-pull-request-github

Self-hosted github auth fails for non-https instance.

The extension authentication fails for locally hosted github instances that are running over http.

When clicking on the "Sign into <my local github>" in the status bar, the generated URL is:

https://vscode-auth.github.com/authorize/?callbackUri=vscode-insiders://github.vscode-pull-request-github/did-authenticate%253FwindowId%253D10&scope=read:user%20user:email%20repo%20write:discussion&state=0a63e945-c153-4d99-82f3-153981269822&responseType=code&authServer=https://my.local.url/

while the actual configured URL is http://my.local.url/ not https://my.local.url/ Note the missing "s" on http.

Editing the URL to change https -> http, gets me one step further, in that I get a token, but that then fails to authenticate.

created time in 3 months

more