Skip to content

Instantly share code, notes, and snippets.

View aespinosa's full-sized avatar

Allan Espinosa aespinosa

View GitHub Profile
sed "s/\[^[[0-9;]*[a-zA-Z]//gi"
@aespinosa
aespinosa / gist:5475294
Created April 28, 2013 00:21
fulll debug log
INFO global: Vagrant version: 1.2.2
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/package/plugin.rb
@aespinosa
aespinosa / gist:6097207
Created July 28, 2013 03:09
lxc_container[] resources breaks on Chef 11.6.0
Compiling Cookbooks...
[2013-07-28T02:52:13+00:00] INFO: Lxc light-weight provider already initialized -- overriding!
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/lxc/resources/container.rb
================================================================================
NameError
---------
@aespinosa
aespinosa / gist:9027913
Created February 16, 2014 01:27
windows_feature resources not compiling properly in a chefspec run.
aspnet_skeleton::default
================================================================================
Recipe Compile Error in /tmp/d20140216-3013-1to7s1t/aspnet_skeleton/recipes/default.rb
================================================================================
TypeError
---------
nil is not a symbol
time ruby -rbundler/setup test/isolated_test.rb -v
Run options: -v --seed 18077
# Running:
IsolatedTest#test_default = 0.00 s = .
Finished in 0.004037s, 247.7322 runs/s, 495.4644 assertions/s.
1 runs, 2 assertions, 0 failures, 0 errors, 0 skips
@aespinosa
aespinosa / init.groovy
Created October 21, 2014 13:46
all-in-one Jenkins configuration
import jenkins.model.*;
pm = Jenkins.instance.pluginManager
pm.doCheckUpdatesServer()
plugins = pm.plugins
# FIXME idempotency needed here
plugins.each {
if (it.isEnabled()) {
it.disable()
}
@aespinosa
aespinosa / gist:6e8252691b26ce6f2e9e
Created November 1, 2014 14:05
nix-env macvim sha256sum problem
nix-env -i macvim
installing `macvim-7.4.479'
these derivations will be built:
/nix/store/0x0v33h6823klxdqm3hhjm6r9srxjj4c-luajit-2.0.3.drv
/nix/store/0zdy26p9fxfbmvav0j15a3ffy9d2iwmc-macvim-7.4.479.drv
/nix/store/1vrkqbqrkkmdqs21ydi1l8maws90y561-ruby-1.9.3-p547.drv
/nix/store/2633v4gbdinqxfhlncjfb9gl5dj8kbqz-libarchive-3.1.2.drv
/nix/store/27sdqrznrmw15n8b89p0prkaix4szpgs-stdenv.drv
/nix/store/7mp25ifirn2zgcvjddn0p4j0qla6hlcp-cmake-2.8.12.2.tar.gz.drv
/nix/store/8masdmqnkddafsrm1vcx54x20bnrbm7r-macvim-f9c084b97fa9d5cad2448dfd3eff3d9b7f0fac59-src.drv
@aespinosa
aespinosa / freebsd.patch
Last active August 29, 2015 14:15
Difference of ports installed between chef/bento and digitalocean's FreeBSD 10.0
--- vagrant.lst 2015-02-17 23:43:54.000000000 +0900
+++ digitalocean.lst 2015-02-17 23:43:47.000000000 +0900
@@ -1,8 +1,37 @@
+arping
+avahi
+avahi
ca_root_nss
-compat6x
curl
+dbus
@aespinosa
aespinosa / gist:5ba3c9276a03b5fdf426
Created August 7, 2015 02:13
Download the docker.vim syntax files to your pathogen bundle dirs
curl -L https://github.com/docker/docker/archive/master.tar.gz | tar xvz --strip-components 4 -C docker.vim docker-master/contrib/syntax/vim
@aespinosa
aespinosa / clone.rb
Created September 1, 2015 05:49
Download Bundle from vimrc
#!/usr/bin/env ruby -ns
bundle = $F[2]
url, basename = if bundle =~ /^[A-Za-z0-9-]+\/[A-Za-z0-9._-]+$/
["https://github.com/#{bundle}/archive/master.tar.gz", File.basename(bundle)]
elsif bundle =~ /^[A-Za-z0-9._-]+$/
["https://github.com/vim-scripts/#{bundle}/archive/master.tar.gz", bundle]
end
system "mkdir -p #{basename}"