This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import redis | |
r = redis.StrictRedis(host='localhost', port=6379, db=0) | |
# To debug code on a single key you can use this instead of the for loops: | |
# key = r.randomkey() | |
# Delete all keys not accessed since 'idletime' | |
for key in r.scan_iter("*"): | |
idle = r.object("idletime", key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: HOT to deploy a single instance, within its network, with a floating IP | |
parameters: | |
vm_key: | |
type: string | |
label: "SSH key name (must exist)" | |
default: macsp | |
vm_flavor: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git show :group_vars/all/vault | grep ^'$ANSIBLE_VAULT' | |
export encrypted=$? | |
if [ $encrypted -ne 0 ]; then | |
echo Ansible Vault not encrypted, refusing to commit | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Saverio Proto | |
email = [email protected] | |
[core] | |
editor = vim | |
autocrlf = input | |
[color] | |
diff = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04b5d60c1db6371eec9515a8a60a2e58f0fba2cf90c1a847e8768d61ccc5b258fd468f11c4648c5966416c42fbfe946846216e5a08c9f7bf57c1fbb3eabc7810d2;haniehrajabi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Example of a user's .screenrc file | |
# | |
# This is how one can set a reattach password: | |
# password ODSJQf.4IJN7E # "1234" | |
# no annoying audible bell, please | |
vbell off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: default | |
annotations: | |
storageclass.beta.kubernetes.io/is-default-class: "true" | |
provisioner: kubernetes.io/cinder | |
--- | |
kind: PersistentVolumeClaim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Boot the VMs with the following cloud-init, and then start this code: | |
#cloud-config | |
phone_home: | |
url: http://x.x.x.x:8000/$INSTANCE_ID/ | |
post: [ hostname, fqdn ] | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 99f7c8c9ad26539473f65f30547ba548c02ab4fe | |
Author: Mark Mielke <[email protected]> | |
Date: Thu Mar 9 23:16:51 2017 -0500 | |
Image list function should normalize owner filter | |
The api.glance.image_list_detailed() function accepts a list of | |
filters which it then translates into a form that is acceptable for | |
Glance v1 or Glance v2. These translations included support for | |
mapping 'is_public' to 'visibility', but did not include support for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js | |
index 391b8e7..42a8f50 100644 | |
--- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js | |
+++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js | |
@@ -419,7 +419,7 @@ | |
ctrl.currentBootSource = selectedSource; | |
if ((selectedSource === bootSourceTypes.IMAGE || | |
selectedSource === bootSourceTypes.INSTANCE_SNAPSHOT) && $scope.model.volumeBootable) { | |
- $scope.model.newInstanceSpec.vol_create = true; | |
+ $scope.model.newInstanceSpec.vol_create = false; |