Skip to content

Instantly share code, notes, and snippets.

Márk Sági-Kazár sagikazarmark

Block or report user

Report or block sagikazarmark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View guzzle#2018
* 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
View gist:85fbd1249967a8620495c1ebee9e07d9
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
@sagikazarmark
sagikazarmark / install-grpc-php-on-mac.sh
Last active Mar 6, 2019
Install the gRPC PHP plugin
View install-grpc-php-on-mac.sh
# 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
@sagikazarmark
sagikazarmark / Makefile
Last active Apr 20, 2017
Makefile with Docker support
View Makefile
DOCKER_IMAGE = your/image
.PHONY = target target2 docker
target:
# Do something here
target2:
# Do something here
@sagikazarmark
sagikazarmark / docker-compose.sh
Created Jan 24, 2017
Docker Compose Travis installer
View docker-compose.sh
#!/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 / liquibase.sh
Created Jan 23, 2017
Liquibase installer
View liquibase.sh
#!/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
View glide.sh
#!/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"
View symfony-container-graph.php
#!/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);
View gist:598ddae57d853de6663efd1d707d6850
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/ \
You can’t perform that action at this time.