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
# Aeotec Z-Stick Disco Light | |
# disable disco light | |
echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00 | |
# enable disco light | |
echo -e -n "\x01\x08\x00\xF2\x51\x01\x00\x05\x01\x51" > /dev/serial/by-id/usb-0658_0200-if00 |
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
function bash_prompt { | |
# color | |
GREEN='\[\e[0;32m\]' | |
BLUE='\[\e[0;34m\]' | |
RESET='\[\e[0m\]' | |
# working dir | |
PROMPT="\W" |
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
name = "YOUR_NAME_HERE" | |
(1..4).collect{"Happy Birthday " + ((it == 3)? "dear $name": 'to You')}.each{println it} |