Skip to content

Instantly share code, notes, and snippets.

View sagikazarmark's full-sized avatar

Márk Sági-Kazár sagikazarmark

View GitHub Profile
@sagikazarmark
sagikazarmark / ideas.md
Created March 18, 2016 22:01
Blog ideas

Blog ideas

I am going to start a new blog soon. The specialty will be that it will be dual language: English and Hungarian.

Nowadays writting in English is the standard in IT. However, I would like to promote development in my country as well, so every or most of my articles will be translated to both languages.

My ideas so far:

  • Introduction
RUN set -xe \
&& apk add --no-cache \
coreutils \
freetype-dev \
libjpeg-turbo-dev \
libltdl \
libmcrypt-dev \
libpng-dev \
icu icu-libs icu-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
@sagikazarmark
sagikazarmark / symfony-container-graph.php
Last active August 1, 2020 06:19
Symfony container graph
#!/usr/bin/env php
<?php
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
@sagikazarmark
sagikazarmark / glide.sh
Created January 6, 2017 08:04
Glide installer
#!/bin/sh
if [ ! -d "$1" ]; then
echo "The given directory does not exists" 1>&2
exit 1
fi
GLIDE_OS_ARCH=`go env GOHOSTOS`-`go env GOHOSTARCH`
GLIDE_TAG=$(curl -s https://glide.sh/version)
GLIDE_LATEST_RELEASE_URL="https://github.com/Masterminds/glide/releases/download/${GLIDE_TAG}/glide-${GLIDE_TAG}-${GLIDE_OS_ARCH}.tar.gz"
@sagikazarmark
sagikazarmark / liquibase.sh
Created January 23, 2017 16:19
Liquibase installer
#!/bin/sh
#
# Travis script for installing Liquibase
# http://www.liquibase.org
#
if [ ! -d "$1" -o ! -d "$2" ]; then
echo "The installation and/or binary directory does not exists" 1>&2
exit 1
fi
@sagikazarmark
sagikazarmark / docker-compose.sh
Created January 24, 2017 23:04
Docker Compose Travis installer
#!/bin/bash
#
# Travis script to install latest Docker Compose
# See: http://elliot.land/post/using-docker-compose-on-travis-ci
#
sudo apt-get update
sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
docker-compose --version
sudo rm /usr/local/bin/docker-compose
@sagikazarmark
sagikazarmark / Makefile
Last active April 20, 2017 22:29
Makefile with Docker support
DOCKER_IMAGE = your/image
.PHONY = target target2 docker
target:
# Do something here
target2:
# Do something here
@sagikazarmark
sagikazarmark / install-grpc-php-on-mac.sh
Last active February 11, 2024 19:29
Install the gRPC PHP plugin
# Install the gRPC PHP plugin on Mac
#
# See: http://www.grpc.io/docs/quickstart/php.html#install-protobuf-plugin
# Source: https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4
# Install build dependencies
brew install automake libtool
## Clone gRPC repo
git clone --recursive -b v1.4.x https://github.com/grpc/grpc
1. Open the Firefox advanced preferences at `about:config`.
2. Search for "webauth"
3. Enable (value=True) these two:
- security.webauth.u2f
- security.webauth.webauthn_enable_usbtoken
* Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 8080 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /server.php HTTP/1.1
Host: localhost:8080
User-Agent: GuzzleHttp/6.3.0 curl/7.54.0 PHP/5.6.30