Code Monkey home page Code Monkey logo

scripts's Introduction

The vermaden scripts.

scripts's People

Contributors

andros-ua avatar dorjechang avatar vermaden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scripts's Issues

[FIXED] Please update sensors.sh for new NVMe / NVD / NDA devices

Hello there,

The FreeBSD devs have decided, in their infinite wisdom, that NVMe devices should now be considered NDA devices by default:
https://man.freebsd.org/cgi/man.cgi?nda

This is instead of the previous standard of nvme / nvd:
https://man.freebsd.org/cgi/man.cgi?nvme

As the manpages reflect, one can mess with sysctl knobs to force nda devices to report as nvme / nvd instead, but this is non-standard now.
I am not sure if/when smartmontools devs will realize this change.
Currently, I have your sensors.sh script hacked up, in a dirty way, to report temps from nvmecontrol -- which is not ideal. The fact that a piece of software, designed specifically for nvme devices, is now co-opted to do so for nda devices is one seriously proper operation to confuse & mislead everybody. I haven't a clue why it was decided this is the correct course of action... there must be some seriously eccentric folks writing FreeBSD base code.
I am not experienced enough with shell scripting (zsh in particular), or the internal workings of smartmontools, or rather 'smartctl', to figure out how to make it report info of nda devices. But if you can figure it out, it would future-proof your excellent script.

Possibly adding script to format USB drives

Hello,

I have been using some of your script and learning from them quite a bit.
I searched for a script to format a usb pen drive, e.g. fat32, but could not find any.
Would you consider adding such script?

Many thanks,

lsblk.sh lists exfat as ntfs filesystem

When I run lsblk with a drive (I tested with an external drive connected via usb) formatted on Windows as exfat, lsblk.sh will list the filesystem of the relevant formatted partition as ntfs instead of exfat. On Linux, lsblk -fs would list the relevant formatted partition as exfat.

desktop-pause.sh does not minimize

When using -A or -S minimize does not work when multiple windows are associated to the same process.
Example:

> xdotool search --pid 69309
104857602
104857610
104857616
104857622

The following patch solves the problem:

--- desktop-pause.sh.old        2018-09-21 19:16:07.831708000 +0200
+++ desktop-pause.sh    2018-09-21 19:18:18.392168000 +0200
@@ -134,7 +134,9 @@
 
 if [ "${MIN}" = "1" -a "${SIGNAL}" = "STOP" ]
 then
-  xdotool windowminimize $( xdotool search --pid ${PID} )
+  for i in `xdotool search --pid ${PID}`; do
+    xdotool windowminimize $i
+  done
   echo "INFO: xdotool windowminimize \$( xdotool search --pid ${PID} )"
 fi
 kill -${SIGNAL} ${PID}
@@ -144,7 +146,9 @@
     do
       if [ "${MIN}" = "1" -a "${SIGNAL}" = "STOP" ]
       then
-        xdotool windowminimize $( xdotool search --pid ${PID} )
+        for i in `xdotool search --pid ${PID}`; do
+          xdotool windowminimize $i
+        done
         echo "INFO: xdotool windowminimize \$( xdotool search --pid ${PID} )"
       fi
       kill -${SIGNAL} ${I}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.