These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
| unless File.exists?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '5.1.6' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' | |
| end |
| unless File.exists?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '4.2.10' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' | |
| end |
| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem "rails", "6.0.2.2" | |
| gem "sqlite3" |
| ## | |
| # Use this behind the scenes to migrate files from your filesystem to Amazon S3 | |
| # %: rake paperclip_migration:migrate_to_s3 | |
| ## | |
| namespace :attachments do | |
| desc "migrate files from filesystem to s3" | |
| task :migrate_to_s3 => :environment do | |
| require 'aws/s3' |
| ## | |
| # Use this behind the scenes to migrate files from your filesystem to Amazon S3 | |
| # %: rake paperclip_migration:migrate_to_s3 | |
| ## | |
| namespace :attachments do | |
| desc "migrate files from filesystem to s3" | |
| task :migrate_to_s3 => :environment do | |
| require 'aws/s3' |
These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
| #!/bin/sh | |
| #Check the Drive Space Used by Cached Files | |
| du -sh /var/cache/apt/archives | |
| #Clean all the log file | |
| #for logs in `find /var/log -type f`; do > $logs; done | |
| logs=`find /var/log -type f` | |
| for i in $logs |
| gem 'devise', '~> 4.7.1' | |
| gem 'active_model_otp', '~> 2.0.1' | |
| gem 'rqrcode', '~> 1.1.2' |
| <# /app/views/users/activate_2fa.html.erb %> | |
| <%= @svg.html_safe %> | |
| <%= form_for(@user, url: activate_2fa_update_path) do |f| %> | |
| <%= f.text_field :otp_response_code %> | |
| <%= f.submit %> | |
| <% end %> |