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/ruby | |
# gem rpm updater | |
# | |
# Will checkout an existing gem rpm from fedora, | |
# and update to the latest version found on http://rubygems.org | |
# | |
# Usage: | |
# gru.rb <gem_name> | |
# | |
# Licensed under the MIT License |
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/ruby | |
# Fedora Gemfile Checker | |
# Print out Gemfile dependencies, highlighting | |
# missing dependencies and those that are remotely | |
# available in Fedora. | |
# | |
# Licensed under the MIT license | |
# Copyright (C) 2013 Red Hat, Inc. | |
# Written By Mo Morsi <mmorsi@redhat.com> | |
########################################################### |
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/ruby | |
# Red Hat Gem Checker | |
# Print out Gem/Gemspec/Gemfile dependencies, highlighting | |
# missing dependencies and those that are remotely | |
# available in various locations including koji, | |
# git, fedora, bodhi, rhn, etc. | |
# | |
# Licensed under the MIT license | |
# Copyright (C) 2013 Red Hat, Inc. | |
# Written By Mo Morsi <mmorsi@redhat.com> |
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/ruby | |
# yrc.rb - yum ruby checker | |
# | |
# Looks up missing binary dependencies required by ruby packages via yum. | |
# | |
# gem install packages as normal. If any fail due to missing requirements, | |
# run this script w/ the location of the failed install like so: | |
# | |
# ./yrc.rb <path-to-gem-install> | |
# |
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
require 'json' | |
module JSON | |
class << self | |
def deep_const_get(path) | |
path.to_s.split(/::/).inject(Object) do |p, c| | |
case | |
when c.empty? then p | |
when p.constants.collect { |c| c.to_s }.include?(c) | |
then p.const_get(c) |
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
require 'json' | |
class Class | |
class << self | |
attr_accessor :permitted_json_classes | |
end | |
def permit_json_create | |
Class.permitted_json_classes ||= [] | |
unless Class.permitted_json_classes.include?(self.name) |
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
134a135,188 | |
> /** | |
> * Create a new THREE.Vector3 instance and project it onto a random point | |
> * on a spiral (in the XY-plane) centered at `base` and with randomized radius. | |
> * | |
> * Spiral generated by rotating series of ellipses generated with the | |
> * specified skew in accordance with the density wave theory | |
> * | |
> * @param {THREE.Vector3} base | |
> * @param {Number} radius |
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/ruby | |
# resilience.rb - Ruby ReFS Parser | |
# Copyright (C) 2014 Red Hat Inc. | |
require 'optparse' | |
require 'colored' | |
FIRST_PAGE_ID = 0x1e | |
PAGE_SIZE = 0x4000 |
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/ruby | |
# ReFS File Lister | |
# Copyright (C) 2014 Red Hat Inc. | |
require 'optparse' | |
require 'colored' | |
FIRST_PAGE_ID = 0x1e | |
PAGE_SIZE = 0x4000 | |
FIRST_PAGE_ADDRESS = FIRST_PAGE_ID * PAGE_SIZE |
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
# FSoup - filesystem soup | |
# Disk and File System Factory | |
# | |
# Licensed under the MIT license | |
# Copyright (C) 2014 Red Hat Inc. | |
$include_factories = true | |
module FSoup | |
module Util |
OlderNewer