Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint).
*
* @author Mardix http://github.com/mardix
* @author Patrik Votoček http://patrik.votocek.cz
* @since Sept 4 2012
@Vrtak-CZ
Vrtak-CZ / dynamicReturnTypeMeta.json
Last active August 29, 2015 14:16 — forked from hrach/dynamicReturnTypeMeta.json
Dynamic Return Type
{
"methodCalls": [
{
"class": "\\Slevomat\\Entity\\EntityManager",
"method": "create",
"position": 0
},
{
"class": "\\Slevomat\\Entity\\EntityManager",
"method": "getByPrimary",
@Vrtak-CZ
Vrtak-CZ / keybase.md
Created April 5, 2016 22:45
keybase.md

Keybase proof

I hereby claim:

  • I am Vrtak-CZ on github.
  • I am vrtakcz (https://keybase.io/vrtakcz) on keybase.
  • I have a public key whose fingerprint is 10B3 A28F 2CB4 7E2E B087 48DE 231E F960 7EB7 2E87

To claim this, I am signing this object:

Zadání pro lektory

  1. Vem kód,
  2. forkni ho,
  3. přidej 2 chyby.

Pak forky projedu a pospojuju.

Cílem je soubor o ~100 řádcích, tak přidávej metody a třídy!

@Vrtak-CZ
Vrtak-CZ / req.md
Last active November 19, 2016 10:30
AWS ECS Dotazy

1. Porty

Zatím mám jenom jednu ECS instanci. A mám problém s portama. Task je v modu Host a container má Port mappings: Container port 80 tcp. Pokud service nastavím Number of tasks na 2. Tj chci aby běželi 2 containery tak dostanu error.

service goodbaby-test-service was unable to place a task because no container instance met all of its requirements. The closest matching container-instance bcf744e7-7ad5-xxxx-xxxx-ab277caa9c0d is already using a port required by your task. For more information, see the Troubleshooting section.

Celé to je napojené na ELB (classic protože TCP).

Keybase proof

I hereby claim:

  • I am vrtak-cz on github.
  • I am vrtakcz (https://keybase.io/vrtakcz) on keybase.
  • I have a public key ASBqZzWB4Cbn2-WQtfos4MVjLSJhvINCcF888dDUO6VQfQo

To claim this, I am signing this object:

@Vrtak-CZ
Vrtak-CZ / live.html
Last active September 17, 2019 16:37
KartPlanet LIVE timing
<iframe id="BestTimes" width="2000" height="3000" scrolling="no" frameborder="0" align="middle"
allowtransparency="true"
src="https://live.racefacer.com/kartplanet?hide_header=0&hide_sidebar=1&theme=black"></iframe>
locals {
task_definition_family = "${local.prefix}-${var.ecs_task_name}"
}
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
data "aws_ecs_task_definition" "hack_get_image" {
count = var.preserve_image ? 1 : 0
task_definition = local.task_definition_family