- Generate new rails app using
--webpack
flag
rails new myApp --webpack=vue
Note:
- You can use
--webpack=angular
for angular application and--webpack=react
for react.
stats = Sidekiq::Stats.new | |
stats.queues | |
stats.enqueued | |
stats.processed | |
stats.failed |
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates. | |
sudo apt-get update | |
#Install Build-Essential in order to configure and make the final Install | |
sudo apt-get install build-essential | |
#libjpg62-dev required in order to work with basic JPG files |
require "openssl" | |
require "digest" | |
def aes128_cbc_encrypt(key, data, iv) | |
key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize) | |
iv = Digest::MD5.digest(iv) if(iv.kind_of?(String) && 16 != iv.bytesize) | |
aes = OpenSSL::Cipher.new('AES-128-CBC') | |
aes.encrypt | |
aes.key = key | |
aes.iv = iv |
require 'base64' | |
require 'digest' | |
require 'openssl' | |
module AESCrypt | |
def AESCrypt.encrypt(password, iv, cleardata) | |
cipher = OpenSSL::Cipher.new('AES-256-CBC') | |
cipher.encrypt # set cipher to be encryption mode | |
cipher.key = password |