This file contains 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
/************************************************************************* | |
* Remote node - nRF24L01+ radio communications * | |
* A program to operate a remote-node slave device that sends * | |
* data to a command unit on a given request message. The radio * | |
* transceiver used is the nRF24L01+, and it operates using the * | |
* TMRh20 RF24 library. * | |
* * | |
* Author: B.D. Fraser * | |
* * | |
* Last modified: 27/06/2017 * |
This file contains 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 | |
# | |
# Simple Main Logic Board (MLB) Serial Generator Script by TheRacerMaster | |
# Based off the work of Hanger1, AGuyWhoIsBored & Alien:X | |
# NOTE: This is a simple script that doesn't do any checking of other SMBIOS values. It needs valid SMBIOS data which includes the following: | |
# - Valid SmUUID value in Clover config.plist under SMBIOS (generated using uuidgen) | |
# - ROM value set to UseMacAddr0 in Clover config.plist (uses MAC address of your first NIC as ROM value) | |
# - Properly formatted serial number (doesn't have to be a real one, just formatted properly) in Clover config.plist under SMBIOS | |
# - Don't use a generic serial number (such as Clover's default)! It needs to be at least semi-unique. | |
# - Try using a generated serial number that isn't real (but formatted correctly) from Clover Configurator, Chameleon Wizard, etc. |
This file contains 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 -x | |
# Requered tools: cuetools, shntool, id3v2, vorbis-tools, lame | |
# | |
LAMEOPTS="-b 320 --quiet" | |
OGGOPTS="-b 320 --quiet" | |
usage () { | |
echo Usage: "$(basename $0)" "-f /path/to.flac -s /path/to.cue -e mp3|ogg" |
This file contains 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
PS1="\[\033[0;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[0;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u@\h'; else echo '\[\033[0;32m\]\u@\h'; fi)\[\033[0;34m\] \w \$\[\033[00m\] " | |
eval "`dircolors`" | |
alias ls='ls --color=auto' | |
alias ll='ls --color=auto -lshaF' | |
alias grep='grep --color=auto' | |
alias fbig="find . -size +128M -type f -printf '%s %p\n'| sort -nr | head -16" | |
alias rdir='mkdir -p ./$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8)/$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 4)/' |
This file contains 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
const DOCUMENT_EVENTS = [ | |
'mousemove', 'mousedown', 'click', | |
'touchmove', 'touchstart', 'touchend', | |
'keydown', 'keypress' | |
]; | |
export class IdleTimer { | |
constructor(onIdleTimeout, timeout) { | |
this.onIdleTimeout = onIdleTimeout; | |
this.timeout = timeout; |
This file contains 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
port: 1818 | |
commands: | |
# Join Push Text : Command to run | |
"eg=:=shutdown": "systemctl poweroff" | |
#fallback-cmd: "./fallbacktest.sh" |