home.social

Search

29 results for “NodeTap”

  1. After getting an smart PDU for a deal last year, I quickly realized that, while it does have a web client, it doesn't have any kind of API for programmatic control. So I pulled everything I could off the web server, did a lot of screwing around with the network monitor in Firefox and was able to the backend. The authentication ended up being the hardest part as Python and JavaScript handle strings very differently. Check it out: github.com/nodetap/H8B48A_pdu_

  2. As someone who has to take medication each day to ensure I continue to haunt this plane of existence and also someone who is atrociously bad at remembering to do things, I have relied on multiple systems to remind me to take my meds and they all have been terrible for one reason or another. So I'm going to "fix" that the only way I know how. Building a little . E-ink screen, cr2032 battery, and and an ambient light sensor. Put together in a case. V0.1 and V0.2 pictured

  3. The jump in difficulty from making pretty complex stuff happen in to writing code directly for a is much larger than I thought it would be. I'm working on a project now that needs to use sleep modes and real-time clock wakeups so I am using STVD for and I hardly know where to start. It feels like the first time I picked up an Arduino!

  4. This is a niche one but it might help someone in the future:

    How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

    codeberg.org/aral/gists/src/br

    TL; DR: use symlinks.

    #NodeTar #NodeJS #tar #prefixes #directory #hierarchy #flat #archive

  5. This is a niche one but it might help someone in the future:

    How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

    codeberg.org/aral/gists/src/br

    TL; DR: use symlinks.

    #NodeTar #NodeJS #tar #prefixes #directory #hierarchy #flat #archive

  6. This is a niche one but it might help someone in the future:

    How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

    codeberg.org/aral/gists/src/br

    TL; DR: use symlinks.

    #NodeTar #NodeJS #tar #prefixes #directory #hierarchy #flat #archive

  7. This is a niche one but it might help someone in the future:

    How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

    codeberg.org/aral/gists/src/br

    TL; DR: use symlinks.

    #NodeTar #NodeJS #tar #prefixes #directory #hierarchy #flat #archive

  8. Question on #licenses: Take an #LGPL licensed library written in C, compile it to JavaScript with #emscripten, and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

    Same LGPL library, build a #NodeAPI module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the #JavaScript code be fine since node loads the module dynamically?

  9. This is a niche one but it might help someone in the future:

    How to include multiple directories from different places in the file system hierarchy in an archive without including the whole directory structure for any of them.

    codeberg.org/aral/gists/src/br

    TL; DR: use symlinks.

    #NodeTar #NodeJS #tar #prefixes #directory #hierarchy #flat #archive

  10. Dad got #covid this summer with my cousin and sister because they all just wanted a British family birthday here in #BC for his 80th.

    We had been booked to join them up coast but found out two days prior to leaving. We called off the trip with several folks covid sick at the house we were planning to stay.

    It was then we discovered #bcferries no longer refunds for covid cancellations, as to them the pandemic is over. We had to pay to drop our reservation days from our trip, knowing the ferry we had reserved would only be 75% full.

    For #BritishColumbia businesses like #bcferries, ignoring the pandemic is just an extra cash grab. Book another ferry now, pay us 20 bucks or go get sick. They ultimately profited off our loss.

    #LetErRip #NewDeathParty, #NoDataParty #BCndp, #BCmedia, #bonniehenry and #adriandix are the pack of unrepentant #GBD spiders who’ve spun this covid web of deception lulling our population into #complacency and #ableism.

    Profit over kindness is what they’ve successfully preached.

    We must vote every one of these anti mask, anti health covid #minimizers out. We must demand a true independent inquiry of this #bcndp and their #GreatBarrington #Eugenics #LetErRip #surrender to #covid19bc.

    #BCndp needs to #FireBonnieHenry and attempt to restore trust in #BCHealth. British Columbia deserves true health leadership, not more #lies and #propaganda from a longtime corrupt govt shill.

    #BCpoli #CDNpoli #Corruption #Capitalism #COVIDIsNotOver #masks4healthcare #Masks4All

  11. Question on #licenses: Take an #LGPL licensed library written in C, compile it to JavaScript with #emscripten, and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

    Same LGPL library, build a #NodeAPI module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the #JavaScript code be fine since node loads the module dynamically?

  12. Question on : Take an licensed library written in C, compile it to JavaScript with , and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

    Same LGPL library, build a module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the code be fine since node loads the module dynamically?

  13. Question on #licenses: Take an #LGPL licensed library written in C, compile it to JavaScript with #emscripten, and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

    Same LGPL library, build a #NodeAPI module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the #JavaScript code be fine since node loads the module dynamically?

  14. Question on #licenses: Take an #LGPL licensed library written in C, compile it to JavaScript with #emscripten, and bundle it into a JavaScript app. The JavaScript app has to be LGPL licensed because the dynamic linking exception doesn't apply.

    Same LGPL library, build a #NodeAPI module that statically links against it, and use that in a JavaScript app. The NodeAPI code would be LGPL'ed since it's statically linked, but would the #JavaScript code be fine since node loads the module dynamically?

  15. Habs etwas erweitert: Kokain statt cocaine, hinzugefügt: 'künstlicher Intelligenz' und 'künstliche Intelligenz', ....

    javascript:(function(){const rps={'LLM': 'Kokain', 'LLMs': 'Kokain', 'AI':'Kokain', 'die KI': 'das Kokain', 'KI':'Kokain', 'Cursor':'amphetamine', 'Claude Code': 'Kokain', 'Claude': 'Kokain', 'künstlicher Intelligenz': 'künstlichem Kokain', 'künstliche Intelligenz': 'künstliches Kokain'};const rpT=(node)=>{if(node.nodeType===Node.TEXT_NODE){let tx=node.textContent;for(const[oT,nT]of Object.entries(rps)){const regex=new RegExp(`\\b${oT}\\b`,'gi');tx=tx.replace(regex,nT)}node.textContent=tx}else if(node.tagName!=='SCRIPT'&&node.tagName!=='STYLE'){node.childNodes.forEach(rpT)}};rpT(document.body);})();

    (Anleitung: Im Browser Bookmark/Lesezeichen erstellen. In das Feld Adresse den Code einfügen. Auf einer Webseite das Bookmark aufrufen.)

    @lubiana

    #bookmarklet #ki

  16. @Geoffberner This would not be the new norm if we were all wearing #masks, but that’s not our culture right Bonnie?!

    This bought off #TeamAccess #CDNmedia works solely for our gutless, slimy, covid defeated govt who desperately want to normalize societal sickness so people forget how government policies welcomed it all along.

    #BonnieHenry, #AdrianDicks and this #bcndp profit off continued societal sickness. It drives their greedy push for privatized #TelusHealth.

    More sickness means more money to these #corrupt government figures, simple precautions are too pricey to even consider.

    This #BCndp will soon brag about how much they saved (how little they’ve spent) protecting our ailing communities as part of their upcoming campaign.

    They will soon get re-elected despite their unrepentant callousness by using bribe money to buy expensive nonstop virtue signalling ads which will run daily on #youtube.

    This #BCndp always have $$ for campaigning but won’t ever spend a cent to educate the public out of this horror show of their making.

    #VoteThemOut
    #NoDataParty #FireBonnieHenry #SavePublicHealth
    #MakeSchoolsSafe
    #CleanAir #BCed #MasksForAll
    #CovidIsAirborne
    #CovidIsNotOver #bcpoli #cdnpoli

  17. Whelp, after masking profusely through the last few years my #immunocompromised wife and I finally got covid courtesy of #unmasked #bced teachers, staff and children following the almighty #BonnieHenry’s recommendations.

    I blame this #BCndp completely for their dismissal of covid mitigations and gutless acceptance of societal sickness over empathy and simple measures that could have saved lives.

    I’m currently out of work due to the film strikes, now my wife is out of commission as well because of this #bcndp embracing covid.

    British Columbia is a cesspool of #covid but no one cares, no one is taking precautions, and no one is talking about it.

    A tree in the forest that no one hears falling right Bonnie?

    We are now that tree, which is what Bonnie always intended. Long abandoned by our families because we cared enough to continue #masking, now covid sick and alone due to complacency pushed by #BonnieHenry, #AdrianDix and this #corrupt #BCndp.

    #FireBonnieHenry #NewDeathParty #NoDataParty #NeverAgain #WeWillRemember #OustTheBCndp #bcpoli #cdnpoli

  18. What #BonnieHenry means to say is that there will certainly be #covid all through our #bced schools this year, and she and this #BCndp will certainly do nothing to stop it.

    My #immunocompromised #bced wife who hasn’t received a booster in a year will have no extra “layers of protection” with unmasked students/unclean air and #DBH is just fine with that.

    This is our #BCndp govt’s submission to the virus, not ours.

    Everyone in #bced is already sick regularly due to #bonniehenry and her don’t ask of covid, don’t tell of covid, not seeing covid, antimask ideology.

    #BCPublicHealth is dead to me. My whole family just got covid a third time. We are suffering from this govt’s refusal to act in accordance with #science.

    #DBH and #Dix together have squashed any respect/trust I had in our #BChealth system.

    British Columbia is nothing but a beautifully disgusting #covid19bc cesspool due to the morally defunct “leadership” of this #BCndp.

    @MatWright

    #bcpoli #cdnpoli #AntiMaskBonnie #IHateBonnieHenry #NotMyPublicHealthOfficer #BCHealthIsBroken #NewDeathParty #NoDataParty #VoteThemOut

  19. #BonnieHenry and the #BCndp don’t want to see #BC residents masking in malls due to negative connotations to other shoppers.

    #BCed schools don’t want to see air filtration or masks due to negative connotations to students.

    #BCferries doesn’t want to see customers masked or hiding in their cars due to negative connotations to visiting tourists.

    Hospitals under #BCndp #DBH rule can’t call an outbreak an outbreak due to negative connotations.

    Testing, tracing, vaccination; all dropped by this #BCgovt to avoid negative connotations.

    Tragically, there are no negative connotations to prematurely declaring an end to a raging pandemic while claiming victory over the virus you intentionally surrendered our society to; otherwise we might have avoided this whole mess.

    #BCPoli #CDNpoli
    #COVIDisAirborne #CovidIsNotMild #COVIDisNotOver #NoDataParty #masks4healthcare #MakeSchoolsSafe

  20. Week One:

    Everyone in #bced schools is already sick with what appears to be one of the most infectious #covid variants to date, but you won’t hear anyone talking about it.

    There will be no independent inquiry or exposé on how the #bcndp govt embraced this virus; gave up on expensive tracking, containment or any sort of layered protection. How this govt chose (for all of us) to accept constant societal sickness as our new norm.

    The #teamaccess #bcmedia won’t inform you on how this #bcndp used #bced teachers like Guinea pigs in their own private clinical trial while #bonniehenry continued to openly lie about unchecked airborne transmission in #bced schools.

    They won’t remind you how our #bcndp govt was caught hiding casualties in children with no negative press or pressure from #msm.

    In our new #GBD reality, there will be no #memorial to the thousands who have perished under #Capitalism and it’s #LetErRip #Eugenic policies while this #bcndp continue to clutch their majority power.

    There will be no mention of the thousands of deaths to come under this #bcndp due to politically corrupted #bcpublichealth leadership and zero accountability by friendly press.

    This #bcndp govt, #bonniehenry and #adriandix will only ever work to hide, minimize and ignore the fallout from their cowardly #GreatBarrington surrender to #covid19bc.

    They will only ever continue to hide the truth, continue to lie, continue to virtue signal and ultimately profit off our shared loss of community, loss of connection and loss of hope in humanity itself.

    They will continue to ignore science and discriminate against our #vulnerable, constantly pushing a delusional post covid society like a desperate OxyContin doctor, all while silently sacrificing the last of us with no questions asked.

    Soon they will begin their campaign for re-election, bragging about the death money they saved by giving up and accomplishing all these horrible feats in gilded secrecy.

    They will try to convince us that they always cared, but we all now know “be kind and calm” was just another carefully scripted govt #PR lie.

    Don’t fall for the pricey virtue signalling. Don’t consume the endless #bcndp propaganda, it’s only convincing because deception is their sole skill.

    The hard truth is that these asinine “leaders” must be exiled for us to move forward. To heal we must first address the rampant virus that is our #bcgovt.

    We need to work together to vote this #corrupt, #ableist #insufferable group of padded pocket politicians out! Our lives literally depend on it.

    /end rant

    #COVIDisAirborne
    #CovidIsNotOver #NewDeathParty #NoDataParty #MakeSchoolsSafe #masks4healthcare
    #CDNhealth #CDNPoli

  21. Week One:

    Everyone in #bced schools is already sick with what appears to be one of the most infectious #covid variants to date, but you won’t hear anyone talking about it.

    There will be no independent inquiry or exposé on how the #bcndp govt embraced this virus; gave up on expensive tracking, containment or any sort of layered protection. How this govt chose (for all of us) to accept constant societal sickness as our new norm.

    The #teamaccess #bcmedia won’t inform you on how this #bcndp used #bced teachers like Guinea pigs in their own private clinical trial while #bonniehenry continued to openly lie about unchecked airborne transmission in #bced schools.

    They won’t remind you how our #bcndp govt was caught hiding casualties in children with no negative press or pressure from #msm.

    In our new #GBD reality, there will be no #memorial to the thousands who have perished under #Capitalism and it’s #LetErRip #Eugenic policies while this #bcndp continue to clutch their majority power.

    There will be no mention of the thousands of deaths to come under this #bcndp due to politically corrupted #bcpublichealth leadership and zero accountability by friendly press.

    This #bcndp govt, #bonniehenry and #adriandix will only ever work to hide, minimize and ignore the fallout from their cowardly #GreatBarrington surrender to #covid19bc.

    They will only ever continue to hide the truth, continue to lie, continue to virtue signal and ultimately profit off our shared loss of community, loss of connection and loss of hope in humanity itself.

    They will continue to ignore science and discriminate against our #vulnerable, constantly pushing a delusional post covid society like a desperate OxyContin doctor, all while silently sacrificing the last of us with no questions asked.

    Soon they will begin their campaign for re-election, bragging about the death money they saved by giving up and accomplishing all these horrible feats in gilded secrecy.

    They will try to convince us that they always cared, but we all now know “be kind and calm” was just another carefully scripted govt #PR lie.

    Don’t fall for the pricey virtue signalling. Don’t consume the endless #bcndp propaganda, it’s only convincing because deception is their sole skill.

    The hard truth is that these asinine “leaders” must be exiled for us to move forward. To heal we must first address the rampant virus that is our #bcgovt.

    We need to work together to vote this #corrupt, #ableist #insufferable group of padded pocket politicians out! Our lives literally depend on it.

    /end rant

    #COVIDisAirborne
    #CovidIsNotOver #NewDeathParty #NoDataParty #MakeSchoolsSafe #masks4healthcare
    #CDNhealth #CDNPoli

  22. Week One:

    Everyone in #bced schools is already sick with what appears to be one of the most infectious #covid variants to date, but you won’t hear anyone talking about it.

    There will be no independent inquiry or exposé on how the #bcndp govt embraced this virus; gave up on expensive tracking, containment or any sort of layered protection. How this govt chose (for all of us) to accept constant societal sickness as our new norm.

    The #teamaccess #bcmedia won’t inform you on how this #bcndp used #bced teachers like Guinea pigs in their own private clinical trial while #bonniehenry continued to openly lie about unchecked airborne transmission in #bced schools.

    They won’t remind you how our #bcndp govt was caught hiding casualties in children with no negative press or pressure from #msm.

    In our new #GBD reality, there will be no #memorial to the thousands who have perished under #Capitalism and it’s #LetErRip #Eugenic policies while this #bcndp continue to clutch their majority power.

    There will be no mention of the thousands of deaths to come under this #bcndp due to politically corrupted #bcpublichealth leadership and zero accountability by friendly press.

    This #bcndp govt, #bonniehenry and #adriandix will only ever work to hide, minimize and ignore the fallout from their cowardly #GreatBarrington surrender to #covid19bc.

    They will only ever continue to hide the truth, continue to lie, continue to virtue signal and ultimately profit off our shared loss of community, loss of connection and loss of hope in humanity itself.

    They will continue to ignore science and discriminate against our #vulnerable, constantly pushing a delusional post covid society like a desperate OxyContin doctor, all while silently sacrificing the last of us with no questions asked.

    Soon they will begin their campaign for re-election, bragging about the death money they saved by giving up and accomplishing all these horrible feats in gilded secrecy.

    They will try to convince us that they always cared, but we all now know “be kind and calm” was just another carefully scripted govt #PR lie.

    Don’t fall for the pricey virtue signalling. Don’t consume the endless #bcndp propaganda, it’s only convincing because deception is their sole skill.

    The hard truth is that these asinine “leaders” must be exiled for us to move forward. To heal we must first address the rampant virus that is our #bcgovt.

    We need to work together to vote this #corrupt, #ableist #insufferable group of padded pocket politicians out! Our lives literally depend on it.

    /end rant

    #COVIDisAirborne
    #CovidIsNotOver #NewDeathParty #NoDataParty #MakeSchoolsSafe #masks4healthcare
    #CDNhealth #CDNPoli

  23. Week One:

    Everyone in #bced schools is already sick with what appears to be one of the most infectious #covid variants to date, but you won’t hear anyone talking about it.

    There will be no independent inquiry or exposé on how the #bcndp govt embraced this virus; gave up on expensive tracking, containment or any sort of layered protection. How this govt chose (for all of us) to accept constant societal sickness as our new norm.

    The #teamaccess #bcmedia won’t inform you on how this #bcndp used #bced teachers like Guinea pigs in their own private clinical trial while #bonniehenry continued to openly lie about unchecked airborne transmission in #bced schools.

    They won’t remind you how our #bcndp govt was caught hiding casualties in children with no negative press or pressure from #msm.

    In our new #GBD reality, there will be no #memorial to the thousands who have perished under #Capitalism and it’s #LetErRip #Eugenic policies while this #bcndp continue to clutch their majority power.

    There will be no mention of the thousands of deaths to come under this #bcndp due to politically corrupted #bcpublichealth leadership and zero accountability by friendly press.

    This #bcndp govt, #bonniehenry and #adriandix will only ever work to hide, minimize and ignore the fallout from their cowardly #GreatBarrington surrender to #covid19bc.

    They will only ever continue to hide the truth, continue to lie, continue to virtue signal and ultimately profit off our shared loss of community, loss of connection and loss of hope in humanity itself.

    They will continue to ignore science and discriminate against our #vulnerable, constantly pushing a delusional post covid society like a desperate OxyContin doctor, all while silently sacrificing the last of us with no questions asked.

    Soon they will begin their campaign for re-election, bragging about the death money they saved by giving up and accomplishing all these horrible feats in gilded secrecy.

    They will try to convince us that they always cared, but we all now know “be kind and calm” was just another carefully scripted govt #PR lie.

    Don’t fall for the pricey virtue signalling. Don’t consume the endless #bcndp propaganda, it’s only convincing because deception is their sole skill.

    The hard truth is that these asinine “leaders” must be exiled for us to move forward. To heal we must first address the rampant virus that is our #bcgovt.

    We need to work together to vote this #corrupt, #ableist #insufferable group of padded pocket politicians out! Our lives literally depend on it.

    /end rant

    #COVIDisAirborne
    #CovidIsNotOver #NewDeathParty #NoDataParty #MakeSchoolsSafe #masks4healthcare
    #CDNhealth #CDNPoli

  24. #Mastodon #MastodonTools #GlitchSoc #виброкодинг #ChatGPT #NeuralNetwork

    ВАРНИНГ! Всё ниже написанное актуально только для серверов с glitch-soc, тем, кто сидит на ванильке, можно не читать.

    А остальные — признайтесь, кого не бесит лишний клик при добавлении картинки? Ведь никто не пользуется этой дудль-рисовалкой, реально.

    Поэтому, покумекав, родили такой скрипт для #Tampermonkey

    // ==UserScript==
    // @name Button triggers LI click & hide menu
    // @description Button triggers LI click & hide menu
    // @version 0.1
    // @match https://cr8r.gg/*
    // @match https://tilde.zone/*
    // @match https://infosec.exchange/*
    // @match https://expressional.social/*
    // @match https://toot.cat/*
    // @run-at document-idle
    // ==/UserScript==

    (function() {
    'use strict';

    // Интервал для поиска кнопки
    const buttonInterval = setInterval(() => {
    const button = document.querySelector('.compose-form__upload-button button');
    if (button) {
    clearInterval(buttonInterval);
    // console.log('Button found!');

    // Навешиваем обработчик на кнопку
    button.addEventListener('click', () => {
    // console.log('Button clicked, waiting for LI...');

    // Создаём MutationObserver на body
    const observer = new MutationObserver(mutations => {
    for (const mutation of mutations) {
    for (const node of mutation.addedNodes) {
    if (node.nodeType === 1) { // только элементы
    const li = node.querySelector('li[data-index="upload"]');
    if (li) {
    // Скрываем родительский div
    const container = li.closest('div');
    if (container) container.style.display = 'none';
    // console.log('Upload menu hidden immediately!');

    // Вызываем клик на li
    li.click();
    // console.log('LI clicked automatically!');

    // Отключаем observer
    observer.disconnect();
    return;
    }
    }
    }
    }
    });

    // Наблюдаем только за вставкой новых узлов
    observer.observe(document.body, { childList: true, subtree: true });
    });
    }
    }, 250); // ищем кнопку каждые 250 мс

    })();

    Он что делает: обрабатывает клик по кнопке добавления медии, скрывает менюшку с выбором и сам «кликает» на добавление картинки. Мелочь (да какая, к черту, мелочь — дико бесит же, ну!), а приятно.