Skip to content

Instantly share code, notes, and snippets.

@x-drum
x-drum / ssh-agent-shutdown.sh
Last active May 17, 2022 16:43
ssh-agent: Archlinux plasma 5
#!/bin/sh
## place in ~/.config/plasma-workspace/shutdown/ssh-agent-shutdown.sh
## exec order: "kde shutdown"
$SSH_AGENT_PID" ] || eval "$(ssh-agent -k)"
@fifthecho
fifthecho / Ansible CloudStack Provisioning with libcloud
Last active August 29, 2015 14:00
Ansible CloudStack Provisioning with libcloud
{'ex_keyname': 'jmoody_fifthecho', 'image': <NodeImage: id=85d5a794-c3f4-49fd-afee-19132a850f79, name=Datapipe: CentOS 6 (64-bit), driver=CloudStack ...>, 'location': <NodeLocation: id=5, name=New York Metro, country=Unknown, driver=CloudStack>, 'ex_security_groups': ['default', 'TestSG'], 'size': <NodeSize: id=44, name=kilo-2-20, ram=2048 disk=0 bandwidth=0 price=0 driver=CloudStack ...>}
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/jmoody/.ansible/tmp/ansible-tmp-1399056893.0-119747009807487/cloudstack in <module>()
2544 return '%.2f %s' % (float(size)/ limit, suffix)
2545
-> 2546 main()
2547
/home/jmoody/.ansible/tmp/ansible-tmp-1399056893.0-119747009807487/cloudstack in main()