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
function! OpenQuickList(data) | |
silent! botright 10split __QuickList__ | |
normal! ggdG | |
setlocal buftype=nofile | |
setlocal bufhidden=delete | |
setlocal noswapfile | |
setlocal nowrap | |
setlocal nobuflisted |
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
function! RunNetGrep(pattern, ...) | |
let tmpfile = tempname() | |
if exists('g:NetGrep_server_name') && exists('g:NetGrep_default_directory') | |
let server_name = g:NetGrep_server_name | |
let default_directory = g:NetGrep_default_directory | |
else | |
echom "Error: NetGrep requires g:NetGrep_server_name and g:NetGrep_default_directory" | |
return | |
endif |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :public_network | |
config.vm.provision :shell, :path => "deploy-puppet.sh" | |
config.vm.provision :puppet do |puppet| | |
puppet.module_path = "modules" | |
puppet.manifests_path = "manifests" | |
end | |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.ssh.private_key_path = "PRIVATE_KEY" | |
config.vm.provider :rackspace do |rs| | |
rs.username = "USER" | |
rs.api_key = "KEY" | |
rs.flavor = /512MB/ | |
rs.image = /Ubuntu/ |
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
forge "http://forge.puppetlabs.com" | |
mod 'hunner/wordpress' | |
mod 'puppetlabs/apache' | |
mod 'b0d0nne11/vim' |
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
@mixin bleed($padding: $grid-padding, $sides: left right) { | |
@if $sides == 'all' { | |
margin: - $padding; | |
padding: $padding; | |
} @else { | |
@each $side in $sides { | |
margin-#{$side}: - $padding; | |
padding-#{$side}: $padding; | |
} | |
} |
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
def fill_in_select2(selector, options={}) | |
page.find(:css, "#s2id_#{selector} a").click | |
page.find(:css, ".select2-search input.select2-input").set options[:with] | |
page.find(:css, ".select2-result-label").click # Choose the first result | |
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
#!/bin/bash | |
# | |
# Backup a Postgresql database into a daily file. | |
# | |
BACKUP_DIR=/pg_backup | |
DAYS_TO_KEEP=14 | |
FILE_SUFFIX=_pg_backup.sql | |
DATABASE= | |
USER=postgres |
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
desc "build website" | |
task :build do | |
system "rm -rf build/*" | |
system "middleman build" | |
puts "## Build complete" | |
puts "To deploy, see the deploy task." | |
puts <<-eos | |
## If this is your first deploy and the gh-pages branch does not exist, run the following: |
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
#wrapper { | |
background-image: url("image.png"); | |
width: 80px; /* the image width is 100px; */ | |
padding-right: 20px; | |
margin-right: -20px; | |
} |