Skip to content

Instantly share code, notes, and snippets.

Avatar
🪐

Nikita Levchuk nlevchuk

🪐
  • Yeysk, Russia
View GitHub Profile
View install.sh
#!/usr/bin/env bash
export TMUX_INSTALL_VERSION=1.6
wget -q -O - "https://gist.github.com/raw/4561674/install_tmux_${TMUX_INSTALL_VERSION}_on_ubuntu_10.04.sh" | sudo bash
View gist:4562689
sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libxslt1-dev
View instructions.md

Out of the box, Homebrew does a default installation on Sphinx:

$ brew install sphinx

However, if you're using MySQL, the thinking-sphinx gem won't work because it needs to use MySQL libraries.

If you managed to screw up the first time, uninstall sphinx first:

$ brew remove sphinx

@nlevchuk
nlevchuk / deploy.rb
Created Nov 29, 2012
config/deploy.rb
View deploy.rb
require 'bundler/capistrano'
require "rvm/capistrano"
require 'capistrano/ext/multistage'
load 'deploy/assets'
set :rvm_path, '/home/<USERNAME>/.rvm'
set :rvm_bin_path, '/home/<USERNAME>/.rvm/bin'
set :repository, 'git@github.com:<GIT_USERNAME>/<REPOSITORY_NAME>.git'
set :scm, :git
@nlevchuk
nlevchuk / example_canvas
Created Aug 23, 2012
canvas_keyboard.html
View example_canvas
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Canvas Test</title>
</head>
<body>
<section>
<div>
@nlevchuk
nlevchuk / unicorn
Created Mar 27, 2012 — forked from vdv/unicorn
unicorn init.d script with rvm on ubuntu 11.04
View unicorn
#!/bin/bash
### BEGIN INIT INFO
# Provides: APPLICATION
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the APPLICATION unicorns at boot
# Description: Enable APPLICATION at boot time.
### END INIT INFO
@nlevchuk
nlevchuk / terminal-session
Created Feb 6, 2012
It's bash script for saving and loading gnome-terminal session. Special for Ubuntu.
View terminal-session
#!/bin/bash
##
## This is bash script for saving and loading gnome-terminal session. Special for Ubuntu.
##
## Usage: ./terminal-session -s <name_profile> - for save session
## ./terminal-session -l <name_profile> - for load existing session
## ./terminal-session --profiles - for show existing session files
##
## Instructions:
## - Run gnome-terminal;
View gist:1111407
.seller_button {
height: 20px;
margin-top: 14px;
width: 70px;
border: 1px solid #d4d4d4;
webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: #6e6e6e;
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #c2c6bc ),color-stop(1, #fdfdfd));