This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use C-\ as a control sequence. | |
unbind-key C-b | |
set -g prefix 'C-\' | |
bind-key 'C-\' send-prefix | |
# Easy-to-remember split pane commands. | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' # if ruby 1.8.7 | |
require 'rails/commands/server' | |
require 'rack' | |
require 'webrick' | |
require 'webrick/https' | |
module Rails | |
class Server < ::Rack::Server | |
def default_options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="Stylesheet" type="text/css" href="%root_path%style.css" /> | |
<link rel="icon" href="favicon.ico" type="image/x-icon" /> | |
<title>%title%</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<style> | |
.center { | |
margin-left: auto; | |
margin-right: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Ruslan Osipov, April 2013 | |
# Little script that swaps local gitconfig files used in git version | |
# 1.7.10 and up (include.path ~/.gitconfig.local). | |
# | |
# Requirements: | |
# Little set_prompt function from | |
# https://github.com/ruslanosipov/dotfiles/blob/master/.bashrc | |
# ~/.gitconfig.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Ruslan Osipov <ruslan@rosipov.com> | |
# Usage: shgist keywords | |
# Description: Gists downloader | |
import urllib | |
import urllib2 | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""This script converts WXR file to a number of plain text files. | |
WXR stands for "WordPress eXtended RSS", which basically is just a | |
regular XML file. This script extracts entries from the WXR file into | |
plain text files. Output format: article name prefixed by date for | |
posts, article name for pages. | |
Usage: wxr2txt.py filename [-o output_dir] |