Skip to content

Instantly share code, notes, and snippets.

View nlevchuk's full-sized avatar
🪐

Nikita Levchuk nlevchuk

🪐
View GitHub Profile
#!/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
sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libxslt1-dev

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 November 29, 2012 09:02
config/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 August 23, 2012 03:35
canvas_keyboard.html
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Canvas Test</title>
</head>
<body>
<section>
<div>
@nlevchuk
nlevchuk / unicorn
Created March 27, 2012 09:54 — forked from vdv/unicorn
unicorn init.d script with rvm on ubuntu 11.04
#!/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 February 6, 2012 16:07
It's bash script for saving and loading gnome-terminal session. Special for Ubuntu.
#!/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;
.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));