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 / gist:7457278
Last active August 31, 2018 07:53
CloudStack MAC address scheme
You can operate an external-to-CloudStack DHCP server by filtering the MAC addresses that
CloudStack generates for VMs. CloudStack uses the following logic to assign MAC addresses.
06:<zone-id>:<random>:<random>:<random>:<random>
Configuring your external DHCP server to ignore MAC addresses that begin with 06: should
permit you to allow a non-CloudStack DHCP server. Please note that you'll also need to
exclude your private and public ranges from the IP address range that your external DHCP
server hands out.
@mindjiver
mindjiver / Smacker.java
Created January 13, 2012 08:56
Smack API example
/**
*
*/
package se.redsox;
import org.jivesoftware.smack.Connection;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.Roster;
@mindjiver
mindjiver / gist:2241594
Created March 29, 2012 18:26
ClearCase life saver commands.
# search for a label in the current VOB.
cleartool find -all -ver "lbtype(!*)" -print
# search for a branch in the current VOB.
cleartool find -all -ver "brtype(!*)" -print
# show all checkedout files in current VOB.
cleartool lsco -all -cview
# checkin all checkedout files.
@mindjiver
mindjiver / packer.log
Created January 12, 2014 23:15
First actually working version!
cloudstack output will be in this color.
==> cloudstack: Reading in SSH private key from local disk
==> cloudstack: Creating virtual machine...
==> cloudstack: Waiting for virtual machine to become active...
==> cloudstack: Waiting for SSH to become available...
==> cloudstack: Connected to SSH!
==> cloudstack: Provisioning with shell script: scripts/motd.sh
==> cloudstack: Provisioning with shell script: scripts/version.sh
==> cloudstack: Stopping Virtual Machine...
cloudstack output will be in this color.
==> cloudstack: Creating temporary ssh key for virtual machine...
==> cloudstack: Creating virtual machine...
==> cloudstack: Waiting for virtual machine to become active...
==> cloudstack: Error waiting for virtual machine to become active: Received HTTP client/server error from CloudStack: 431
==> cloudstack: Destroying virtual machine...
==> cloudstack: Deleting temporary ssh key...
Build 'cloudstack' errored: Error waiting for virtual machine to become active: Received HTTP client/server error from CloudStack: 431
../../mitchellh/packer/builder/cloudstack/api.go:261: invalid operation: response.(ListVirtualMachinesResponse).Listvirtualmachinesresponse[0] (index of type struct { Count float64 "json:\"count\""; Virtualmachine []struct { Account string "json:\"account\""; Cpunumber float64 "json:\"cpunumber\""; Cpuspeed float64 "json:\"cpuspeed\""; Created string "json:\"created\""; Displayname string "json:\"displayname\""; Domain string "json:\"domain\""; Domainid string "json:\"domainid\""; Guestosid string "json:\"guestosid\""; Haenable bool "json:\"haenable\""; Hypervisor string "json:\"hypervisor\""; ID string "json:\"id\""; Keypair string "json:\"keypair\""; Memory float64 "json:\"memory\""; Name string "json:\"name\""; Nic []struct { Gateway string "json:\"gateway\""; ID string "json:\"id\""; Ipaddress string "json:\"ipaddress\""; Isdefault bool "json:\"isdefault\""; Macaddress string "json:\"macaddress\""; Netmask string "json:\"netmask\""; Networkid string "json:\"networkid\""; Traffictype string "json:\"traffic
@mindjiver
mindjiver / facing_error.txt
Created January 8, 2014 15:43
I am facing error
Hi ,
I am facing with this error
fatal:Mixlib::ShellOut::ShellCommandFailed:expected process to exit with [0]
but received 1
Please give me solution ASAP.
Thanks
seema Khalkar
@mindjiver
mindjiver / tunnelblick-crash.txt
Created October 24, 2013 21:03
Tunnelblick crashing on fresh Mavericks install.
peter.jonsson ⮀ rodchenko ⮀ ~ ⮀ $ ⮀/Applications/Tunnelblick.app/Contents/MacOS/Tunnelblick Desktop/klarna.tblk/
2013-10-24 22:54:32.706 Tunnelblick[17898:507] Set program update feedURL to https://www.tunnelblick.net/appcast-b.rss
2013-10-24 22:54:32.739 Tunnelblick[17898:507] Received fatal signal Bus error (10). Stack trace: (
0 Tunnelblick 0x000124d7 signal_handler + 284
1 libsystem_platform.dylib 0x9792cdeb _sigtramp + 43
2 ??? 0xffffffff 0x0 + 4294967295
3 Tunnelblick 0x0001b74d -[MenuController applicationDidFinishLaunching:] + 552
4 Foundation 0x98190692 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 49
5 CoreFoundation 0x9ad0e7e4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 CoreFoundation 0x9abf03fb _CFXNotificationPost + 3435