$ sudo apt-get update
$ sudo apt-get install libffi6
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/ruby | |
| # Stub rails command to load rails from Gems or print an error if not installed. | |
| require 'rubygems' | |
| version = ">= 0" | |
| if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then | |
| version = $1 | |
| ARGV.shift | |
| 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
| require 'uri' | |
| require 'net/http' | |
| url = URI("https://api.msg91.com/api/v2/sendsms") | |
| http = Net::HTTP.new(url.host, url.port) | |
| http.use_ssl = true | |
| http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
| request = Net::HTTP::Post.new(url) |
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
| AddModelVirtualAttributeCheck: { } | |
| AlwaysAddDbIndexCheck: { } | |
| #CheckSaveReturnValueCheck: { } | |
| #CheckDestroyReturnValueCheck: { } | |
| DefaultScopeIsEvilCheck: { } | |
| DryBundlerInCapistranoCheck: { } | |
| #HashSyntaxCheck: { } | |
| IsolateSeedDataCheck: { } | |
| KeepFindersOnTheirOwnModelCheck: { } | |
| LawOfDemeterCheck: { } |
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 User | |
| #=region Setup | |
| devise :database_authenticatable | |
| has_images :icon_image | |
| codify( | |
| harshal: { name: "Harshal" } | |
| ) | |
| #=endregion | |
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
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem 'activerecord', '6.0.0.rc1' |
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
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| gem "rails" | |
| gem "sqlite3" | |
| 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
| On Server | |
| $ pg_dump -U dbadmin -d dbprd > ~/temp/db-backups/db-backup-14-feb-2018.pgsql | |
| On Dev Machine | |
| $ scp [email protected]:/home/deployer/temp/db-backups/db-backup-14-feb-2018.pgsql ./db-backup-14-feb-2018.pgsql | |
| $ psql -U dbadmin -d development_database < db-backup-14-feb-2018.pgsql |
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
Show hidden characters
| { | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true, | |
| "trim_trailing_white_space_on_save": true | |
| } |