Skip to content

Instantly share code, notes, and snippets.

vincent daubry vdaubry

Block or report user

Report or block vdaubry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vdaubry
vdaubry / gist:ff05c182a417b3e4baae
Created Nov 21, 2014
Jekyll - Title tag before
View gist:ff05c182a417b3e4baae
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
@vdaubry
vdaubry / gist:d404f792a87699c665e2
Created Nov 21, 2014
Twitter meta tags for jekyll
View gist:d404f792a87699c665e2
<!-- 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:69f089affeff3b6ca627
Last active Aug 24, 2018
Facebook meta tags for jekyll
View gist:69f089affeff3b6ca627
<!-- 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:a9c217a467dd9ff9a7fb
Created Aug 31, 2014
Bug in embedded documents
View gist:a9c217a467dd9ff9a7fb
{
"_id":{
"$oid":"54033bf96d627008c6000000"
},
"websites":[
{
"_id":{
"$oid":"54033bf96d627008c6010000"
},
"created_at":"2014-08-31T15:15:05.278Z",
@vdaubry
vdaubry / gist:cdc465d6d5ef84576830
Last active Aug 29, 2015
Document correctly embedded
View gist:cdc465d6d5ef84576830
{
"_id":{
"$oid":"54033bf96d627008c6000000"
},
"websites":[
{
"_id":{
"$oid":"54033bf96d627008c6010000"
},
"created_at":"2014-08-31T15:15:05.278Z",
View 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.
View bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
View gist:9750386
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, 'my-app'
set :repo_url, 'git@github.com: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
You can’t perform that action at this time.