Skip to content

Instantly share code, notes, and snippets.

yannski@laptop:~/Bureau/workspace/TVGuide$ git push origin master && git push appsdeck master
Everything up-to-date
Counting objects: 51, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (31/31), 2.93 KiB, done.
Total 31 (delta 24), reused 0 (delta 0)
remote: <-- Starting deployment hook -->
remote: Start building application tvguide
yannski@laptop:~/Bureau/workspace/TVGuide$ wget http://tvguide.appsdeck.eu/assets/vendor-a4f0641ffc06692f99d744ee4ba10c2e.js
--2013-09-30 10:27:19-- http://tvguide.appsdeck.eu/assets/vendor-a4f0641ffc06692f99d744ee4ba10c2e.js
Résolution de tvguide.appsdeck.eu (tvguide.appsdeck.eu)... 37.59.14.116, 2001:41d0:8:6174::1
Connexion vers tvguide.appsdeck.eu (tvguide.appsdeck.eu)|37.59.14.116|:80... connecté.
requête HTTP transmise, en attente de la réponse... 200 OK
Taille : 524718 (512K) [application/javascript]
Enregistre : «vendor-a4f0641ffc06692f99d744ee4ba10c2e.js»
4% [=======> ] 24 290 --.-K/s ds 65s
[2013-09-26 18:19:00.981865016 +0200 CEST][web-0] GET /js/services.js 304 1ms
[2013-09-26 18:19:00.98876848 +0200 CEST][web-0] GET /js/controllers.js 304 1ms
[2013-09-26 18:19:01.047985833 +0200 CEST][web-0] GET /css/flat-ui.css 304 1ms
[2013-09-26 18:19:01.056635848 +0200 CEST][web-0] GET /css/site.css 304 1ms
[2013-09-26 18:19:01.066113465 +0200 CEST][web-0] GET /js/directives.js 304 0ms
[2013-09-26 18:19:01.103325263 +0200 CEST][web-0] GET /img/logo_invata.png 304 0ms
[2013-09-26 18:19:01.110793105 +0200 CEST][web-0] GET /img/redkiwi-logo.png 304 1ms
[2013-09-26 18:19:01.116969877 +0200 CEST][web-0] GET /img/en.png 304 1ms
[2013-09-26 18:19:01.12308628 +0200 CEST][web-0] GET /img/fr.png 304 0ms
[2013-09-26 18:19:01.212379373 +0200 CEST][web-0] GET /js/lib/ckeditor/ckeditor.js 304 0ms
[2014-06-11 14:23:20.804198976 +0200 CEST][web-2] I, [2014-06-11T12:23:20.801647 #11] INFO -- : Processing by Home::AppsController#index as HTML
[2014-06-11 14:23:20.806298925 +0200 CEST][web-2] I, [2014-06-11T12:23:20.803764 #11] INFO -- : Completed 500 Internal Server Error in 2ms
[2014-06-11 14:23:20.809056384 +0200 CEST][web-2] F, [2014-06-11T12:23:20.806678 #11] FATAL -- :
[2014-06-11 14:23:20.809180906 +0200 CEST][web-2] NameError (uninitialized constant Moped::BSON):
[2014-06-11 14:23:20.809238286 +0200 CEST][web-2] vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/inflector/methods.rb:241:in `const_get'
[2014-06-11 14:23:20.809710499 +0200 CEST][web-2] vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/inflector/methods.rb:241:in `block in constantize'
[2014-06-11 14:23:20.809751505 +0200 CEST][web-2] vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/inflector/methods.rb:224:in `each'
[2014-06-11 14:23:20.809769198 +0200 CEST][web-2] v
@yannski
yannski / motorola.md
Created February 2, 2015 09:35
Motorola et pré-Motorola

Motorola

  1. Qu'est-ce qui s'est bien passé ?
  2. Qu'est-ce qui s'est moins bien passé ?
  3. Qu'est-ce que j'ai appris ?
  4. Qu'est-ce que je vais mettre en action ?

pré-Motorola

  1. Qu'est-ce qui pourrait bien se passer ?
@yannski
yannski / test.md
Created February 16, 2015 16:46
test

Authentication

The authentication to the API is done thanks to an authentication token and Basic HTTP Auth. The API is HTTPS only, so credentials are always sent encrypted.

@yannski
yannski / script.rb
Created March 11, 2015 14:34
Ruby Cold Mailing
require 'mail'
require 'csv'
require 'pry'
require 'active_support'
require 'active_support/core_ext/object/blank'
Mail.defaults do
delivery_method :smtp, address: ENV["SMTP_HOST"], port: ENV["SMTP_PORT"], user_name: ENV["SMTP_USER_NAME"], password: ENV["SMTP_PASSWORD"], authentication: :plain, enable_starttls_auto: true
end
@yannski
yannski / private_gem_on_scalingo.md
Last active October 16, 2015 15:11 — forked from masonforest/gist:4048732
Installing a Gem on Scalingo from a Private GitHub Repo

Installing a Gem on Scalingo from a Private GitHub Repo

Sometimes you want to use a gem on Scalingo that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

  1. Get an OAuth Token from GitHub

First you will need to get an OAuth Token from GitHub using your own username and "note"

{
"name": "Telescope",
"description": "An open-source community app built with Meteor",
"repository": "https://github.com/TelescopeJS/sample-project/",
"logo": "http://www.telescopeapp.org/images/logo.png",
"website": "http://www.telescopeapp.org/",
"addons": ["scalingo-mongodb"]
}
<p>Deploying various projects whose source is hosted on Github is now just one click away with our new “one-click deploy” feature.</p>
<img class="fullwidth" src="https://41.media.tumblr.com/e3638887f597460c024650c151565bd5/tumblr_inline_nzpeo9rKiT1sn0sdx_1280.jpg"></img>
[[MORE]]
<p>With this new feature, you just have to write a small JSON file placed at the root of your Github repository to make it an automatically deployable application on Scalingo.</p>
<h3>How does it work?</h3>