Skip to content

Instantly share code, notes, and snippets.

View vdaubry's full-sized avatar

vincent daubry vdaubry

View GitHub Profile
@vdaubry
vdaubry / gist:9750386
Last active August 29, 2015 13:57
deploy.rb
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, 'my-app'
set :repo_url, '[email protected]:my-app.git'
# Default deploy_to directory is /var/www/my_app
set :deploy_to, '/srv/www/my-app'
set :rvm_ruby_string, :local # use the same ruby as used locally for deployment
@vdaubry
vdaubry / bashrc
Created March 28, 2014 08:44
.basrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
@vdaubry
vdaubry / bash_profile
Created March 28, 2014 08:46
.bash_profile
export PATH=$PATH:~/bin
[[ -s "/Users/vincentdaubry/.rvm/scripts/rvm" ]] && source "/Users/vincentdaubry/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# MacPorts Installer addition on 2012-02-03_at_16:06:34: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# MacPorts Installer addition on 2012-02-18_at_08:57:12: adding an appropriate PATH variable for use with MacPorts.
@vdaubry
vdaubry / gist:cdc465d6d5ef84576830
Last active August 29, 2015 14:05
Document correctly embedded
{
"_id":{
"$oid":"54033bf96d627008c6000000"
},
"websites":[
{
"_id":{
"$oid":"54033bf96d627008c6010000"
},
"created_at":"2014-08-31T15:15:05.278Z",
@vdaubry
vdaubry / gist:a9c217a467dd9ff9a7fb
Created August 31, 2014 15:21
Bug in embedded documents
{
"_id":{
"$oid":"54033bf96d627008c6000000"
},
"websites":[
{
"_id":{
"$oid":"54033bf96d627008c6010000"
},
"created_at":"2014-08-31T15:15:05.278Z",
@vdaubry
vdaubry / gist:69f089affeff3b6ca627
Last active August 24, 2018 00:59
Facebook meta tags for jekyll
<!-- facebook Open Graph Metadatas -->
<meta content="your_facebook_app_id" property="fb:app_id">
<meta content="{{ site.title }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
@vdaubry
vdaubry / gist:d404f792a87699c665e2
Created November 21, 2014 14:40
Twitter meta tags for jekyll
<!-- Twitter cards metadatas -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@vdaubry">
<meta name="twitter:creator" content="@vdaubry">
{% if page.title %}
<meta name="twitter:title" content="{{ page.title }}">
{% else %}
<meta name="twitter:title" content="{{ site.title }}">
{% endif %}
{% if page.url %}
@vdaubry
vdaubry / gist:ff05c182a417b3e4baae
Created November 21, 2014 15:36
Jekyll - Title tag before
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
@vdaubry
vdaubry / gist:eb98c7d982647bc14cba
Created November 21, 2014 15:38
Jekyll - title tag after
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
@vdaubry
vdaubry / gist:df233106010970ddb237
Created December 2, 2014 07:15
facebook-share-button
<div class="fb-share-button" data-href="{{site.url}}{{page.url}}" data-layout="button_count" style="position: relative; top: -8px; left: 33px;"></div>