Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gsaslis's full-sized avatar

Yorgos Saslis gsaslis

View GitHub Profile
@gsaslis
gsaslis / InstallFauxhai.md
Last active August 29, 2015 14:19
How to install fauxhai (and run it on an OpenSUSE 13.2 EC2 instance)

So, I woke up on a Sunday morning wanting to play with [ChefSpec] (https://docs.chef.io/chefspec.html) (it's been on my 'to-play-with' list for a while now..), so what better time to play with this than a nice, sunny Sunday morning in Crete.

I started looking into the [examples] (https://github.com/sethvargo/chefspec/tree/master/examples) in order to see how to write some tests. I soon realized an easy addition would be to use Fauxhai to mock the different platforms -- to my disappointment OpenSUSE 13.2 (our current target platform) was not in the list.

Now, at this point, I do realize I could have just said 'oh, well' and moved on with something else.. But you have to understand, I'm sitting in the sun, the birds are singing (really), and it's an overall wonderful day... what choice did I have but to want to contribute to the community!?

According to the [Contributing instructions] (https://github.com/customink/fauxhai/blob/master/CONTRIBUTING.md), I should start a machine and just install ohai and faux

@gsaslis
gsaslis / uninstall_boot2docker.md
Created April 29, 2015 06:49
Uninstall boot2docker

Uninstall steps for boot2docker / Docker

Disclaimer: This is all a direct COPY & PASTE from: http://therealmarv.com/blog/how-to-fully-uninstall-the-offical-docker-os-x-installation/ . I am only keeping here for future use in case that site goes down. This is too useful.

Be sure you’ve only used the official installer. This uninstall guide is not the right one if you have installed Docker with e.g. Homebrew or other methods.

First stop boot2docker and delete the VBox image:

Keybase proof

I hereby claim:

  • I am gsaslis on github.
  • I am yorgos (https://keybase.io/yorgos) on keybase.
  • I have a public key ASBqFgKyq8HZKtTsIJ51NdpWkh_igF9-3Bn_3pRpy1I3Ogo

To claim this, I am signing this object:

@gsaslis
gsaslis / testKitchenIssue.md
Last active December 1, 2016 16:27
Test kitchen Failed to complete #create action: [undefined method `[]' for nil:NilClass]

Kitchen Output

kitchen converge default-opensuse-132
-----> Starting Kitchen (v1.13.2)
-----> Creating <default-opensuse-132>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
&gt;&gt;&gt;&gt;&gt;&gt; Failed to complete #create action: [undefined method `[]' for nil:NilClass] on default-opensuse-132
@gsaslis
gsaslis / aws_cloudfront_distribution.s3_distribution.md
Created December 8, 2016 04:25
terraform aws_cloudfront_distribution.s3_distribution bug

Error applying plan:

1 error(s) occurred:

  • aws_cloudfront_distribution.s3_distribution: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.

Please include the following information in your report:

Terraform Version: 0.7.13

Resource ID: aws_cloudfront_distribution.s3_distribution

@gsaslis
gsaslis / virtualbox_cleanup.sh
Created May 31, 2017 09:47
Bash script to cleanup Virtualbox VMs you might have lying around.
#!/usr/bin/env bash
SAVEIFS=$IFS # save old IFS value
IFS=$'\n' # make newlines the only separator
echo "Powering off all running VMs"
for vm in $(VBoxManage list runningvms | awk '{print substr($2, 2, length($2) - 2)}') # you might want to limit your search by `| grep 'some vm name here' ` *before* the pipe to awk
do
echo "Powering off VM ${vm}"
VBoxManage controlvm ${vm} poweroff
echo "VM ${vm} powered off"
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
@gsaslis
gsaslis / Restcomm_CLA.md
Last active March 20, 2018 09:00
CLA Test

Invdividual Contributor License Agreement

This agreement is between "You" and TeleStax, Inc. (“TeleStax”).

In this agreement, “You” shall mean the owner of the Contribution, as defined below, including any individual or any corporation or entity which has authorized the signatory of this agreement to act on its behalf.

The purpose of this license is to set forth the terms and conditions under which we may use software that you wish to contribute to us for the purpose of use within one or more of our software development projects. Nothing in this license changes your ongoing right to use your contributions as you wish for any purpose. By clicking the Sign button below, I hereby agree to the following terms and conditions:

  1. As used in this agreement, the term “Contribution” shall mean any software, including source code and/or object code, documentation, or modifications to the foregoing, which You make available or submit to TeleStax in any form. Contributions shall not include any software or docum
@gsaslis
gsaslis / Docker_CE-Centos.asciidoc
Last active December 3, 2018 09:22
Docker CE for Centos

Install Docker-CE (for Centos)

sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

sudo yum-config-manager \
    --add-repo \
@gsaslis
gsaslis / elasticsearch_openshift.asciidoc
Last active October 22, 2019 12:30
Notes on how to deploy Elasticsearch on OpenShift

Deploying Elasticsearch on Openshift

Notes to self. Or if anyone can help with this.

1. Helm charts ⇒ Openshift

Use Elastic’s helm charts as basis (couldn’t find anything more suitable - e.g. operator or Openshift Templates ):

I couldn’t use Helm itself due to permissions issues related to: helm/helm#1918