Skip to content

Instantly share code, notes, and snippets.

View ipolyzos's full-sized avatar
🏠
Working from home

Ioannis Polyzos ipolyzos

🏠
Working from home
View GitHub Profile
@ipolyzos
ipolyzos / gnome.fonts.settings
Created April 16, 2023 21:48
Gnome Fonts Config Settingas
Window Title: Roboto Bold 11
Interface: Noto Sans Regular 10
Document: Noto Sans Regular 11
Monospace: Fira Mono Regular 11
Hinting: Slight
Antialiasing: Subpixel
@ipolyzos
ipolyzos / get_current_ip.ps
Last active January 19, 2021 16:14
Get current IP address in PowerShell script
# Get current IP address in PowerShell
$ip = Invoke-RestMethod http://ipinfo.io/json | Select-Object -exp ip
@ipolyzos
ipolyzos / clean_all_aws_batch_compute_envs.sh
Created October 23, 2020 00:13
Cleanup AWS Batch Compute Environments
#!/usr/bin/env bash
# NOTE
# this script expects the user to be logged in
# to the right AWS account and have the proper
# credential to delete the compute environments
# Create a list with all the compute environments
CENV=($(aws batch describe-compute-environments --query 'computeEnvironments[*].computeEnvironmentName' --output text))
@ipolyzos
ipolyzos / xhyve.md
Last active April 30, 2020 23:17
Installation of docker-machine-driver-xhyve on MacOS

Install docker-machine-driver-xhyve

docker-machine/minikube/minishift is a driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)

For more you can refer to github.com/machine-drivers/docker-machine-driver-xhyve

Installation instructions

$ brew install docker-machine-driver-xhyve --HEAD
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
@ipolyzos
ipolyzos / daemon.json
Created April 24, 2020 13:19
allow to run docker registries in the local network
# /etc/docker/daemon.json
{
"insecure-registries":["172.30.0.0/16"]
}
# following a:
# $ sudo systemctl daemon-reload ; sudo systemctl restart docker
@ipolyzos
ipolyzos / wod.sh
Last active March 16, 2020 13:17
Weblogic Operator Deploy (wod) aim to help on deploying the weblogic operator in a aubernetes cluster.
#!/bin/bash
# MIT License
#
# Copyright (c) 2020 Ioannis Polyzos
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ipolyzos
ipolyzos / dit.sh
Last active March 28, 2020 00:29
A simple bash script to transfer docker images between container registries.
#!/bin/bash
# MIT License
#
# Copyright (c) 2020 Ioannis Polyzos
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ipolyzos
ipolyzos / setupMacOSVM.sh
Created March 7, 2020 14:09
automate the VirtuaBox VM configuration to host MacOS
#!/bin/bash
# This script to aims to automate the VirtuaBox VM
# configuration to host MacOS
# Exit immediately if a pipeline returns a non-zero status.
set -o errexit
# Return value of a pipeline is the value of the last command to exit with a non-zero status or zero
# if all commands in the pipeline exit successfully.
@ipolyzos
ipolyzos / note_forkjoin_parallelism
Last active July 23, 2019 15:15
Change the Fork-Join Pool parallelism level
# e.g
System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism","8");

Keybase proof

I hereby claim:

  • I am ipolyzos on github.
  • I am ipolyzos (https://keybase.io/ipolyzos) on keybase.
  • I have a public key whose fingerprint is 8B63 BA1E EA95 D087 825C 0CC7 0253 B591 1EC0 835C

To claim this, I am signing this object: