Code Monkey home page Code Monkey logo

convenience_scripts's Introduction

convenience_scripts

Some small pieces of code that I use on my daily basis


returns current power draw in Watts. Auto detects multiple batteries. Indicates charging with "↑", otherwise discharging.
- Watts designates idle state: battery is essentially internally disconnected.
Use --plain switch to make the output simple (for non-kArgos users)


shutdown_button.sh

Raspberry π ACPI necessity. Adds this one crucial button. No more SSHing a RPi only to shut it down even though you have physical access to it. It can trigger different actions based on the duration of the press.
It uses BCM numbering (wiringPi -g).
My default actions are shutdown and reboot.
My preffered GPIO is some on CSI connector (I²C line?).
My preffered button is iPhone 3GS home button glued to the USB casing.
<to be done>


shairport-sync_installer.sh

Shairport-sync is a great project turning any linux computer into a AirPlay receiver. I happened to install it so many times (trying to make it work), that this might be useful https://github.com/mikebrady/shairport-sync


many others are coming

convenience_scripts's People

Contributors

amateusz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.