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 / 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 / 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 / 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);
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 / 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
Verifying that +sagikazarmark is my blockchain ID. https://onename.com/sagikazarmark
@sagikazarmark
sagikazarmark / sitemap_generators.md
Created October 13, 2015 21:58
List of currently available sitemap generators (and why they should be avoided)
@sagikazarmark
sagikazarmark / package.gulp.json
Last active August 29, 2015 14:27
How not to use bower/grunt/gulp at all?
{
"private": true,
"devDependencies": {
"bootstrap": "3.3.5",
"bootswatch": "3.3.5",
"browser-sync": "^2.8.0",
"browserify": "^11.0.0",
"del": "^1.1.1",
"domready": "^1.0.8",
"font-awesome": "4.3",
@sagikazarmark
sagikazarmark / phpserver.php
Created April 14, 2015 19:47
PHP server router script
<?php
/**
* PHP Server router script
*/
// determine the file we're loading, we need to strip the query string for that
if (isset($_SERVER['SCRIPT_NAME']))
{
$file = $_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'];
@sagikazarmark
sagikazarmark / DbadException.php
Created January 30, 2015 13:36
In cases when your code is clearly not used for what it should be
<?php
/**
* DBAD exception
*
* @link http://www.dbad-license.org/
*/
class DbadException extends \Exception
{