Skip to content

Instantly share code, notes, and snippets.

Yorgos Saslis gsaslis

Block or report user

Report or block gsaslis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gsaslis
gsaslis / DistGitCreateSpec.groovy
Last active May 8, 2019
Invalid mocked method
View DistGitCreateSpec.groovy
package com.redhat.threescale.productization
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification
class DistGitCreateSpec extends JenkinsPipelineSpecification {
def distGit = null
Map <String, ?> config = null
def mockValidatingUtils = null
def mockDistGitUtils = null
@gsaslis
gsaslis / docker_rhel.md
Last active Jan 11, 2019
installation.md
View docker_rhel.md

Even though I am following Red Hat's instructions about how to install Docker on RHEL, I am facing the below problem:

Here's what I'm using to install Docker:

subscription-manager repos --enable=rhel-7-server-rpms
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager repos --enable=rhel-7-server-optional-rpms

yum install docker device-mapper-libs device-mapper-event-libs
@gsaslis
gsaslis / 3scale_Install.asciidoc
Last active Nov 15, 2019
Deploy 3scale API Management on Minishift
View 3scale_Install.asciidoc

Installing 3scale on your Laptop

Pre-requisites

.or your desktop. Or a VM in the cloud. Or wherever it is you want to deploy 3scale to start exploring!
  • ❏ Minishift: 3scale is currently targeted for deployment on openshift, and minishift is the recommended development environment for that.

  • oc command-line tool [optional. you can also use the web-based interface.]

tl;dr

@gsaslis
gsaslis / elasticsearch_openshift.asciidoc
Last active Oct 22, 2019
Notes on how to deploy Elasticsearch on OpenShift
View elasticsearch_openshift.asciidoc

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: https://github.com/helm/helm/issues/1918

View Docker_CE-Centos.asciidoc

Install Docker-CE (for Centos)

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

sudo yum-config-manager \
    --add-repo \
View Restcomm_CLA.md

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
View _opt_Restcomm-JBoss-AS7_standalone_configuration_standalone-sip.xml
<?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 / virtualbox_cleanup.sh
Created May 31, 2017
Bash script to cleanup Virtualbox VMs you might have lying around.
View virtualbox_cleanup.sh
#!/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"
@gsaslis
gsaslis / aws_cloudfront_distribution.s3_distribution.md
Created Dec 8, 2016
terraform aws_cloudfront_distribution.s3_distribution bug
View aws_cloudfront_distribution.s3_distribution.md

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 / testKitchenIssue.md
Last active Dec 1, 2016
Test kitchen Failed to complete #create action: [undefined method `[]' for nil:NilClass]
View testKitchenIssue.md

Kitchen Output

kitchen converge default-opensuse-132
-----> Starting Kitchen (v1.13.2)
-----> Creating <default-opensuse-132>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [undefined method `[]' for nil:NilClass] on default-opensuse-132
You can’t perform that action at this time.