Skip to content

Instantly share code, notes, and snippets.

1="Unsupported protocol. This build of curl has no support for this protocol."
2="Failed to initialize."
3="URL malformed. The syntax was not correct."
4="A feature or option that was needed to perform the desired request was not enabled or was explicitly disabled at build-time. To make curl able to do this, you probably need another build of libcurl!"
5="Couldn't resolve proxy. The given proxy host could not be resolved."
6="Couldn't resolve host. The given remote host was not resolved."
7="Failed to connect to host."
8="Weird server reply. The server sent data curl couldn't parse."
9="FTP access denied. The server denied login or denied access to the particular resource or directory you wanted to reach. Most often you tried to change to a directory that doesn't exist on the server."
10="FTP accept failed. While waiting for the server to connect back when an active FTP session is used, an error code was sent over the control connection or similar."
@gitkodak
gitkodak / gist:68de4aa4693572c4632effc710d1e118
Last active May 12, 2022 19:39
Mapping vmware vsphere disks to linux devices with vsphere API
I'm trying to automatically add disks to Linux VMs on a vmware hypervisor through the vsphere API.
This isn't as simple as it sounds. Linux SCSI devices, as you probably know, use the format:
CONTROLLER:BUS:SCSI_ID:LUN
for addressing SCSI disks. For example:
[3:0:2:0] disk VMware Virtual disk 1.0 /dev/sdk