This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=owner # <-- wordpress owner | |
| WP_GROUP=psacln # <-- wordpress group | |
| WP_ROOT=./httpdocs # <-- wordpress root directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| test -f /usr/bin/hyperiond || exit 0 | |
| case $1 in | |
| start) | |
| curl -s -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Hyperion","message":"Enabled","image":"/home/osmc/scripts/hyperion.png"}}' http://127.0.0.1/jsonrpc > /dev/null | |
| sudo /usr/sbin/service hyperion start | |
| ;; | |
| stop) | |
| curl -s -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Hyperion","message":"Disabled","image":"/home/osmc/scripts/hyperion.png"}}' http://127.0.0.1/jsonrpc > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| nfsdir="/mnt/kenonas" | |
| if [ ! -d $nfsdir ]; then | |
| echo false | |
| else | |
| echo true | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * gcc -std=c99 clk.c -o clk -lbcm2835 -ltm1638 | |
| * | |
| * @file | |
| * @brief Hello World for TM1638 based displays | |
| * @author Martin Oldfield <[email protected]> | |
| * @version 0.1 | |
| * | |
| * @section DESCRIPTION | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Flash frequency = 80 Mhz | |
| Cpu frequency = 160 Mhz | |
| Flash Size = 1M (256K SPIFFS) | |
| DIO | |
| Speed = 921.000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| result=$(sudo /sbin/hdparm -C /dev/sda1) | |
| if [[ $result == *"active"* ]] | |
| then | |
| echo true; | |
| else | |
| echo false; | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\kenci\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9\xtensa-lx106-elf\lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install ncftp | |
| sudo apt-get install duplicity | |
| sudo apt-get install python-paramiko python-gobject-2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Programs -> OSMC Settings -> PI Config -> Hardware Support -> Soundcard overlay = "hifiberry-digi-overlay" | |
| Remove LIRC from config | |
| Reboot | |
| Settings -> System -> Audio Output -> Audio Output Device -> "Alsa: Default(snd_hifiberry_digi...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RFM12B Sender for DHT22 Sensor with Watchdog (saves much more Power!) | |
| // | |
| // Basiert zum Teil auf der Arbeit von Nathan Chantrell | |
| // | |
| // modified by meigrafd @ 12.01.2015 | |
| //------------------------------------------------------------------------------ | |
| #include <RFM12B.h> | |
| #include <avr/sleep.h> | |
| #include <DHT22.h> // https://github.com/nathanchantrell/Arduino-DHT22 |
OlderNewer