Skip to content

Instantly share code, notes, and snippets.

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"
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
@Tonkonozhenko
Tonkonozhenko / rspec_helper.rb
Created January 30, 2017 11:13 — forked from mlanett/rspec_helper.rb
Helper to clear redis before/after examples in rspec.
=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
=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
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