Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {
## Basic Setting ##
#gzip off;
sendfile on;
upstream mymster_server{
# Path to Unicorn SOCK file, as defined previously
server unix:/var/www/mymster/shared/sockets/unicorn.sock;
}
server {
listen 80;
server_name mymster.com;
return 301 $scheme://www.mymster.com$request_uri;
}
www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {
## Basic Setting ##
sendfile on;
tcp_nopush on;
@khanimdad
khanimdad / gist:1063165
Created July 4, 2011 10:02
Facebooker2: Facebook invalid session issue
ActionView::TemplateError (Error validating access token: The session is invalid because the user logged out.) on line #89 of app/views/userhome/main_panel/_updates.rhtml:
86: </div>
87: <div class="cat-list" id="todos-cat-list" style='border-bottom:none;'>
88: <b style='font-weight:bold;'>Grow your Yoopedia Network</b>
89: <div class="cat-list" id="tips-cat-list" style='border-bottom:none;'>
90: Do you have friends you would like to invite to Yoopedia?<br/>
91: Please <%= link_to_remote("click here", {:url=>{:controller=>"account", :action=>"invite"}}, {:id=>"", :style=>"font-weight:bold"}) -%> to send them an invite.<br/>
92: <div style='margin:5px 0px 5px 0px;'>
mogli (0.0.28) lib/mogli/client.rb:69:in `raise_error_by_type_and_message'
SQL (60.0ms) SELECT value FROM configurations WHERE name='overall_weight'
SQL (1.0ms) SELECT value FROM configurations WHERE name='friends_weight'
SQL (1.0ms) SELECT value FROM configurations WHERE name='artist_rating_weight'
SQL (0.0ms) SELECT value FROM configurations WHERE name='content_artist_weight'
SQL (0.0ms) SELECT value FROM configurations WHERE name='artist_weight'
SQL (0.0ms) SELECT value FROM configurations WHERE name='genre_weight'
SQL (43.0ms) DROP TABLE IF EXISTS top_movies_users_96
SQL (10342.0ms) CREATE TABLE top_movies_users_96
SELECT c.id AS content_id,
(c.youtoo_rating / 100.0 + c.youtoo_popularity / 100.0)/2.0 AS avg_rating,