Skip to content

Instantly share code, notes, and snippets.

View xdamman's full-sized avatar
🌍
🌱🌻

Xavier Damman xdamman

🌍
🌱🌻
View GitHub Profile
@xdamman
xdamman / .profile
Last active December 15, 2016 12:20
alias reload="source ~/.profile"
#function ssh {
# ~/.scripts/iterm-setName $1
# /usr/bin/ssh $1
#}
# git alias
alias gco="git commit -am"
alias glog='git log --date-order --all --graph --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d %Creset%s"'
@xdamman
xdamman / install ghost on macosx 10.9.sh
Last active December 30, 2015 08:09
How to install https://ghost.org on your local machine (MacOSX 10.9)
#!/bin/bash
git clone https://github.com/TryGhost/Ghost.git
cd Ghost
git submodule update --init
sudo gem install sass && sudo gem install sass
sudo npm install -g grunt-cli
npm install
grunt init
npm start
open "http://localhost:2368/ghost/"
@xdamman
xdamman / varnish-jsonp.vcl
Last active December 27, 2015 14:29
Make Varnish 3.x handle jsonp requests so that we can cache them (even when jQuery generates random callback function names when using $.getJSON). Inspired by https://gist.github.com/simonw/640331 and adapted for Varnish 3.x.
#<jsonp>
# We go BACK to varnish to get it to generate an ESI template that
# generates a JSON-P response.
backend jsonp_template_backend {
.host = "127.0.0.1";
.port = "80"; # use the port that varnish is listening on
}
# <jsonp>
# How the jsonp_template_backend dispatches to the ESI generating code:
@xdamman
xdamman / top years
Last active December 10, 2015 05:58
235898,1980
32649,2003
297,1987
292,1985
288,1988
287,1981
285,1963
280,1984
276,1983
274,1982
@xdamman
xdamman / zemanta source
Created July 10, 2012 17:45
Storify source example Zemanta
{
"_id": {
"$oid": "4e49f6a1b756ba595aae31e5"
},
"name": "zemanta",
"label": "Zemanta",
"icon": "http://zemanta.com/favicon.ico",
"href": "http://zemanta.com",
"status": "",
"defaults": {
;(function() {
Slideshow = function() {
var self = this,
slides = [],
container = $('#elements'),
currentSlide=0,
totalSlides=0,
storify = new Storify(),
Thu Aug 11 12:05:02 [initandlisten] connection accepted from 173.255.192.81:47206 #239877
Thu Aug 11 12:05:02 [conn239877] update storify.stories query: { permalink: "http://storify.com/thebhf/london-to-brighton-bike-ride-2011" } nscanned:1
2 key updates 152ms
Thu Aug 11 12:05:02 [conn239877] end connection 173.255.192.81:47206
Thu Aug 11 12:05:17 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:05:37 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:05:40 [conn239856] update storify.stories query: { _id: ObjectId('4e4411b918d7b6652b0384fd') } nscanned:1 moved 399ms
Thu Aug 11 12:05:57 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:06:17 [replslave] repl: sleep 20sec before next pass
Thu Aug 11 12:06:37 [replslave] repl: sleep 20sec before next pass
## Frontend developer (HTML5/CSS3)
### About us
Storify helps its users tell stories with social media.
* We launched our private beta as a finalist at TechCrunch Disrupt in September 2010, and won the Startup Accelerator at South by Southwest in 2011.
* Our users include the top sites on the Web: [The New York Times](), Mashable, [The Washington Post](http://storify.com/washingtonpost), Los Angeles Times, [ReadWriteWeb](http://storify.com/rww), [Al Jazeera](http://storify.com/ajstream) and many others worldwide, along with top brands like Levi’s and Samsung.
* We’re based in San Francisco in a newly remodeled loft office in the heart of the city.
* We’re a small team and the initial employees will play a key role in shaping the product and company culture.
* We use cutting edge technologies including node.js and MongoDB.