Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'csv' | |
| f = File.open("table.html") | |
| doc = Nokogiri::HTML(f) | |
| CSV.open("output.csv", 'w') do |csv| | |
| doc.xpath('//table/tbody/tr').each do |row| | |
| tarray = [] |
Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| const slack_url = 'https://hooks.slack.com/services/...'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = { | |
| 'Content-Type': 'application/json' | |
| }; |
| # no maint page unless migrations are required | |
| def conditionally_enable_maintenance_page | |
| super if required_downtime_stack? | |
| if c.migrate? | |
| info "~> testing necessity for migrations & maintenance page" | |
| if `cd #{c.release_path} && bundle exec rake db:migrate:status`.scan(/^\s*down/).size > 0 | |
| info "~> migrations pending, maintenance page required" |