profile
viewpoint
Ben Alman cowboy @toasttab Boston, MA http://benalman.com/ Principal Front End Engineer at Toast

cowboy/dotfiles 1403

My Ubuntu / OS X dotfiles.

cowboy/grunt 247

Grunt: a task-based command line build tool for JavaScript projects.

bocoup/chatter 205

A collection of useful primitives for creating interactive chat bots.

bocoup/deployment-workflow 89

Modern Web Deployment Workflow

cowboy/ed-rare-trade-route-generator 29

Elite: Dangerous Rare Trade Route Generator

cowboy/battlelog-hacks 12

Battlelog Hacks: EA's new Battlelog service is pretty awesome. Except when it isn't.

cowboy/D8 7

D8 - The next generation Date object for JavaScript

cowboy/code-problems 5

Common code problems solved using JavaScript - add your own problems and solutions!

cowboy/gaucho-old 5

Ruby + Git + Content = Gaucho

cowboy/benalman.com-idea 3

An experiment.

push eventcowboy/synology-update-plex

Ben Alman

commit sha 60844c9eee7b18ebb49b775f6774f81cff2cac4d

Add bug report issue template (#21)

view details

Ben Alman

commit sha 11a72952737d8b44c20e764482b76303608fce2f

Dump vars on error for easier debugging

view details

push time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha 9a2560e2d101cd69e99d010d6403dbd9e111ea59

Support i686 (x86) devices. Fixes #19 (#20)

view details

Ben Alman

commit sha 9c4a66957e591c96104ead6a542b1530b8894989

Dump vars on error for easier debugging

view details

push time in 7 days

delete branch cowboy/synology-update-plex

delete branch : cowboy-patch-1

delete time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha 60844c9eee7b18ebb49b775f6774f81cff2cac4d

Add bug report issue template (#21)

view details

push time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha e46294a9a3ec419fdb1efd89454c8e22e1c1dcbd

Update bug_report.md

view details

push time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha 09e40cf2d81c3b0746599a2e5383b57a2e312b42

Add bug report issue template

view details

push time in 7 days

create barnchcowboy/synology-update-plex

branch : cowboy-patch-1

created branch time in 7 days

release cowboy/synology-update-plex

v0.0.1

released time in 7 days

release cowboy/synology-update-plex

v0.0.2

released time in 7 days

created tagcowboy/synology-update-plex

tagv1.0.3

Script to Auto Update Plex Media Server on Synology NAS

created time in 7 days

release cowboy/synology-update-plex

v1.0.3

released time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha 9a2560e2d101cd69e99d010d6403dbd9e111ea59

Support i686 (x86) devices. Fixes #19 (#20)

view details

push time in 7 days

delete branch cowboy/synology-update-plex

delete branch : x86

delete time in 7 days

issue closedcowboy/synology-update-plex

D415play support

Hi,

The DS415play it's not supported (version x86).

FAIL: Unable to find release for DS415play-j/i686/i686

I test on my NAS this code and it's worked :

function get_arch() {
  local arch machine=$1 hw_version=$2
  if [[ "$machine" =~ armv7 ]]; then
    declare -A model_machine_map
    model_machine_map[DS414j]=armv7hf_neon
    model_machine_map[DS115j]=armv7hf
    model_machine_map[RS815]=armv7hf
    model_machine_map[DS216se]=armv7hf
    model_machine_map[DS215jv10-j]=armv7hf_neon
    if [[ "${model_machine_map[$hw_version]+_}" ]]; then
      arch=${model_machine_map[$hw_version]}
    elif [[ "${hw_version//[^0-9]/}" =~ 1[5-8]$ ]]; then
      arch=armv7hf_neon
    else
      arch=armv7hf
    fi
  elif [[ "$hw_version" = 'DS415play-j' ]]; then
      arch=x86
  else
      arch=$machine
  fi
  echo $arch
}

The log :

Installed version: 1.18.5.2309-f5213a238

New version available!

[ Finding release ]
{
  "label": "Intel 32-bit (x10 Series, DS415play, and DS214play)",
  "build": "linux-x86",
  "distro": "synology",
  "url": "https://downloads.plex.tv/plex-media-server-new/1.19.4.2935-79e214ead/synology/PlexMediaServer-1.19.4.2935-79e214ead-x86.spk",
  "checksum": "80b6bdae87587ada31f24eddeb963e7fa6dc23f3"
}

[ Downloading release package ]
2020-06-27 14:14:02 URL:https://downloads.plex.tv/plex-media-server-new/1.19.4.2935-79e214ead/synology/PlexMediaServer-1.19.4.2935-79e214ead-x86.spk [100648960/100648960] -> "/tmp/plex.88gmdE/PlexMediaServer-1.19.4.2935-79e214ead-x86.spk" [1]

[ Verifying checksum ]
Checksum valid!

[ Installing package ]
/tmp/plex.88gmdE/PlexMediaServer-1.19.4.2935-79e214ead-x86.spk install successfully

[ Restarting Plex Media Server ]
package Plex Media Server start successfully

[ Cleaning up ]
Removing /tmp/plex.88gmdE

Done!

closed time in 7 days

Vinky41

push eventcowboy/synology-update-plex

Ben Alman

commit sha bdba5bb0d0e4e1a0d8458d6542e1f50fc20bbe58

Support i686 (x86) devices. Fixes #19

view details

push time in 7 days

issue commentcowboy/synology-update-plex

D415play support

I believe I've fixed this in https://github.com/cowboy/synology-update-plex/pull/20, can you give this version a try?

https://raw.githubusercontent.com/cowboy/synology-update-plex/x86/update-plex.sh

Vinky41

comment created time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha dad439033c398e12c9a3ac2a1e9e268f93f6f774

fixup! Support i686 (x86) devices. Fixes #19

view details

push time in 7 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha d4c7eb13358c67b5325b6f01afb99aeb08930b06

Support i686 (x86) devices. Fixes #19

view details

push time in 7 days

create barnchcowboy/synology-update-plex

branch : x86

created branch time in 7 days

issue commentcowboy/synology-update-plex

D415play support

Can you post what the output of the uname -m command and the contents of the /proc/sys/kernel/syno_hw_version file are?

Vinky41

comment created time in 7 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha 86a4a5bcf89e989521e2e517c3989d070a75a5c8

Update readme

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha e4630c5604970731d404ebe0b508a5540377423c

Updates

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha 86dd3df037747636c179153363b3e71baec0bf32

Fix build

view details

Ben Alman

commit sha 16b943c3e47b8ad4f56b45cd2f3cf3367b048769

Fix icon spacing

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha 53c0cc80cf763c24fa929f01ef87148836ce0e23

Updates

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha daaaf2e9f28c1968097500aecebd38fd17595d73

Updates

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha 4c6b3634fd6fc75e85b82f3df1719ff9a1c96bcf

Social updates and many tweaks

view details

push time in 15 days

push eventcowboy/theentirerobot.com

Ben Alman

commit sha cffd184e44a943f2356fe0cf4045c8597f1a3efc

Pin node / yarn via volta

view details

push time in 15 days

issue commentcowboy/synology-update-plex

Issue with interuppted update check

I've created an alternate version of the script with a null check and some more debugging. Feel free to try it out! https://github.com/cowboy/synology-update-plex/pull/18

trumpy81

comment created time in 16 days

push eventcowboy/synology-update-plex

Ben Alman

commit sha 2ad7fc6ba4471ba9f9c563148f11fbb106f33473

Re-add missing line in get_arch

view details

push time in 16 days

create barnchcowboy/synology-update-plex

branch : dump-vars

created branch time in 16 days

issue commentcowboy/synology-update-plex

Issue with interuppted update check

FWIW, I got the exact same error last night. I'm going to do a little more logging on my end to see if I can figure out what's going on.

trumpy81

comment created time in 16 days

IssuesEvent

issue closedcowboy/synology-update-plex

Issue with interuppted update check

I received this in my inbox last night.

Dear user,

Task Scheduler has completed a scheduled task.

Task: Update Plex
Start time: Wed, 17 Jun 2020 23:00:02 GMT
Stop time: Wed, 17 Jun 2020 23:00:12 GMT
Current status: 5 (Interrupted)
Standard output/error:
Checking for a Plex Media Server update...

[ Enabling Plex Pass releases ]
Found Plex Token

[ Retrieving version data ]
Available version: null
Installed version: 1.19.4.2935-79e214ead

New version available!

[ Finding release ]
jq: error (at <stdin>:1): Cannot iterate over null (null)

Done, with errors!


>From DiskStation

I am not sure what the interruption was exactly, but your script did not appear to handle the error as I would expect with a nice output message.

I ran the script manually a short while ago and had no issues, everything worked as expected :)

Just thought you should know.

closed time in 17 days

trumpy81

issue commentcowboy/synology-update-plex

Issue with interuppted update check

That's really interesting. The script has a lot of error handling, but there are some errors that I never expected would be possible. I'm going to close this issue for now, but if someone else reports something similar, I'll dig a bit deeper. Thanks for reporting!

trumpy81

comment created time in 17 days

issue openedimolorhe/altair

theme.editorFontFamily not working in 2.4.8 on Mac

Describe the bug when I set theme.editorFontFamily, the font doesn't change.

To Reproduce

  • In settings, under "Specifies the font family for the editors", enter monospace. Save settings.
  • Alternately, in settings advanced mode, specify "theme.editorFontFamily": "monospace". Eg.
{
  "theme": "dark",
  "language": "en-US",
  "addQueryDepthLimit": 3,
  "tabSize": 2,
  "theme.editorFontFamily": "monospace",
  "theme.fontsize": 24,
  "plugin.list": [],
  "enableExperimental": false,
  "schema.reloadOnStart": true
}

Expected behavior I expect to see a monospace font. I don't see that. I've tried the following:

  • monospace
  • Iosevka Term
  • Menlo
  • Iosevka Term, Menlo, Monaco, 'Courier New', monospace (what my VS Code is using)

Screenshots

image

image

Desktop (please complete the following information):

  • OS: MacOS 10.15.4
  • Platform: Electron app
  • Version 2.4.8

created time in a month

issue commentcowboy/synology-update-plex

DS215j and DS216play support

v1.0.2 has been released with this fix:

https://github.com/cowboy/synology-update-plex/releases/tag/v1.0.2

ngthwi

comment created time in a month

created tagcowboy/synology-update-plex

tagv1.0.2

Script to Auto Update Plex Media Server on Synology NAS

created time in a month

release cowboy/synology-update-plex

v1.0.2

released time in a month

push eventcowboy/synology-update-plex

Ben Alman

commit sha 51b6e97cc304b0eb6a4eb5f1c52b3d1099b3f508

Add support for DS215j with v10-j suffix (#14)

view details

push time in a month

delete branch cowboy/synology-update-plex

delete branch : fix-arch

delete time in a month

issue closedcowboy/synology-update-plex

DS215j and DS216play support

Thanks a lot for your work!

It doesn’t work with DS215j and DS216play, which are armv7hf_neon, because their hardware versions are “DS215jv10-j” and “DS216play-j”.

[edit] With these 2 NAS, it falls into the case “armv7hf” instead of “armv7hf_neon”

closed time in a month

ngthwi

push eventcowboy/synology-update-plex

Ben Alman

commit sha 57910b1bb1e6d0f23e400467508a3fe10e3732ec

Notification now displays correct version (when possible) (#16)

view details

Ben Alman

commit sha 42002b0e68d0b4bc2b1a7b837b089b58e29ae85a

Add support for DS215j with v10-j suffix

view details

push time in a month

created tagcowboy/synology-update-plex

tagv1.0.1

Script to Auto Update Plex Media Server on Synology NAS

created time in a month

release cowboy/synology-update-plex

v1.0.1

released time in a month

push eventcowboy/synology-update-plex

Ben Alman

commit sha 57910b1bb1e6d0f23e400467508a3fe10e3732ec

Notification now displays correct version (when possible) (#16)

view details

push time in a month

delete branch cowboy/synology-update-plex

delete branch : fix-notifications

delete time in a month

create barnchcowboy/synology-update-plex

branch : fix-notifications

created branch time in a month

issue commentcowboy/synology-update-plex

Latest update lead to download failure (Unable to find release)

LOL I don't think I'd recommend auto-updating the updater. I'm not likely to add anything that will make a difference in how plex is auto-update on your NAS, except for bugs 😉

epheterson

comment created time in a month

push eventcowboy/synology-update-plex

Ben Alman

commit sha 67a528c4add3607a0fe743bdf7e055f77f8c9c7d

Reverse args to get_arch. Fixes #15.

view details

Ben Alman

commit sha c2f29208ea92ab7c6331151b20ab07f546141df5

Add support for DS215j with v10-j suffix

view details

push time in a month

release cowboy/synology-update-plex

v1.0.0

released time in a month

created tagcowboy/synology-update-plex

tagv1.0.0

Script to Auto Update Plex Media Server on Synology NAS

created time in a month

push eventcowboy/synology-update-plex

Ben Alman

commit sha 67a528c4add3607a0fe743bdf7e055f77f8c9c7d

Reverse args to get_arch. Fixes #15.

view details

push time in a month

issue closedcowboy/synology-update-plex

Latest update lead to download failure (Unable to find release)

This has been working great for the past week or two I've had it setup, then I noticed there was an update so pulled the new script and tested (no update at the time), seemed to work fine.

Now I have an update available, and it's failing. The browser downloads this file: https://downloads.plex.tv/plex-media-server-new/1.19.3.2831-181d9145d/synology/PlexMediaServer-1.19.3.2831-181d9145d-x86_64.spk

The logs from update-plex:

Checking for a Plex Media Server update...

[ Enabling Plex Pass releases ]
Found Plex Token

[ Retrieving version data ]
Available version: 1.19.3.2831-181d9145d
Installed version: 1.19.3.2793-36efde971

New version available!

[ Finding release ]
FAIL: Unable to find release for DS415+-j/x86_64/DS415+-j

Done, with errors!

closed time in a month

epheterson

issue commentcowboy/synology-update-plex

Latest update lead to download failure (Unable to find release)

Ok, sorry about that. I'll fix it!

epheterson

comment created time in a month

push eventcowboy/synology-update-plex

Ben Alman

commit sha 083e07d5a7a17a85ce3fa924800a33300337a4ff

Tweak version comment

view details

Ben Alman

commit sha a591333528f7130a71162d27a2d54f1ba648022d

Add support for DS215j with v10-j suffix

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 083e07d5a7a17a85ce3fa924800a33300337a4ff

Tweak version comment

view details

push time in 2 months

issue commentcowboy/synology-update-plex

DS215j and DS216play support

Are you sure DS216play-j didn't work correctly? Because I didn't have to change any code, it already returned armv7hf_neon for that. Either way, can you check https://github.com/cowboy/synology-update-plex/pull/14 again?

$ ssh you@IP_OF_YOUR_NAS
you@yournas:~$ wget "https://raw.githubusercontent.com/cowboy/synology-update-plex/fix-arch/update-plex.sh"
you@yournas:~$ chmod a+x update-plex.sh
ngthwi

comment created time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha e744f9b85d3c58583412e617147bcf27f4531274

fixup! Add support for DS215j and DS216play with -j suffix

view details

push time in 2 months

issue commentcowboy/synology-update-plex

DS215j and DS216play support

Can you tell me if my changes in https://github.com/cowboy/synology-update-plex/pull/14 fix the issue?

$ ssh you@IP_OF_YOUR_NAS
you@yournas:~$ wget "https://raw.githubusercontent.com/cowboy/synology-update-plex/fix-arch/update-plex.sh"
you@yournas:~$ chmod a+x update-plex.sh
ngthwi

comment created time in 2 months

PR opened cowboy/synology-update-plex

Add support for DS215j and DS216play with -j suffix

Hopefully fixes #11

+7 -0

0 comment

2 changed files

pr created time in 2 months

create barnchcowboy/synology-update-plex

branch : fix-arch

created branch time in 2 months

delete branch cowboy/synology-update-plex

delete branch : badges

delete time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 99cd0c2cbaee763db40d40f4a3c276a446d9fafb

Update README, armv7 logic comments (#13) * Add comment to get_arch test suite * Move armv7 logic comment to get_arch test suite

view details

push time in 2 months

PR merged cowboy/synology-update-plex

Update README
+28 -16

0 comment

3 changed files

cowboy

pr closed time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 3e7f424326bba73ab9e801dc0b7eb4ec2711ead4

Move armv7 logic comment to get_arch test suite

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 35b663fec73a1222ecc83166bd57da7169db94ad

Add comment to get_arch test suite

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 83026a49b79cf2e1043c185e4f3ce4dd368ee9d2

fixup! fixup! fixup! fixup! Update README

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha bf250e186df4a551157a84e4a517ec2d6db6c50a

fixup! fixup! fixup! Update README

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha a5856809db7653c4c6a7f25c90bcc0eeab002b1e

fixup! fixup! Update README

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 7088cd9a18f793ec1766bad4f8d3dd0235f5545c

fixup! Update README

view details

push time in 2 months

PR opened cowboy/synology-update-plex

Update README
+6 -2

0 comment

1 changed file

pr created time in 2 months

create barnchcowboy/synology-update-plex

branch : badges

created branch time in 2 months

created tagcowboy/synology-update-plex

tagv0.0.3

Script to Auto Update Plex Media Server on Synology NAS

created time in 2 months

release cowboy/synology-update-plex

v0.0.3

released time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha e30c4121023c848b308fd44ebc290f748618833e

Attempt to get release action to work

view details

push time in 2 months

release cowboy/synology-update-plex

v0.0.2

released time in 2 months

created tagcowboy/synology-update-plex

tagv0.0.2

Script to Auto Update Plex Media Server on Synology NAS

created time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 5e03ff4068d5c22470bb85a6211614fb15fea57e

Refactor, add tests, CI, release process (#12)

view details

push time in 2 months

delete branch cowboy/synology-update-plex

delete branch : tests

delete time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 392f637ef764445228883fb9fcc707a598532d42

tests

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 25f979b8df1c337a70517ab7abd37140a7aa617a

fix the build

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha ce75065bf39df72dd0f1765b94a4c6f26468cb14

break the build for testing

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha ae966c9d5478651a77d1042a46bafa85608f85dd

fixup! more tweaks

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha d0cfdab70127aacbd1a25340e428ad59cb4bb608

more tweaks

view details

push time in 2 months

created tagcowboy/synology-update-plex

tagv0.0.1

Script to Auto Update Plex Media Server on Synology NAS

created time in 2 months

release cowboy/synology-update-plex

v0.0.1

released time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha aeb4f14307cac0efa112f8bf49bb06da9e3e7546

fixup! fixup! fixup! Add CI

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 4da8c044fdf49e3964d734d3d32ba9060a0f45bd

fixup! fixup! Add CI

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 23c79a560bf2fef0fceaca7e18168d7d1733d035

fixup! Add CI

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 9e65e591104c9b67c7d1b3428109fb54944d0256

Add CI

view details

push time in 2 months

push eventcowboy/synology-update-plex

Ben Alman

commit sha 2cf704e1ac142fc4e2764428309a7f51ad17eece

fixup! fixup! Add unit tests

view details

push time in 2 months

more