#dev 2020-02-28

2020-02-28 UTC
#
gRegorLove
[jgmac1106], looks like Micropub for WordPress already supports syndicate-to so you can probably add indieweb.xyz
#
gRegorLove
I'd still need to do the indiebookclub side of that
nickodd, gRegorLove, [ColinMorris], KartikPrabhu, [Michael_Beckwit, [datashaman] and [jeremycherfas] joined the channel; nickodd left the channel
#
@botach
New Product on Our eBay Store! Boker 02MS113 MAC Coltellerie Microsub Race Fixed Blade Knife Black https://ift.tt/396BOUV
(twitter.com/_/status/1233314011183304704)
#
@botach
New Product on Our eBay Store! Boker 02MS011 MAC Coltellerie Microsub Race Fixed Blade Knife https://ift.tt/2VFNryz
(twitter.com/_/status/1233314014102458368)
superjen96, jeremycherfas, [Rose], cweiske and [KevinMarks] joined the channel
[jeremycherfas] joined the channel
#
[jeremycherfas]
[Rose] Does Prompt have good Shortcut support?
#
[Rose]
I don't think anything in that realm does. But Shortcuts itself supports SSH
#
[Rose]
So for something to clear your cache, you could create a shortcut
jjuran joined the channel
#
[jeremycherfas]
Now there’s a thought.
#
[jeremycherfas]
[Rose] Run script over SSH? I’m not seeing any other actions involving SSH, and that one looks like it has the options I need
#
[Rose]
Yes, that's the one!
#
[jeremycherfas]
And the script can then be any bash commands?
#
[jeremycherfas]
I mean, it can all be self-contained in the Shortcut, no need to have it find the script.
[datashaman] joined the channel
#
[datashaman]
looking for a retro feel for your website? 🙂
#
[jeremycherfas]
OK, this is weird. If I run `php -version` from Terminal, I get 7.2.4 But if I run the same command using Shortcuts run Script over SSH, I get 5.3.6. The only difference I can think of is that Terminal is passwordless login, while Shortcuts is user and pw.
#
wink
[jeremycherfas]: probably PATH, although I have no idea about this Shortcuts thing. maybe try the full path to the php binary
#
wink
[jeremycherfas]: also could be a easy as shortcuts not using a login shell, so it won't inherit the environment
#
[jeremycherfas]
There is a slight difference in response to `w`. From Terminal, WHAT is `sshd: jeremygra` which is a truncation of the username. In Shortcuts, WHAT is `-bash` I guess that must be part of it, but now I’m stuck.
#
[jeremycherfas]
`cat .bash_profile` is identical for both Shortcut and Terminal.
#
[jeremycherfas]
Problem (kinda, sorta, maybe) solved. If I run `. ~/.bash_profile` before the command I want to run, it updates the PHP version and everything works. But I have to do it each time. I can’t seem to get it to stick.
#
aaronpk
You might also be able to run php7.2 instead of php
#
[jeremycherfas]
Do you mean `php7.2 bin/grav cache`? instead of `bin/grav cache`?
#
aaronpk
Yes. I've seen some servers provide aliases of the PHP binary with different names so you can run specific ones without messing with the path stuff
#
[jeremycherfas]
OK, I’ll look. But this “solution” does at least work, for now.
#
wink
[jeremycherfas]: "echo $PATH; which php"
#
wink
you just need to find out the full path to the correct binary
#
[jeremycherfas]
What’ll that do?
#
wink
save yourself some hassle and run (probably) /usr/bin/php7.2
#
wink
a combo of what aaronpk and I said earlier
#
wink
which php via ssh should show you the path of the binary
#
wink
> If I run `php -version` from Terminal, I get 7.2.4
#
wink
this one
#
wink
`php` is the one in the foremost path in $PATH
#
wink
so if you do `which php` in THAT shell you have the full pathg
#
[jeremycherfas]
The strange part is that $PATH from Terminal shows 7.2 but PHP -v from Shortcut shows 5.6 unless I first run bash_profile
#
wink
it's not strange
#
wink
it's complicated to explain but it sounds reasonable. not good, but rerasonable :P
#
[jeremycherfas]
Fair enough.
#
wink
when I wrote "login shell" above.. if bash is run with -i it might read other dotfiles
#
wink
there's a convoluted graph diagram somehwere
#
wink
this might or might not be still correct
#
wink
also the #1 reason why cronjobs fail ;)
hs0ucy joined the channel
KartikPrabhu joined the channel
[Jeff_Hawkins], KartikPrabhu, [schmarty], [Michael_Beckwit, hs0ucy, [yo] and gRegorLove joined the channel
#
[schmarty]
woo! _finally_ added support to my site for quill's photo-with-alt json style.
#
aaronpk
oh nice
nickodd, lalilulelo, JerbsDiscord[m], simibacDiscord[m, matsugenDiscord[, circlesDiscord[m, TimeOnDiscord[m], TroyDiscord[m], amimDiscord[m], jenncloudDiscord, sachaDiscord[m], MesaDiscord[m], pankajmendkiDisc, zegordoDiscord[m, dostDiscord[m], RodolfoEDiscord[, macerbiDiscord[m, KinnardDiscord[m, lauren|Microspon, SenshiDiscord[m], leoalvarezhDisco, arjanvaneerselDi, eddocsillDiscord, gabrielbaron16Di, QwertyWhoreDisco, LordFenixNCDisco, rittme[m], Imnotsoimpressed, pr1meDiscord[m], DreamingInCodeDi, haywirezDiscord[, Exca1iburTheWise, terryHDiscord[m], armaniferranteDi, ianlopshireDisco, NatoBoramDiscord, RomaricDiscord[m, l^discordDiscord, chmanieDiscord[m, distributedjoseD, khalnayakDiscord, UsamaIrfanDiscor, rappelDiscord[m], jgmac1106Discord, xlcDiscord[m], aphelionzDiscord, nlkoDiscord[m], ttocslliwDiscord, ScottSmileyDisco, NooooooWayyyyyDi, thomasDiscord[m], f-r-e-dDiscord[m, CharlieRaptoreum, MikeShultzDiscor, CryptoEmpressDis, OrkunDiscord[m], mattcDiscord[m], raisDiscord[m], M|NecoDiscord[m], catmanDiscord[m], sekiDiscord[m], ExpherienceDisco, zgrDiscord[m], braditzDiscord[4, icaruszDiscord[4, gkimbwalaDiscord, NastyEbilPiwateD, wourslerDiscord[, TryptophanDiscor, DavidFalconDisco, funwhilelostDisc, dhenz3SpeakDisco, SuikaDiscord[m], sfromentDiscord[, CocoonCrashDisco, aaronpkDiscord[m, KirushikDiscord[, AtiqDiscord[m], TianyiDiscord[m], CathyLDiscord[m], realChainDiscord, M4eekDiscord[m], mapachurroDiscor, maparentDiscord[, OlegStotskyDisco, adinbDiscord[m], ZapierDiscord[m], silent_Activist[, cesarosum[m], Mairkur[m], hvergara[m], Valium[m], Clment[m], baluptonDiscord[, lyon[m], AXEL-Brian[m], manfred[m], ritewhose[m], AuHau[m], boomshroomDiscor, ambackDiscord[m], JordanKrageDisco, ianfixesDiscord[, nebulerDiscord[m, TristanDiscord[m, FusonDiscord[m], eshohetDiscord[m, cwchristerwDisco, loodDiscord[m], new0ne[m], nilocDiscord[m], HyunwooLeeDiscor, NatoBoram[m], nocentDiscord[m], hubaDiscord[m], HenniDiscord[m], ShruthiDiscord[m, shoesNsocks, [spieper], leg, [Michael_Beckwit, [tantek], [chrisaldrich], matt1, KartikPrabhu and [schmarty] joined the channel; nickodd left the channel