Skip to content

Instantly share code, notes, and snippets.

View laszlovl's full-sized avatar

Laszlo laszlovl

  • Netherlands
View GitHub Profile
@laszlovl
laszlovl / hiera-eyaml.patch
Last active November 27, 2022 19:37
fix hiera-eyaml on ubuntu 22.04
--- /usr/share/rubygems-integration/all/gems/hiera-eyaml-3.2.2/lib/hiera/backend/eyaml/plugins.rb 2022-11-27 18:08:05.525517940 +0000
+++ /usr/share/rubygems-integration/all/gems/hiera-eyaml-3.2.2/lib/hiera/backend/eyaml/plugins.rb 2022-11-27 18:08:26.589682554 +0000
@@ -32,6 +32,7 @@
specs = Gem::VERSION >= "1.6.0" ? source.latest_specs(true) : source.latest_specs
specs.each do |spec|
+ spec = spec.to_spec if spec.respond_to?(:to_spec)
next if @@plugins.include? spec
dependency = spec.dependencies.find { |d| d.name == "hiera-eyaml" }
@laszlovl
laszlovl / autologin.js
Created June 16, 2019 12:59
converse.js autologin
<script>
converse.plugins.add('autologin', {
initialize: function () {
var _converse = this._converse;
_converse.api.listen.on('connected', function () {
if (_converse.trusted && _converse.bare_jid && _converse.connection.pass) {
localStorage.converse_jid = _converse.bare_jid;
localStorage.converse_pass = _converse.connection.pass;
}