Skip to content

Instantly share code, notes, and snippets.

include_recipe "gentoo::portage"
use_flags << node[:subversion][:use_flags].to_a.each do |use_flag|
"/bin/egrep '(\"| )#{bash-completion}{use_flag}(\"| )' | "
end
bash "test_use_flags" do
user "root"
code <<-EOC
@bonyiii
bonyiii / node.recipe? in chef 0.9 (hun)
Created June 30, 2010 08:27
node.recipe? in chef 0.9 (hun)
# Így lehet a 0.9 -ben ellenőrzini, hogy az adott recepet szerepel -e a node run_list -jében.
node.run_list.include?("monit")
# Ha van egy receptem amiben attól függően akarok valamit csinálni, hogy egy másik recepet installálva van -e vagy sem
# akkor a fenti szintakszissal ellenőrizhetem le, hogy az recept le fog -e futni.
# rövidebben
if node.run_list?(monit")
monit_check "syslog-ng"
end
@bonyiii
bonyiii / git-shell
Created August 16, 2010 08:38
git-shell
under gentoo git-shell is at /usr/bin/git-shell
Put in /etc/passwd like this
git:x:1000:1005::/opt/git:/usr/bin/git-shell
@bonyiii
bonyiii / Missing IUSE
Created August 18, 2010 08:54
missing IUSE
Nem tudtam telepíteni a webrat -et mert azt mondta, hogy:
emerge: there are no ebuilds built with USE flags to satisfy ">=dev-ruby/rack-1.0[ruby_targets_ruby18]".
!!! One of the following packages is required to complete your request:
- dev-ruby/rack-1.0.1 (Missing IUSE: ruby_targets_ruby18)
- dev-ruby/rack-1.0.0 (Missing IUSE: ruby_targets_ruby18)
(dependency required by "dev-ruby/webrat-0.7.1" [ebuild])
(dependency required by "webrat" [argument])
Mindig a "keywords" -el van baj ilyenkor.
A legutóbb az volt, hogy a rack-1.0.1 ebuild nem volt jó és a rack-1.0.1-r1 -ben javították a hibát.
@bonyiii
bonyiii / gtk beállítás kde alatt
Created August 26, 2010 09:27
gtk beállítás kde alatt
http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml
In order to get configuration options in System Settings->Appearance->GTK Styles and Fonts, you have to install kde-misc/kcm_gtk.
emerge -av kcm_gtk
# a rake18 fájlt nem taláta
cd /usr/bin/
ln -s rake rake18
@bonyiii
bonyiii / list all avilable gem version
Created November 13, 2010 20:06
list all avilable gem version
gem list -d rmagick -ra
@bonyiii
bonyiii / fadeout test with jasmine
Created December 12, 2010 21:16
fadeout test with jasmine
describe("Flash Message", function(){
/**
* Testing fade out with jasmine
* @param {Object} 'flash.html'
*/
it("check flash message fade out", function(){
loadFixtures('flash.html');
waits(2500);
runs(function(){
@bonyiii
bonyiii / gist:755356
Created December 26, 2010 11:10
If ruby rake missing libcrypto.so under opensuse 11.3

Under opensuse 11.3 on an x86_64 machnie in case of: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

as root do: cd /lib64 ln -s libcrypto.so.1.0.0 libcrypto.so.0.9.8

@bonyiii
bonyiii / gist:762824
Created January 2, 2011 21:19
git create remote tracking branch from local branch
1;
git branch BranchName
git push origin BranchName
git -d BranchName
git branch --track BranchName origin/BranchName
# or
2; Backup all local branches to server