Skip to content

Instantly share code, notes, and snippets.

View kubicek's full-sized avatar

Jiří Kubíček kubicek

View GitHub Profile
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
# Make sure v8 port is uninstalled first!
cd /usr/ports/lang/v8/
sudo make deinstall
# Install gem and get path
fetch http://rubygems.org/downloads/libv8-3.3.10.4.gem
sudo gem install libv8-3.3.10.4.gem
LIBV8_PATH=/usr/local/lib/ruby/gems/1.9/gems/libv8-3.3.10.4/lib/libv8
# Install devel/libexecinfo ( see 'ports/156993: lang/v8 missing dependency to devel/libexecinfo' at http://www.freebsd.org/cgi/query-pr.cgi?pr=156993 ) ...
@kubicek
kubicek / gitio
Created January 22, 2012 19:47 — forked from defunkt/gitio
Turn a github.com URL into a git.io URL.
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard.
url = ARGV[0]
code = ARGV[1]
@kubicek
kubicek / .gitignore
Created November 28, 2010 01:54 — forked from karmi/.gitignore
.DS_Store
*.log
tmp/
# Delete/Move Rails default files
log 'moving', 'Rails default files'
run "mv README doc/README_FOR_RAILS"
run "rm public/index.html"
# Copy database.yml
log "copying", "database.yml"
run "cp config/database.yml config/database.example.yml"
# Create App config
users:
kubicek:
repositories:
- "xnet/superstudent.git"
- "xnet/aukce.git"