Skip to content

Instantly share code, notes, and snippets.

View polaroi8d's full-sized avatar
🦎
FOSS is the future

Levente Orban polaroi8d

🦎
FOSS is the future
View GitHub Profile
@polaroi8d
polaroi8d / bootstrap.sh
Last active October 30, 2023 08:43
Azure Marketplace: dyrector.io Platform
#!/bin/bash
set -eu
sudo su - root
cd /home/dyrectorio/
# Install Docker on RHEL 8.3
echo "---- Starting install docker services... ----" >>dyrectorio_marketplace_bootstrap.log
sudo yum install -y yum-utils
@polaroi8d
polaroi8d / term2-profile.json
Created May 8, 2023 07:55
My personal Term2 profile.
{
"Ansi 7 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Tags" : [
],
"Ansi 12 Color" : {
@polaroi8d
polaroi8d / gist:9a9b21c5f01378acce83688acd4c2ac5
Created January 16, 2019 16:17
Gitlab CI + Testcontainer + Localstack
Problems, docker in docker
https://gitlab.com/gitlab-org/gitlab-runner/issues/3251
The Gitlab CI run with gitlab-runner which running on our computers in a docker. So first we need to configurate a docker in docker architeture.
The CI needs an image with preinstalled java8 and docker. If we don't have one of them we need to install it manually or with before script. This is the first
problem, some docker images has preinstalled docker and java, but can't use with testcontainer. (lots of error)
some usefull link releated to this topic:
image: docker:latest
services:
- docker:dind
variables:
#not valid, only for tests
DOCKER_DRIVER: overlay
SPRING_PROFILES_ACTIVE: gitlab-ci
OAUTH_REDIRECT_URI: "http://localhost:8091/fitbit-oauth"
DOCKER_REGISTRY: "registry.gitlab.com"
This file has been truncated, but you can view the full file.
Running with gitlab-runner 11.6.0 (f100a208)
 on orbanl-pc oqoDvEDa
Using Docker executor with image java:openjdk-8 ...
Starting service localstack/localstack:latest ...
Pulling docker image localstack/localstack:latest ...
Using docker image sha256:c583aaf39486df5a2c853f743a4a79d30074c781b65b76db7ee93864e72f1735 for localstack/localstack:latest ...
Waiting for services to be up and running...

*** WARNING: Service runner-oqoDvEDa-project-3775391-concurrent-0-localstack__localstack-0 probably didn't start properly.
Jani | Pikáns pizza | 26cm | 1090.-
xZoli | Gyros pizza | 30cm | 1600.- + tzaziki ( Mészáros és társka Kft. ) 400.-
Szilard | Négy sajtos | 30cm | 1330.-
Orsi | Négy sajtos | 26cm | 880.-
Márió | Sonka kukorica | 26cm | 930.-
S. István | Gombás-olivás | 26cm | 930.-
Ákos | Kapros túros | 26cm | 990.-
xLevi | Gyrosos | 30cm | 1600.- tzaziki 400
Viktor | Magyaros | 26cm | 1190.-
Máté | Tarjás | 26cm | 1090.-
<div ng-if="(vm.contractsList[vm.contractsList.length-1].installment === 20000 && vm.contractNumber === 3)">
</div>
@polaroi8d
polaroi8d / test.js
Last active April 7, 2017 07:10
Test javascript file, to the JerryScript debugger showcase.
print("how-to-debug");
function pow(n) {
return n*n
}
function rectangle(a,b)
{
var rectangleObject = {};
print("function-rectangle");
@polaroi8d
polaroi8d / value_name_scripter.sh
Created March 23, 2017 17:11
If you want to rename a lots of variable, use this script instead of CTRL + H command ;)
#!/bin/bash
FROM=$1
TO=$2
DIR=$PWD
FILES=`ls -1 "$DIR"`
for file in "$FILES"
do
sed -i -e "s/${1}/${2}/g" ${file}
// square 1 2 rectangle 5 rectangle 7 8 fringe -1 untouched 0
// 3 4 6
package szte.mi.tiles;
public class DFSTreeTiles extends AbstractTiles {
// ------------------------------------------------------------------