rails new basics --skip-bootsnap --skip-bundle --skip-action-cable --skip-active-storage --skip-action-mailer --skip-yarn --skip-sprockets --skip-turbolinks --skip-coffee --skip-javascript --database=postgresql
rails db:setup db:migrate
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
# gem install bitbucket_rest_api | |
# gem install octokit | |
require 'bitbucket_rest_api' | |
require 'octokit' | |
task :migrate do | |
bitbucket = BitBucket.new login: '', password: '' | |
bitbucket_owner = '' | |
github = Octokit::Client.new login: '', password: '' | |
github_org = '' |
var updateQueryParam = function(query_param, new_value) { | |
var re = new RegExp('(' + query_param + '=)[^\\&]*'); | |
if (re.test(location.href)) { | |
location.href = location.href.replace(re, '$1' + new_value); | |
} else { | |
location.href = location.href + '?' + query_param + '=' + new_value; | |
} | |
}; |
I hereby claim:
To claim this, I am signing this object: