Skip to content

Instantly share code, notes, and snippets.

View sirvar's full-sized avatar
🛠️
Multitasking

Rikin Katyal sirvar

🛠️
Multitasking
View GitHub Profile
PROMPT=' ${return_status} %{$fg[blue]%}$(get_pwd)%{$reset_color%} $(git_prompt_info)${prompt_suffix}'
local return_status="%(?:%{$fg_bold[green]%}π:%{$fg_bold[red]%}π)"
local prompt_suffix="%{$fg[magenta]%}❯%{$reset_color%} "
# by shashankmehta (https://github.com/shashankmehta)
function get_pwd(){
git_root=$PWD
while [[ $git_root != / && ! -e $git_root/.git ]]; do
const Milight = require('node-milight-promise').MilightController
const commands = require('node-milight-promise').commandsV6
const express = require('express')
const app = express()
var light = new Milight({
ip: "MILIGHT_CONTROLLER_IP",
type: 'v6'
}),
zone = 1