Skip to content

Instantly share code, notes, and snippets.

View iartarisi's full-sized avatar
💭
🐝

Ion Arțăriși iartarisi

💭
🐝
  • London, UK
View GitHub Profile
@iartarisi
iartarisi / .Xmodmap
Last active August 29, 2015 14:03
Razer Black Widow linux macro keys activation
keycode 192 = minus underscore
diff --git a/modules/openstack_project/files/jenkins_job_builder/config/macros.ml
b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml
index 62b62a8..4144127 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml
@@ -177,7 +177,7 @@
if grep rubocop: Strainerfile; then
bundle exec strainer test --cookbooks-path=.cookbooks --only=rubop
else
- bundle exec rubocop
(use http-client intarweb uri-common getopt-long json)
(define authorization-method
'#(basic ((username . "user") (password . "pass"))))
(define (github-get-auth path)
(with-input-from-request
(make-request method: 'GET
uri: (uri-reference (string-append
"https://api.github.com/" path))
@iartarisi
iartarisi / hybrid
Last active October 7, 2015 14:07
Hybrid Identity backend for Keystone on top of the LDAP and SQL backends
This has moved to its own repository at:
https://github.com/SUSE-Cloud/keystone-hybrid-backend
@iartarisi
iartarisi / gist:6886493
Last active December 25, 2015 00:19
openstack-identity attributes readme

Set to some text value if you want templated config files to contain a custom banner at the top of the written file

default["openstack"]["identity"]["custom_template_banner"] = "
# This file autogenerated by Chef
# Do not edit, changes will be overwritten
"
@iartarisi
iartarisi / gist:6886586
Last active December 25, 2015 00:19
openstack-compute attributes

######################################################################## Toggles - These can be overridden at the environment level OS provides packages ######################################################################## Set to some text value if you want templated config files to contain a custom banner at the top of the written file

default["enable_monit"] = false  
default["openstack"]["compute"]["custom_template_banner"] = "
@iartarisi
iartarisi / gist:6886650
Created October 8, 2013 15:37
openstack-network attributes

Set to some text value if you want templated config files to contain a custom banner at the top of the written file

default["openstack"]["network"]["custom_template_banner"] = "
# This file autogenerated by Chef
# Do not edit, changes will be overwritten
"
@iartarisi
iartarisi / gist:6898517
Last active December 25, 2015 01:49
identity attributes generated by knife-cookbook-doc

Attributes

  • node["openstack"]["identity"]["custom_template_banner"] - Defaults to ``.
  • node["credentials"]["EC2"]["admin"]["access"] - Defaults to ``.
  • node["credentials"]["EC2"]["admin"]["secret"] - Defaults to ``.
  • node["openstack"]["identity"]["db"]["username"] - Defaults to keystone.
  • node["openstack"]["identity"]["db"]["migrate"] - Defaults to true.
  • node["openstack"]["identity"]["verbose"] - Defaults to False.
  • node["openstack"]["identity"]["debug"] - Defaults to False.
  • node["openstack"]["identity"]["service_port"] - Defaults to 5000.
@iartarisi
iartarisi / gist:6898559
Created October 9, 2013 09:19
knife-cookbook-doc generated attributes documentation for cookbook-openstack-network

Attributes

  • node["openstack"]["network"]["custom_template_banner"] - Defaults to ``.
  • node["openstack"]["network"]["verbose"] - Defaults to False.
  • node["openstack"]["network"]["debug"] - Defaults to False.
  • node["openstack"]["network"]["region"] - Defaults to RegionOne.
  • node["openstack"]["network"]["service_user"] - Defaults to quantum.
  • node["openstack"]["network"]["service_role"] - Defaults to admin.
  • node["openstack"]["network"]["service_name"] - Defaults to quantum.
  • node["openstack"]["network"]["service_type"] - Defaults to network.
@iartarisi
iartarisi / gist:6608341
Last active September 27, 2016 15:03
if-let in ruby?
(if-let [found (first (filter #(true? ("good" %))))]
  (.do_something found)
if found = myarray.detect {|x| x['good'] == true }
  found.do_something
end