Skip to content

Instantly share code, notes, and snippets.

@gtmanfred
gtmanfred / -
Created January 18, 2016 18:43
def update_user(self, name_or_id, **kwargs):
self.list_users.invalidate(self)
user = self.get_user(name_or_id)
# normalized dict won't work
kwargs['user'] = self.get_user_by_id(user['id'], normalize=False)
password = None
if self.cloud_config.get_api_version('identity') != '3':
# Do not pass v3 args to a v2 keystone.
kwargs.pop('domain_id', None)
@gtmanfred
gtmanfred / -
Created January 18, 2016 18:39
diff --git a/shade/openstackcloud.py b/shade/openstackcloud.py
index 706c8a2..c30c694 100644
--- a/shade/openstackcloud.py
+++ b/shade/openstackcloud.py
@@ -510,10 +510,11 @@ class OpenStackCloud(object):
# normalized dict won't work
kwargs['user'] = self.get_user_by_id(user['id'], normalize=False)
+ password = None
if self.cloud_config.get_api_version('identity') != '3':
diff --git a/virtualbox/machine.go b/virtualbox/machine.go
index dca7ef6..6a27999 100644
--- a/virtualbox/machine.go
+++ b/virtualbox/machine.go
@@ -28,7 +28,6 @@ const (
F_cpuhotplug
F_pae
F_longmode
- F_synthcpu
F_hpet
# Maintainer: Yochai Gal <yochaigal@gmail.com>
pkgname=supermeatboy
pkgver=06072012
pkgrel=5
pkgdesc="Super Meat Boy is a tough as nails platformer where you play as an animated cube of meat."
url="http://www.supermeatboy.com/"
license=('custom')
arch=('i686' 'x86_64')
groups=("humble-indie-bundle4" "humble-indie-bundle5" "games")
depends=('openal' 'sdl')
@gtmanfred
gtmanfred / usb-rend PKGBUILD
Created May 15, 2012 05:56 — forked from MastodonHQ/usb-rend PKGBUILD
usb-rend-1.1 PKGBUILD
#Maintainer: Justin Strickland <MastodonHQ@gmail.com>
pkgname="usb-rend"
pkgver="1.1"
pkgrel=1
#epoch=
pkgdesc="Usb Debugging Tools originally from the xboxdrv project, with an addition."
arch=(i686)
#url=""
license=('GPL')
#groups=()
# Copyright 2012 ArcheyDevil. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
@gtmanfred
gtmanfred / scanbarcode
Created January 20, 2012 21:14
scan 2d and 3d barcodes
#!/bin/bash
# Save this as a text file and make it executable.
# This script finds and decodes barcodes in a selection of the screen.
# Nice to have as a shortcut in your gnome-panel.
# When you run this script your pointer will change into a selection cursor
# and you then must select a portion of the screen to be analyzed.