I hereby claim:
- I am taylor01 on github.
- I am taylor01 (https://keybase.io/taylor01) on keybase.
- I have a public key whose fingerprint is 8079 6CD5 2DAE C450 1D7C 8E49 9EA5 3BD2 AFAF 4AE9
To claim this, I am signing this object:
#Deploy and rollback on Heroku in staging and production | |
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |
db:create creates the database for the current env | |
db:create:all creates the databases for all envs | |
db:drop drops the database for the current env | |
db:drop:all drops the databases for all envs | |
db:migrate runs migrations for the current env that have not run yet | |
db:migrate:up runs one specific migration | |
db:migrate:down rolls back one specific migration | |
db:migrate:status shows current migration status | |
db:migrate:rollback rolls back the last migration | |
db:forward advances the current schema version to the next one |
1. Extended in VMWare first | |
2. Boot VM from Unbuntu live CD. Make sure to use Desktop version and not Server | |
3. Launch GParted from the live CD. | |
4. Re-arrange/extend partitions. | |
5. Reboot VM. |
language: ruby | |
rvm: | |
- 2.0.0-p247 | |
script: bundle exec middleman build | |
deploy: | |
provider: heroku | |
api_key: | |
secure: <secure heroku auth key> |
I hereby claim:
To claim this, I am signing this object:
<%@ Language=VBScript %> | |
<% | |
pageTitle = "Photos" | |
pageName = "photos" | |
%> | |
<!--#include file="include/i_header.asp"--> | |
<!--Content Start - 650 px wide--> |
require 'open-uri' | |
require 'net/http' | |
(1..1000).each do |n| | |
uri = URI("http://static.musictoday.com/store/bands/6/product_large/DMAP#{n}.JPG") | |
request = Net::HTTP.new uri.host | |
response = request.request_head uri.path |
class SalesHistoryImporter | |
require 'csv' | |
def import(file) | |
@filename = File.basename(file) | |
@file = open(file) | |
if !check_file_name(file) | |
return false | |
end | |
Visitor Visits visit_observation | |
"hash_mac" visitor_id visit_id:integer | |
"location_id" first_seen_at lat:float | |
"os" last_seen_at lng:float | |
"manufacturer" max_rssi unc:integer | |
ipv4 location:array [['lat', 'lng', 'unc'], ['lat', 'lng', 'unc']] | |
ipv6 | |
ssid | |
seen_epoch |
class AddLocationToVisitObservation < ActiveRecord::Migration[5.1] | |
def change | |
add_column :visit_observations, :location, :text, array:true, default: [] | |
end | |
end |