Skip to content

Instantly share code, notes, and snippets.

View mandria's full-sized avatar

Martino Coffa mandria

View GitHub Profile
@mandria
mandria / ups-qnap-winnut-configuration
Created May 27, 2022 08:53
Qnap setting UPS network shutdown windows 10 - osx - linux
compatible UPS with USB plugged to the Qnap nas.
Dowload WinNUT ( https://code.google.com/archive/p/winnut/downloads latest release is from years ago but works fin in latest win 10 build)
for mac and linux you can use package installer system (brew on mac and apt on some linux)
https://networkupstools.org/ for more details
Here the setting to control PC shutdown,
edito configuration file adding a line
@mandria
mandria / terminalnotes.txt
Last active June 29, 2020 12:20
terminal notes
dns-sd -q xxxx.local (to get ip address forom a hostname in a local network)

After some trouble to boot icecast on mac osx with launchd this is the workaround i've used:

make an .sh that make start icecast ->


    #!/bin/bash
    sleep 5
@mandria
mandria / gist:e61ec5cda51d25d01d914da2481fb2cf
Created April 1, 2020 20:39
include javascript via console
javascript: (function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
console.log('jQuery injected');
};
document.head.appendChild(e);
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js')