profile
viewpoint
Alex Malinovich demonbane New York, NY

demonbane/helpers 4

Random assortment of helper scripts I use on a regular basis.

demonbane/m3ugen 2

m3u Playlist Generator tool

demonbane/audio-file 1

Perl audio file abstraction library

demonbane/CouchPotato 1

Automatic Movie Downloading via NZBs & Torrents

demonbane/egist 1

Sinatra front-end to decrypt piperfish messages directly from a gist

demonbane/emacs-starter-kit 1

All the code you need to get started, with an emphasis on dynamic languages.

demonbane/ey-cloud-recipes 1

A starter repo for custom chef recipes on EY's cloud platform

push eventdemonbane/helpers

Alex Malinovich

commit sha b391fbea3e1022b204325fb2a16b88c81a811330

Update realmount

view details

Alex Malinovich

commit sha 28ce6f2e7fd5aad1ec7abcf8d0904bac48b1bc8f

Use tabs for bash-functions

view details

Alex Malinovich

commit sha 26fe8062dca509bbe7588409c7a7b99a330e993d

Add mkvinf from firewall-helpers

view details

push time in 13 days

issue commentBrandawg93/homebridge-nest-cam

login.js doesn't work on RPI due to puppeteer bug

login.js works from a console for "regular" logins, but If you're using 2FA on your google account, then yes you have to have a display. I'm running on a RPI4 as well, and just using xrdp to provide a virtual desktop that I can remote into for things like this.

demonbane

comment created time in a month

issue commentBrandawg93/homebridge-nest-cam

login.js doesn't work on RPI due to puppeteer bug

@brn2prgrm I was having the same misleading error when trying to run it without DISPLAY set. Make sure your terminal can launch X apps from the command line and then try again?

demonbane

comment created time in a month

issue openedBrandawg93/homebridge-nest-cam

login.js doesn't work on RPI due to puppeteer bug

node dist/login.js fails on a Raspberry Pi 4 with a Syntax error: "(" unexpected error. I was able to track it down to puppeteer/puppeteer#550. Manually editing login.js with the fix mentioned in the comments fixed the issue for me. I can't submit a PR since this needs some more logic to be safe I'm sure, but the simple fix for me was changing line 71 in login.js from:

const browser = await puppeteer_extra_1.default.launch({ headless: headless });

to

const browser = await puppeteer_extra_1.default.launch({ headless: headless, executablePath: 'chromium-browser' });

I believe this corresponds to https://github.com/Brandawg93/homebridge-nest-cam/blob/77b9514a8e2c930dfc5def2f8cabd914d3ba20aa/src/login.ts#L50

With this (and running with the -h flag since I use 2FA, it worked just fine!

created time in 2 months

push eventmrworf/plexupdate

Alex Malinovich

commit sha 4d13feb6b18d1ea316684c52da1e419e18ac8422

Test run should run with sudo if installed as root (#278) * Test run should run with sudo if installed as root. Fixes #277 * Make cron logic in installer more readable * Style fix for conditional * Be sure CRON option is actually set

view details

push time in 2 months

issue closedmrworf/plexupdate

"error: cannot open .git/FETCH_HEAD: Permission denied" when testing installer.sh

I followed the instructions for installation on the main page (bash -c "$(wget -qO - https://raw.githubusercontent.com/mrworf/plexupdate/master/extras/installer.sh)"), but when I select the option to run the script with the settings chosen during install, I get the error "error: cannot open .git/FETCH_HEAD: Permission denied". I get the same error whenever I rerun installer.sh from /opt/plexupdate/extras/installer.sh and have it test the settings chosen. I am choosing Yes to Plex Pass versions, No to auto-install, and Yes to everything else. I am running Ubuntu Server 20.04 LTS. I have tried giving the entire /opt/plexupdate/.git folder 774 permissions, but the installer then said I had modified plexupdate files and it reinstalled again. I still get the same error. Is this expected, or is there something else I need to do?

closed time in 2 months

Byrd910

PR merged mrworf/plexupdate

Test run should run with sudo if installed as root

This was just an oversight in the original logic for doing a test run. If a user selects to disable autoinstall, the test run gets executed as the normal user, even if cron was selected which chowned everything over to root.

+7 -2

0 comment

1 changed file

demonbane

pr closed time in 2 months

PR opened mrworf/plexupdate

Test run should run with sudo if installed as root

This was just an oversight in the original logic for doing a test run. If a user selects to disable autoinstall, the test run gets executed as the normal user, even if cron was selected which chowned everything over to root.

+7 -2

0 comment

1 changed file

pr created time in 2 months

push eventmrworf/plexupdate

Alex Malinovich

commit sha 411cf45b4a4853e2c8ccbaf3a27959a59a694605

Be sure CRON option is actually set

view details

push time in 2 months

push eventmrworf/plexupdate

Alex Malinovich

commit sha ca1fe0395e6599c64293710b68c262a040af0cf3

Style fix for conditional

view details

push time in 2 months

push eventmrworf/plexupdate

Alex Malinovich

commit sha 8dda798664a8553ba58f24b936355039e223b3fc

Make cron logic in installer more readable

view details

push time in 2 months

create barnchmrworf/plexupdate

branch : cronfix

created branch time in 2 months

issue commentmrworf/plexupdate

"error: cannot open .git/FETCH_HEAD: Permission denied" when testing installer.sh

Oh, I didn't realize that was during your initial setup. That part is a bug. If the installer ends up installing plexupdate as root it should run it as root if you answer Y to run with these settings now. I'll reopen this for now and then close it once an update is pushed out. Sorry it took me a while to figure out what you meant.

Byrd910

comment created time in 2 months

IssuesEvent

issue commentmrworf/plexupdate

"error: cannot open .git/FETCH_HEAD: Permission denied" when testing installer.sh

Ah, ok. Yes, that’s unavoidable unfortunately. If you want to have plexupdate run automatically via cron it has to be installed as root, so the installer made that change for you. If you want it to run automatically every day, all you have to do is just run it as root (or use sudo) when you want to run it manually. It will automatically run every night and already have the permissions it needs.

If you want to just have it installed as the plex user, you can do that as well, you just can’t enable automatic updates that way.

Byrd910

comment created time in 2 months

issue commentmrworf/plexupdate

"error: cannot open .git/FETCH_HEAD: Permission denied" when testing installer.sh

It looks like you were root at the time you installed it, hence the problem. You can either just run it as root (or using sudo), or if you’d prefer to run it as the plex user, just delete the /opt/plexupdate directory and install it again, making sure you’re logged in as plex when you do it. The installer may ask you for sudo permission but it will use it to set the permissions to the user you’re currently logged in as so it should work just fine. Let me know if that takes care of it for you.

Byrd910

comment created time in 2 months

issue commentmrworf/plexupdate

"error: cannot open .git/FETCH_HEAD: Permission denied" when testing installer.sh

The most likely issue is that you either installed it with a different user than you're trying to run it as, or there was an issue with sudo while installing. Can you please run the following and provide the output?

id && ls -al /opt/plexupdate /opt/plexupdate/.git
Byrd910

comment created time in 2 months

issue openedmicrosoft/PowerToys

Map a shortcut to a single key

I'm trying to get Emacs/readline style navigation keys working in Windows, and PowerToys is 90% of the way there but not quite. The issue is that I need to remap a shortcut (Ctrl + A) to a single key (Home). I can remap a shortcut to a shortcut, or a key to a key, but not mix the two. And, as far as I know, there's no existing shortcut for go to beginning/end of line.

created time in 3 months

more