Skip to content

Instantly share code, notes, and snippets.

View mindjiver's full-sized avatar
🐒
Working from home

Peter Jönsson mindjiver

🐒
Working from home
View GitHub Profile
@mindjiver
mindjiver / terraform-import.log
Created September 7, 2020 14:40
Import of ibm_network_vlan resource fails
./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 (https://keybase.io/mindjiver) on keybase.
  • I have a public key ASDv4IKmJrj4L3GNsfKYqOFwQLy0ESsdfrjBVevqjAPRuwo

To claim this, I am signing this object:

@mindjiver
mindjiver / logstash.conf
Created May 11, 2015 07:16
logstash rotation config
/var/log/logstash/*.log {
daily
rotate 7
copytruncate
compress
missingok
notifempty
}
@mindjiver
mindjiver / erlang_version.sh
Last active August 29, 2015 14:07
Show Erlang version
#!/bin/bash
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"
@mindjiver
mindjiver / readlink_osx.sh
Created August 6, 2014 12:37
readlink on osx
@mindjiver
mindjiver / ohai_cloudstack.rb
Created July 3, 2014 09:40
ohai_cloudstack.rb
#
# Author:: Peter Joensson (<[email protected]>)
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
@mindjiver
mindjiver / openstack.txt
Created June 26, 2014 22:58
Openstack contribution
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:
https://www.openstack.org/themes/openstack/images/conferences/paris/details-chart.png
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
mindjiver / initial_user.sql.erb
Created June 1, 2014 16:12
Create initial user in Gerrit
-- 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,
NULL,
NULL,
'username:<%= node['gerrit']['admin']['user_name'] %>');
[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
# 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()")}