Skip to content

Instantly share code, notes, and snippets.

View jollyroger's full-sized avatar

Andrii Senkovych jollyroger

  • TRData Limited
  • Ukraine
View GitHub Profile
/*
Door timer
Controls light in the room by door state:
* when door opens: turn light on until time less than DELAY_OPEN value
* when door closes: turn light off after time reaches DELAY_CLOSE value
Separately control timer for two rooms
Pins used:
@jollyroger
jollyroger / glide-support-common-make-vars.patch
Last active August 4, 2016 18:31
RPM SPEC file to build glie package manager for Golang
--- Makefile 2016-08-04 13:07:27.501588143 -0400
+++ Makefile 2016-08-04 13:07:35.035595718 -0400
@@ -1,13 +1,17 @@
GLIDE_GO_EXECUTABLE ?= go
-VERSION := $(shell git describe --tags)
+VERSION_GIT := $(shell git describe --tags)
+VERSION ?= ${VERSION_GIT}
DIST_DIRS := find * -type d -exec
+PREFIX ?= /usr/local
import XMonad hiding ( (|||) )
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.UrgencyHook
import XMonad.Util.EZConfig(additionalKeys)
-- Pipes, environment variables, etc.
import XMonad.Util.Run(spawnPipe)
import System.IO