Skip to content

Instantly share code, notes, and snippets.

View corbanbrook's full-sized avatar

Corban Riley corbanbrook

  • Horizon Blockchain Games
  • Toronto, Canada
  • X @corban
View GitHub Profile
Started POST "/api/code_revisions.json" for 127.0.0.1 at 2014-08-25 17:01:01 -0400
Processing by CodeRevisionsController#create as JSON
Parameters: {"repo"=>"git@github.com:pressly/ng-pressilla.git", "tag"=>"v0.1.27", "code_revision"=>{"repo"=>"git@github.com:pressly/ng-pressilla.git", "tag"=>"v0.1.27"}}
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.3290ms
MOPED: 127.0.0.1:27017 QUERY database=presslydb collection=users selector={"$query"=>{"_id"=>BSON::ObjectId('53f79383636f72227e030000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.2680ms
MOPED: 127.0.0.1:27017 QUERY database=presslydb collection=sys_code_revisions selector={"$query"=>{"repo"=>"git@github.com:pressly/ng-pressilla.git", "tag"=>"v0.1.27"}, "$orderby"=>{"is_default"=>-1, "tag"=>-1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.3690ms
MOPED: 127.0.0.1:27017 QUERY database=presslydb collection=sys_code_revisions select
@corbanbrook
corbanbrook / gist:5094ab9a05e60a73f2bc
Created August 13, 2014 19:41
v1.3.19 sites ported
-- Pretending to Upgrade: fastlink-529728db646f6d71e81d0000 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: up4-fffadb1b0000e7f07ffea28a to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: hhh-001d62b80000f7be8f7bbc80 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: test34-52a8d49c64617311a13c0000 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: oidmtc-test-52ab7ec06461733ae6000000 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: moonshinewhiskey-ffff8f480000f6b3c63cde06 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: test36-00008b7a0000e4bb0ca837bb to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: pktest-0000cd150000f6b27c3ad319 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to Upgrade: asdf-0001ab760000e6b84f603587 to git@github.com:pressly/ng-pressilla.git: v0.1.23.
-- Pretending to
["header-logo-image",
"header-background-image",
"raised-stream-slabs",
"full-bleed-features",
"scroll-cover-logo",
"scroll-cover-bg"]
["spinner-color",
"headline-font-weight",
"headline-font-style",
"headline-font-color",
"body-font-family",
"body-font-weight",
"body-font-style",
"body-font-color",
"link-font-color",
"detail-font-family",
{"stream-background-color"=>
{"title"=>"Stream Background",
"component"=>"General",
"group"=>"Background",
"type"=>"color",
"default"=>"#fff"},
"spinner-color"=>
{"title"=>"Loading Spinner",
"component"=>"General",
"group"=>"Background",
{"px-cover-default:background-color"=>
{"title"=>"Background Color",
"component"=>"Cover - Default",
"group"=>"General",
"type"=>"color",
"default"=>"#000"},
"px-cover-default:tint-color"=>
{"title"=>"Tint Color",
"component"=>"Cover - Default",
"group"=>"General",
@corbanbrook
corbanbrook / gist:5747dea4caed33bc89ba
Last active August 29, 2015 14:05
Upgrade all sites from one cr to another
fromTag = 'v0.1.19';
toTag = 'v0.1.20';
$injector.get('CodeRevisionResource').all().then(function(codeRevisions) {
cr = _.findWhere(codeRevisions, {tag: fromTag});
$injector.get('SiteResource').indexByCodeRevision(cr.id, true).then(function(sites) {
_.each(sites, function(site) {
site.upgrade(toTag, 'git@github.com:pressly/ng-pressilla.git').then(function(res) {
console.log(res.id, 'scheduled for upgrade');
});
{
"article_title": "Apple TV now auto-plays the next episode of whatever you're watching on Netflix",
"src": "rss",
"canonicalUrl": "/2014/07/22/apple-tv-auto-plays-netflix/?ncid=rss_truncated",
"appUri": "//read.pressly.com/validkeys/the-bastard/api/1",
"url": "/latest/98371-apple-tv-now-auto-plays-the-next-episode-of-whatever-youre-watching-on-netflix",
"src_url": "http://www.engadget.com/2014/07/22/apple-tv-auto-plays-netflix/?ncid=rss_truncated",
"number_of_ads": 0,
"version": "development",
"slug": "98371-apple-tv-now-auto-plays-the-next-episode-of-whatever-youre-watching-on-netflix",
@corbanbrook
corbanbrook / gist:128000842490287834cf
Last active August 29, 2015 14:01
1.4 upgrade commands
# 1.4 Upgrades
./bin/dashboard appbuilder mass_upgrade --dashboard_url https://my.pressly.com --from_repo git@github.com:nulayer/pressilla.git --from_tag v1.4.2 --to_tag v1.4.5
./bin/dashboard appbuilder mass_upgrade --dashboard_url https://my.pressly.com --from_repo git@github.com:nulayer/pressilla.git --from_tag v1.4.4 --to_tag v1.4.5
./bin/dashboard appbuilder mass_upgrade --dashboard_url https://my.pressly.com --from_repo git@github.com:nulayer/pressilla.git --from_tag v1.4.0-dev-5 --to_tag v1.4.5
./bin/dashboard appbuilder mass_upgrade --dashboard_url https://my.pressly.com --from_repo git@github.com:nulayer/pressilla.git --from_tag v1.4.0-dev-20 --to_tag v1.4.5
23:24:39 corban ~/Projects/brianhowe (master) vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'brianhowe' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
Box download is resuming from prior download progress
Progress: 99% (Rate: 28291/s, Estimated time remaining: --:--:--Progress: 99% (Rate: 23083/s, Estimated time remaining: --:--:--Extracting box...