This file contains hidden or 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 bash | |
| case "$1" in | |
| current) | |
| amixer sget Master -M | grep -oE "[[:digit:]]*%" | head -n1 | tr -d % | |
| ;; | |
| raise) | |
| amixer -q sset Master 5%+ unmute | |
| ;; | |
| lower) |
This file contains hidden or 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
| %if 0%{?suse_version} == 1320 | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-i18n | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-ruby-shadow | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-mime-types-1 | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-hike-1_2 | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-multi_json | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-sqlite3 | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-highline | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-bundler | |
| Prefer: %{rb_default_ruby_suffix}-rubygem-daemons |
This file contains hidden or 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
| bash "hawk_join" do | |
| user "root" | |
| cwd "/vagrant" | |
| code <<-EOH | |
| ha-cluster-join -c 10.13.37.10 -i eth1 -y | |
| EOH | |
| not_if do | |
| `systemctl -q is-active corosync.service` |
This file contains hidden or 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
| :suse => { | |
| :default => { | |
| :service => Chef::Provider::Service::Redhat, | |
| :cron => Chef::Provider::Cron, | |
| :package => Chef::Provider::Package::Zypper, | |
| :group => Chef::Provider::Group::Suse | |
| }, | |
| ">= 12.0" => { | |
| :service => Chef::Provider::Service::Systemd, | |
| :group => Chef::Provider::Group::Usermod |
This file contains hidden or 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
| if hash irssi 2> /dev/null | |
| then | |
| alias irssi="screen -d -xRR -c ~/.irssi/screenrc -S irssi irssi" | |
| fi |
This file contains hidden or 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
| module EventObject | |
| extend self | |
| def broadcast(event, payload) | |
| payload.deep_merge! { event: event } | |
| exchange.publish( | |
| payload, | |
| routing_key: queue.name | |
| ) |
This file contains hidden or 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
| --- !ruby/hash:ActionController::Parameters | |
| attributes: &1 !ruby/hash:ActiveSupport::HashWithIndifferentAccess | |
| crowbar: !ruby/hash:ActiveSupport::HashWithIndifferentAccess | |
| ... | |
| id: default | |
| bar: true | |
| action: proposal_create | |
| controller: crowbar | |
| crowbar: !ruby/hash:ActiveSupport::HashWithIndifferentAccess | |
| attributes: *1 |
This file contains hidden or 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
| module Haml | |
| module Compiler | |
| class << self | |
| def build_attributes_with_dasherize(is_html, attr_wrapper, escape_attrs, attributes = {}) | |
| new_attributes = {}.tap do |dasherized| | |
| attributes.keys.each do |key| | |
| dasherized[key.to_s.gsub("_", "-").to_sym] = attributes[key] | |
| end | |
| end |
This file contains hidden or 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 ruby | |
| require "rubygems" | |
| require "pathname" | |
| require "dante" | |
| require "file-monitor" | |
| require "mixlib/shellout" | |
| module Dante | |
| class Runner |
This file contains hidden or 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
| From 77286c33e8767a935af27e0681d1ea02d47c7d4f Mon Sep 17 00:00:00 2001 | |
| From: miah <miah@chia-pet.org> | |
| Date: Tue, 14 May 2013 22:34:53 -0700 | |
| Subject: [PATCH] Load the libraries directory recursively. | |
| --- | |
| lib/chef/cookbook/cookbook_version_loader.rb | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| diff --git a/lib/chef/cookbook/cookbook_version_loader.rb b/lib/chef/cookbook/cookbook_version_loader.rb |