Skip to content

Instantly share code, notes, and snippets.

View xdamman's full-sized avatar
🌍
🌱🌻

Xavier Damman xdamman

🌍
🌱🌻
View GitHub Profile
# Add this to your ~/.bash_profile
# Now you can just type in terminal storifydev
# It will start mongod, redis-server, chdir to your working dir, open textmate, and launch Chrome
function storifydev() {
STORIFY_DIR="/Users/xdamman/Dropbox/github/storify"
sudo rm /data/db/mongod.lock
echo "Starting MongoDB"
sudo mongod > /dev/null &
echo "Starting Redis"
redis-server> /dev/null &
## 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.
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
;(function() {
Slideshow = function() {
var self = this,
slides = [],
container = $('#elements'),
currentSlide=0,
totalSlides=0,
storify = new Storify(),
@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": {
@xdamman
xdamman / upgradeNode.js
Created December 19, 2012 19:19
Upgrade the default Joyent Smart Machine Node Image 1.3.3 to using node 0.8.16 (I don't like the newest 1.4.0 image since it doesn't come with out-of-the box push to a git repo and deploy)
#!/usr/bin/env bash
pkgin -f update
pkgin install gcc-compiler
mkdir src
cd src
curl -O http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
gtar -xpf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure --with-dtrace --prefix=/opt/nodejs/v0.8.16/
gmake install
@xdamman
xdamman / Accept all friends requests.js
Created December 21, 2012 07:13
Facebook friend requests zero I had 236 pending friends requests, so I decided to accept them all as a gesture before the end of the world. I wasn't ready to click on them all so just made that quick script you can run in the console when you are on the page https://www.facebook.com/friends/requests/
var a = document.getElementsByTagName('input');
for(var i=0;i<a.length;i++) if(a[i].getAttribute('value')=='Confirm') a[i].click();