Skip to content

Instantly share code, notes, and snippets.

View gsaslis's full-sized avatar

Yorgos Saslis gsaslis

View GitHub Profile
@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

{"level":"info","ts":1593446313.444076,"logger":"cmd","msg":"Operator Version: 0.6.0"}
{"level":"info","ts":1593446313.4441144,"logger":"cmd","msg":"Go Version: go1.13.4"}
{"level":"info","ts":1593446313.444122,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1593446313.4441288,"logger":"cmd","msg":"Version of operator-sdk: v0.15.2"}
{"level":"info","ts":1593446313.444699,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1593446316.1480718,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1593446316.154836,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1593446318.8108034,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
{"level":"info","ts":1593446318.81121,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1593446342.765852,"logger":"metrics","msg":"Metrics Service object created","Service.Name":"threescale-operator-metrics","Service.Namesp
@gsaslis
gsaslis / README.markdown
Last active February 19, 2021 10:05
Download rubygems.org gems from Gemfile.lock

Fetch Rubygems.org dependencies

When you only have / want to use a Gemfile.lock to retrieve the Ruby dependencies for a project, you can use this little ruby script.

There might be several reasons why you may want to do this:

  • You may not have the original Gemfile available
  • You may not want to interpret the ruby code in Gemfiles to avoid arbitrary code execution risks.

Usage

@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"
@gsaslis
gsaslis / Step0_Web3-Greece_SmartContracts_Introduction.asciidoc
Last active December 16, 2021 20:17
Web3 Greece - Publishing our first smart contract on Ethereum
@gsaslis
gsaslis / README.md
Last active September 28, 2022 18:13
Radicle VS Code Extension

Radicle VS Code Extension

Push / Pull / Sync buttons in Source Control Panel

At the top, next to the Commit button.

Radicle Panel with 3 buttons: Push / Pull / Sync

New panel with Radicle icon in the Primary Sidebar. For now it just has 3 buttons: Push, Pull and Sync.

@gsaslis
gsaslis / answer.txt
Created January 22, 2023 09:38
Απάντηση σε unsolicited emails πολιτικών
Καλημέρα σας,
Βάσει νομοθεσίας 4624/2019 (GDPR), θα ήθελα παρακαλώ να με ενημερώσετε πότε έκανα εγγραφή για να λαμβάνω αυτές τις ενημερώσεις καθώς και να μου στείλετε αντίγραφο όλων των προσωπικών δεδομένων που τηρείτε για εμένα.
Ευχαριστώ.
```bash
running 101 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test cob::identity::test::test_ordering ... ok
test cob::common::test::test_color ... ok
test cob::issue::test::test_issue_create_and_get ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
@gsaslis
gsaslis / 3scale_Install.asciidoc
Last active December 18, 2023 19:37
Deploy 3scale API Management on Minishift

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