This file contains hidden or 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
#! /bin/sed -f | |
## Markdown2Dokuwiki - reformat Markdown to Dokuwiki | |
## Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
## Released under the terms of The MIT License | |
## TODO: many things yet... | |
# reformatovani nadpisu | |
s/^#####/==/ |
This file contains hidden or 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
index 0275f47..335f304 100644 | |
--- "a/C:\\Python26\\Scripts\\git-review" | |
+++ "b/C:\\Python26\\Scripts\\git-review" | |
@@ -134,7 +134,10 @@ def set_hooks_commit_msg(remote, target_file): | |
scp_cmd += hostname | |
else: | |
scp_cmd += "%s@%s" % (username, hostname) | |
- scp_cmd += ":hooks/commit-msg %s" % target_file | |
+ # msysgit hacks to work around scp.exe (--aaron) | |
+ rel_target_path = str.replace( ".\%s" % os.path.relpath( target_file ), "\\", "/" ) |
This file contains hidden or 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
if process_local?(options) | |
env.ui.info("Adding host entry for #{name} VM. Administrator privileges will be required...") unless options[:quiet] | |
sudo add_command | |
end | |
def process_local?(options = {}) | |
{:local => true}.merge(options)[:local] | |
end |
This file contains hidden or 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
if process_local?(options) | |
env.ui.info("Adding host entry for #{name} VM. Administrator privileges will be required...") unless options[:quiet] | |
sudo add_command | |
end | |
def process_local?(options = {}) | |
{:local => true}.merge(options)[:local] | |
end |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
sshdir = "#{ENV['HOME']}/.ssh/" | |
cachedir = (ENV['CACHEDIR'] or "#{ENV['HOME']}/cache/") | |
checkout = (ENV['COOKBOOKS'] or "#{ENV['HOME']}/openstack-cookbooks") | |
ip_prefix = (ENV['IP_PREFIX'] or "192.168.2.") | |
mac_prefix = (ENV['MAC_PREFIX'] or "080027027") | |
suffix = "100" |