Skip to content

Instantly share code, notes, and snippets.

View avidit's full-sized avatar
☁️

Aabishkar KC avidit

☁️
View GitHub Profile
name = "YOUR_NAME_HERE"
(1..4).collect{"Happy Birthday " + ((it == 3)? "dear $name": 'to You')}.each{println it}
function bash_prompt {
# color
GREEN='\[\e[0;32m\]'
BLUE='\[\e[0;34m\]'
RESET='\[\e[0m\]'
# working dir
PROMPT="\W"
# 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