Skip to content

Instantly share code, notes, and snippets.

View eugenepyvovarov's full-sized avatar
:octocat:

Eugene Pyvovarov eugenepyvovarov

:octocat:
View GitHub Profile
-- Set selected Address Book contact pictures from Gravatar.
-- Released under GPL.
-- by Doug Smith, http://smithsrus.com
-- Fixed md5_email routine by Tatsuhiko Miyagawa
-- Grab the selected records and see how many there are.
tell application "Address Book"
set selected_contacts to selection
set count_selected to number of items in selected_contacts
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@eugenepyvovarov
eugenepyvovarov / index.html
Created August 4, 2011 15:34 — forked from mbostock/.block
Google Maps + D3
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="http://github.com/mbostock/d3/raw/v1.8.4/d3.js"></script>
<style type="text/css">
html, body, #map {
width: 100%;
#Config is there http://github.com/spyou/vim-config
#Give a go to vimtutor in order to have a little overview of Vim.
"open/save"
#:w (save)
#:q (quit)
#:qa (quit all buffers)
#:q! (quit without saving)
#:wq (save and quit)
@eugenepyvovarov
eugenepyvovarov / gist:158410
Created July 29, 2009 21:39 — forked from howiworkdaily/gist:106077
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu
8.10. The article is targeted at a production environment, but keep in mind
this is a more generalized environment. You may have different requirements,
but this article should at least provide the stepping stones.
The article will use distribution packages where nesscary. As of 8.10 the
@eugenepyvovarov
eugenepyvovarov / fabric script
Created July 29, 2009 21:39 — forked from anonymous/gist:156623
This fabric file makes setting up and deploying a django application easier
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._