Skip to content

Instantly share code, notes, and snippets.

View igalic's full-sized avatar
🔇
burn out.

Mina Galić igalic

🔇
burn out.
View GitHub Profile
@igalic
igalic / gist:7914309
Created December 11, 2013 16:59
"winning" at TvTropes
<Gork> say; you watched your fair share of anime and shit, i suppose. is there a trope for the following scenario, example naruto (because we both watched that and it was pretty
obvious: first, you get pushed into the world, some characters are created, you see who's the coolest (kakashi) and that the main characters are weak but have potential, bla bla
bla
<Gork> but there's your haven, there's the hokage and a lot of people who are nearly as cool as kakashi and you're pretty confident noone will ever be able to deal with that
<Gork> so then comes the weird attack from snake guy where he kills hokage dude and with that the show introduces the tenseness and tone and stuff
<Gork> all that "yeah it's really *dangerous* in this world, no shit"
<Gork> is there a trope for when that happens?
<jMCg> whorf effect, IIRC.
<jMCg> http://tvtropes.org/pmwiki/pmwiki.php/Main/TheWorfEffect
<jMCg> I'd go from that page, becuase that should contain most of the similarities also.
@igalic
igalic / gist:7916547
Last active December 31, 2015 01:49
apt-get update apt-get install puppetdb apt-cache policy puppetdb
igalic@ppmaster02 ~ % cat /etc/apt/sources.list.d/puppetlabs.list
# puppetlabs
deb http://apt.puppetlabs.com precise main
igalic@ppmaster02 ~ % sudo apt-get update
....
Ign http://apt.postgresql.org precise-pgdg/main Translation-en
Hit http://apt.puppetlabs.com precise Release
Ign http://extras.ubuntu.com precise/main Translation-en_US
Hit http://apt.puppetlabs.com precise/main amd64 Packages
Ign http://extras.ubuntu.com precise/main Translation-en
layout
post

Welcome to reality

<Robi> igor
<Robi> ich bin im 5ten semester meines studiums
<Robi> werde meine erste Bacchelorarbeit schreiben
<Robi> und schreibe C Programme auf Spengergasse Jahr 1 C Nivau...
<Robi> ich geb mir die kugel..
# Run Koan to install all the VMs that aren't installed yet
class kvmhost::config::koan {
# virsh -q list --all | awk '{print $2}' | sort
# cobbler system list | awk '{print $1}' | sort
#
# We need to feed the diff of these two commands into an array of koan execs..
#
# The easiest way to get that difference is to do
# # { cmd-all-is ; cmd-all-should } | sort --unique
@igalic
igalic / gist:8282254
Last active January 2, 2016 09:19
gitlab ugrade, failing
root@git01:/home/git/gitlab# git branch -v
6-3-stable 779b4dc Merge pull request #5795 from maltefiala/6-3-stable
* 6-4-stable 180ab97 Merge pull request #5955 from wishlistmaster/6-4-stable
master 1dfd585 [behind 386] Show rails version in admin area
root@git01:/home/git/gitlab# sudo -H -u git bundle install --without development aws test mysql --deployment
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
You have added to the Gemfile:
@igalic
igalic / gem itself
Last active January 2, 2016 12:29
fpm fails with ruby 2.1.0 to create a puppet package
% sudo gem install -V --no-ri --no-rdoc --install-dir /tmp/package-gem-staging20140107-24337-zbslxg/opt/bw/lib/ruby/gems/2.1.0 --ignore-dependencies --bindir /tmp/package-gem-staging20140107-24337-zbslxg/opt/bw/bin /build/precise_amd64/build/puppet/puppet-3.4.2.gem
GET https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
ERROR: While executing gem ... (NoMethodError)
undefined method `full_name' for nil:NilClass
for gem in $(pkg_dep) ; do \
$(chroot) $(_bindir)/gem install -r --install-dir $(bld_dir)/$(pkg) $${gem} ; \
done
$(sudo) find $(gembldir)/cache -name '*.gem' | xargs -rn1 $(fpm) --verbose -a all -s gem --no-gem-env-shebang -d $(pkg_bdep) --iteration $(pkg_rev)
@igalic
igalic / puppet failing with 2.1.0
Created January 7, 2014 22:05
puppet failing with 2.1.0
Failed to load feature test for microsoft_windows: can't modify frozen Symbol
/opt/bw/lib/ruby/gems/2.1.0/gems/puppet-3.4.2/lib/puppet/util/monkey_patches.rb:78:in `to_proc': can't modify frozen Symbol (RuntimeError)
from /opt/bw/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:691:in `_all'
from /opt/bw/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:882:in `each'
from /opt/bw/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:998:in `reverse_each'
from /opt/bw/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:998:in `latest_specs'
from /opt/bw/lib/ruby/gems/2.1.0/gems/puppet-3.4.2/lib/puppet/util/rubygems.rb:44:in `directories'
from /opt/bw/lib/ruby/gems/2.1.0/gems/puppet-3.4.2/lib/puppet/util/autoload.rb:161:in `gem_directories'
from /opt/bw/lib/ruby/gems/2.1.0/gems/puppet-3.4.2/lib/puppet/util/autoload.rb:165:in `search_directories'
from /opt/bw/lib/ruby/gems/2.1.0/gems/puppet-3.4.2/lib/puppet/util/autoload.rb:88:in `get_file'
class nssrv {
include 'nssrv::install'
include 'nssrv::collect'
}
class nssrv::install {
class { 'unbound':
access => [ '::', '0.0.0.0/0' ]
}
@igalic
igalic / 00: before
Last active January 2, 2016 14:09
everything but the header
root@ns02:~# find /var/lib/puppet/concat/
/var/lib/puppet/concat/
/var/lib/puppet/concat/_etc_unbound_unbound.conf
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments.concat
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/02_unbound-stub-mydb02.esat-ipv4-local-record
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/02_unbound-stub-esat.-local-zone
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/02_unbound-stub-ppmaster02.esat-ipv6-local-record
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/02_unbound-stub-mydb02.esat-ipv6-local-record
/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/05_unbound-stub-122.168.192.in-addr.arpa.