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
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 |
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
--- 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 | |
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
/* | |
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: |
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
""" | |
Custom pillar module to retrieve certificates and private keys based on the | |
server id. | |
Configuring the CA ext_pillar | |
============================= | |
The CA ext_pillar configuration needs a path to the PKI directory and a Pillar | |
variable name to populate the data into. In the end ext_pillar configuration | |
will look like: |
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
''' | |
Support for APT (Advanced Packaging Tool) | |
''' | |
# Import python libs | |
import os | |
import re | |
# Import Salt libs | |
import salt.utils |
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/sh | |
# Subversion post-commit hook. | |
# | |
# This script will update files on the development web-server transparently | |
# without any files to be deleted before sync. | |
REV=$2 | |
REPOS=$1 | |
/usr/share/buildbot/contrib/svn_buildbot.py --repository "$REPOS" --revision "$REV" --bbserver 123.123.123.123 --bbport 9989 |
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
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master start [20:37:47] | |
Starting buildbot-master: twistd | |
Starting foo:done. | |
Starting bar:done. | |
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master reload [20:37:50] | |
Reloading buildbot-master: twistd | |
foo:done. | |
bar:done. | |
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master restart [20:37:54] | |
Restarting buildbot-master: twistd |
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
<script src="http://gist.github.com/324678.js?file=sample.html"></script> |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# Script generates statistics table for specified direcories sorted by type(by | |
# default), overall files size or files count. This script can also sort files | |
# into the directories by type using hardlinks(default) or softlinks. Type | |
# determination is done by `file` utility. | |
# | |
# To get help just run script with wrong parameters. | |
import os |
NewerOlder