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.
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.
| ## | |
| # 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' |
| 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" |
| (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 = () => { |
| unless File.exists?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '4.2.10' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' | |
| end |
| unless File.exists?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '5.1.6' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' | |
| end |