Skip to content

Instantly share code, notes, and snippets.

Mathieu Sauve-Frankel kisoku

Block or report user

Report or block kisoku

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kisoku / apt_repo_management_
Created Jun 1, 2014
Apt Repository Managers
View apt_repo_management_
Apt Repository Managers
* reprepro -
* freight -
* prm -
* depot -
update-alternatives --install /usr/bin/ruby ruby $bin_path/ruby 10 \
--slave /usr/bin/irb irb $bin_path/irb \
--slave /usr/bin/erb erb $bin_path/erb \
--slave /usr/bin/rdoc rdoc $bin_path/rdoc \
--slave /usr/bin/ri ri $bin_path/ri \
--slave /usr/bin/testrb testrb $bin_path/testrb \
View .kitchen.yml
name: vagrant
name: chef_solo
- name: ubuntu-12.04
View borks.rb
require 'json'
# quickly generate a list of all the locked versions from Berksfile.lock
# in a format suitable for environment['cookbook_versions']
# basically berks apply without berkshelf
lockfile = JSON.load("Berksfile.lock"))
cb_versions = {}
lockfile['sources'].keys.sort.each do |cb|
View stacktrace.out
Using Omnibus configuration file /home/msf/git/omniscan-omnibus/omnibus.rb
Could not extract version information from `git describe`. Setting version to 0.0.0
Building python-crypto for omniscan project
Something went wrong...the Omnibus just ran off the road!
Error raised was:
Don't know how to build task ':build'
View gist:2925977
chef_gem "chef-handler-mail"
gem "chef-handler-mail"
chef_handler "MailHandler" do
source 'chef/handler/mail'
arguments :to_address => "root"
action :nothing
View Rakefile
# ...
# append following lines
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f
View gist:344462
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"node", "q"=>"
", "start"=>"0", "rows"=>"20", "controller"=>"chef_server_api/search", "sort"=>""}
merb : worker (port 4000) ~ 500 "null java.lang.NullPointerException \tat
eader.<init>( \tat org.apache.lucene.queryParser.QueryParser.parse(Qu \tat
va:78) \tat \tat org.apache.solr
.handler.component.QueryComponent.prepare( \tat org.apache.solr.han
dler.component.SearchHandler.handleRequestBody( \tat org.apache.sol
r.handler.RequestHandlerBase.handleRequest( \tat
lr.core.SolrCore.execute( \tat org.apache.solr.servlet.SolrDispatchFilt
View gist:344453
$ knife ssh
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:106:in `get_rest'
from /usr/lib/ruby/1.8/chef/search/query.rb:37:in `search'
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:63:in `configure_session'
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:191:in `run'
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run'
from /usr/bin/knife:25
View gist:344452
knife index rebuild -y
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:116:in `post_rest'
from /usr/lib/ruby/1.8/chef/knife/index_rebuild.rb:35:in `run'
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run'
from /usr/bin/knife:25
You can’t perform that action at this time.