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
tap "homebrew/cask" | |
cask_args appdir: "~/Applications", require_sha: true | |
brew "rbenv" | |
brew "ruby-build" | |
brew "python@3.10" | |
brew "python@3.11" | |
brew "warrensbox/tap/tfswitch" | |
brew "helm" | |
brew "jq" |
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 'openssl' | |
require 'base64' | |
KEY_LENGTH = 2048 | |
ENCRYPTION_KEY_LENGTH = 256 | |
CIPHER_NAME = "aes-#{ENCRYPTION_KEY_LENGTH}-cfb" | |
class Hacker | |
class << self | |
attr_reader :public_key |
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
=begin | |
Include in your rspec config like so: | |
RSpec.configure do |spec| | |
spec.include RSpec::RedisHelper, redis: true | |
end | |
This helper will clean redis around each example. | |
=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
=begin | |
This is a machine generated main stub file using stdlib-doc | |
Created on 2016-08-05 11:57:38 +0300 by IntelliJ Ruby Stubs Generator. | |
This documentation uses content from the book "Programming Ruby - The Pragmatic Programmer's Guide" | |
Copyright (C) 2001 by Addison Wesley Longman, Inc. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/)). | |
Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. | |
Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder. | |
This documentation uses content form the article http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Variables_and_Constants#Pre-defined_Variables |
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 A < ActiveRecord::Base | |
has_and_belongs_to_many :bs | |
end | |
class B < ActiveRecord::Base | |
has_and_belongs_to_many :as | |
end | |
class Ab < ActiveRecord::Base | |
self.table_name = :as_bs |