Skip to content

Instantly share code, notes, and snippets.

Working from home

Peter Jönsson mindjiver

Working from home
View GitHub Profile
mindjiver / terraform-import.log
Created Sep 7, 2020
Import of ibm_network_vlan resource fails
View terraform-import.log
./terraform import -var-file=eu-fr2/terraform.tfvars 'module.iks.ibm_network_vlan.private_vlans["par04"]' 2941882
module.iks.ibm_network_vlan.private_vlans["par04"]: Importing from ID "2941882"...
module.iks.ibm_network_vlan.private_vlans["par04"]: Import prepared!
Prepared ibm_network_vlan for import
module.iks.ibm_network_vlan.private_vlans["par04"]: Refreshing state... [id=2941882]
Error: Error communicating with the API: invalid character '<' looking for beginning of value

Keybase proof

I hereby claim:

  • I am mindjiver on github.
  • I am mindjiver ( on keybase.
  • I have a public key ASDv4IKmJrj4L3GNsfKYqOFwQLy0ESsdfrjBVevqjAPRuwo

To claim this, I am signing this object:

mindjiver / logstash.conf
Created May 11, 2015
logstash rotation config
View logstash.conf
/var/log/logstash/*.log {
rotate 7
mindjiver /
Last active Aug 29, 2015
Show Erlang version
erlang_version=$(erl -eval 'erlang:display(erlang:system_info(system_version)), halt().' -noshell |
sed -e 's@"@@g' | sed -e 's@\\n@@g')
echo "$erlang_version"
View ohai_cloudstack.rb
# Author:: Peter Joensson (<>)
# Copyright:: Copyright (c) 2014 Peter Joensson
# License:: Apache License, Version 2.0
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
mindjiver / openstack.txt
Created Jun 26, 2014
Openstack contribution
View openstack.txt
Dear Peter Jönsson,
Thank you for contributing to OpenStack. We hope you will be able to join
us in Paris for the next Design Summit, Nov 3-7, 2014. The main
conference will run Monday - Wednesday and the Design Summit will run
Tuesday - Friday. View this image for reference:
We're providing all ATCs who contributed to the Icehouse release or
Juno release (prior to Aug 21, 2014) with a *600 USD discount*
mindjiver / initial_user.sql.erb
Created Jun 1, 2014
Create initial user in Gerrit
View initial_user.sql.erb
-- Insert the base values for the intial Gerrit user. This user will
-- become the administrator of the server. As this user is a local
-- user it will not be able to login through the web UI.
-- Create a local user, we need to insertions for this.
INSERT INTO account_external_ids VALUES(1000000,
'username:<%= node['gerrit']['admin']['user_name'] %>');
View bad_day.log
[stash@stash-prod-app1 792]$ git fsck
error: unable to unpack 1e359384837decb8ab7b5afb2784e19297e00184 header
error: inflateEnd: stream consistency error (no message)
fatal: loose object 1e359384837decb8ab7b5afb2784e19297e00184 (stored in ./objects/1e/359384837decb8ab7b5afb2784e19297e00184) is corrupt
View mock.spec
# next four lines substituted by autoconf
%define major 1
%define minor 1
%define sub 32
%define extralevel %{nil}
%define release_name mock
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}