Skip to content

Instantly share code, notes, and snippets.

View MechCoder's full-sized avatar
💭
away

manoj kumar MechCoder

💭
away
View GitHub Profile
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
<marandi> hi guys , im from Iran , can i participate in gsoc ?
* Czarconius (~quassel@14.139.122.114) has joined #gsoc
* SeySayux has quit (Ping timeout: 264 seconds)
* Aceeeed (~aciid@1.186.10.61) has joined #gsoc
<nurupo> marandi: seems like you are not allowed to http://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2013/help_page#4._Who_is_not_eligible_to_participate_as
* warunsl (~warunsl@cpe-76-170-75-11.socal.res.rr.com) has joined #gsoc
<nurupo> or, better say, you are ineligible
* haseeb (~haseeb@unaffiliated/haseeb) has joined #gsoc
* dhruvasagar (~dhruvasag@122.178.197.120) has joined #gsoc
<marandi> nurupo: its so unfair :( !
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@fabianp
fabianp / gist:3097107
Created July 12, 2012 09:58
strong rules lasso
# -*- coding: utf-8 -*-
"""
Strong rules for coordinate descent
Author: Fabian Pedregosa <fabian@fseoane.net>
"""
import numpy as np
from scipy import linalg