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
class PingdomClient | |
class << self | |
def load_httparty | |
require 'httparty' | |
self.send(:include, HTTParty) | |
self.class_eval do | |
self.base_uri = 'https://api.pingdom.com/api/2.0' | |
end | |
end | |
end |
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
unless(Chef::Provider::Deploy.instance_methods.map(&:to_sym).include?(:copy_command)) | |
Chef::Log.info '** Patching deploy resource copy method to use rsync **' | |
class Chef::Provider::Deploy | |
def copy_cached_repo | |
target_dir_path = @new_resource.deploy_to + "/releases" | |
converge_by("deploy from repo to #{@target_dir_path} ") do | |
FileUtils.mkdir_p(target_dir_path) | |
run_command(:command => "rsync -a --exclude '.git*' #{::File.join(@new_resource.destination, ".")}/ #{release_path}" | |
Chef::Log.info "#{@new_resource} copied the cached checkout to #{release_path}" | |
release_created(release_path) |
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/bash | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
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
style "default" { | |
bg[NORMAL] = "#1d1f21" | |
fg[NORMAL] = "#929593" | |
text[NORMAL] = "#FFFFFF" | |
} | |
style "notification-button" = "default" { | |
text[NORMAL] = "#FF0000" | |
fg[NORMAL] = "#FF0000" | |
} |
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 System.Taffybar | |
import System.Taffybar.Systray | |
import System.Taffybar.XMonadLog | |
import System.Taffybar.Battery | |
import System.Taffybar.SimpleClock | |
import System.Taffybar.DiskIOMonitor | |
import System.Taffybar.Widgets.PollingGraph | |
import System.Taffybar.Widgets.PollingBar | |
import System.Information.CPU | |
import System.Information.Memory |
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
-- xmonad.hs | |
-- XMonad config file - sean.escriva@gmail.com | |
-- | |
import XMonad | |
-- Hooks | |
import XMonad.Hooks.UrgencyHook (withUrgencyHook, NoUrgencyHook(..), focusUrgent) | |
import XMonad.Hooks.ManageDocks (avoidStruts, manageDocks, ToggleStruts(..)) | |
import XMonad.Hooks.ManageHelpers (isFullscreen, isDialog, doFullFloat, doCenterFloat) | |
import XMonad.Hooks.SetWMName | |
import XMonad.Hooks.EwmhDesktops |