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 / keybase.md
Created October 30, 2019 15:13
keybase proof

Keybase proof

I hereby claim:

  • I am iartarisi on github.
  • I am iartarisi (https://keybase.io/iartarisi) on keybase.
  • I have a public key ASC8uRAIx1TIr2z74T4qQQ6cdbGzkSmDbMj3Y1E6T4upwQo

To claim this, I am signing this object:

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
@iartarisi
iartarisi / .Xmodmap
Last active August 29, 2015 14:03
Razer Black Widow linux macro keys activation
keycode 192 = minus underscore
@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: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: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: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: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: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
@iartarisi
iartarisi / gist:4078879
Created November 15, 2012 14:28
mock open file
@contextmanager
def mock_open(filename, contents=None, complain=True):
"""Mock __builtin__.open() on a specific filename
Let execution pass through to __builtin__.open() on other
files. Return a BytesIO with :contents: if the file was matched. If
the :contents: parameter is not given or if it None, a BytesIO
instance simulating an empty file is returned.
If :complain: is True (default). Will raise an error if a