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
| ldapsearch -h <host.domain.tld> -p 389 -x -LLL -s sub -b "cn=Users,<dc=host,dc=domain,dc=tld>" <filter> |
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/local/bin/rsync -aNHAXx --verbose --delete --fileflags --protect-decmpfs --force-change --rsync-path=/usr/local/bin/rsync /Path/To/Folder/ [email protected]:/Path/To/Folder |
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
| class Game | |
| attr_accessor :grid | |
| def initialize | |
| @grid = Hash.new | |
| @moves = 0 | |
| 9.times { |time| grid[time+1] = nil } | |
| end | |
| def mark(space, marker) |
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
| $(document).bind('keydown', 'h', function() { | |
| $hex.toggle(); | |
| }).bind('keydown', 'p', function(e){ | |
| $('.prefix').toggle(); | |
| }); |
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
| openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer ipcu_pub.pem -inkey ipcu_priv.pem -certfile ipcu_pub.pem -outform der -nodetach |
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
| require 'haml' | |
| require 'yaml' | |
| task :default => :env do | |
| Dir["#{@site_source}/_layouts/*.haml"].each do |file| | |
| basename = File.basename(file, '.haml') | |
| engine = Haml::Engine.new(File.read(file), :format => :html5) | |
| File.open(File.join(@site_source, '_layouts', "#{basename}.html"), 'w') do |f| | |
| f.write engine.render | |
| 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
| # _plugins/haml_converter.rb | |
| module Jekyll | |
| class HamlConverter < Converter | |
| safe true | |
| def setup | |
| return if @setup | |
| require 'haml' | |
| @setup = true |
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
| # config/initializers/encodings.rb | |
| Encoding.default_internal, Encoding.default_external = ['utf-8'] * 2 |
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
| source :rubygems | |
| gem 'rails', '3.0.3' | |
| gem 'mongo', '1.1.5' | |
| gem 'bson', '1.1.5' | |
| gem 'bson_ext', '1.1.5' | |
| gem 'mongoid', '2.0.0.beta.20' | |
| gem 'carrierwave' |
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
| require 'openid/store/interface' | |
| module OpenID::Store | |
| class Association | |
| include Mongoid::Document | |
| field :secret, :type => Binary | |
| def from_record | |
| OpenID::Association.new(handle, secret.to_s, issued, lifetime, assoc_type) | |
| end |