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
kisoku / apt_repo_management_
Created Jun 1, 2014
Apt Repository Managers
View apt_repo_management_
Apt Repository Managers
* reprepro - https://launchpad.net/reprepro
* freight - https://github.com/rcrowley/freight
* prm - https://github.com/dnbert/prm
* depot - https://github.com/coderanger/depot
View update-alternatives.sh
#!/bin/sh
bin_path=/opt/ruby-210/embedded/bin
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
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- 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(IO.read("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'
Backtrace:
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
end.run_action(:enable)
View Rakefile
# ...
# append following lines
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f
end
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 java.io.StringR
eader.<init>(StringReader.java:50) \tat org.apache.lucene.queryParser.QueryParser.parse(Qu
eryParser.java:197) \tat org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.ja
va:78) \tat org.apache.solr.search.QParser.getQuery(QParser.java:131) \tat org.apache.solr
.handler.component.QueryComponent.prepare(QueryComponent.java:89) \tat org.apache.solr.han
dler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) \tat org.apache.sol
r.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) \tat org.apache.so
lr.core.SolrCore.execute(SolrCore.java:1317) \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.