Skip to content

Instantly share code, notes, and snippets.

View jkuchar's full-sized avatar

Jan Kuchař jkuchar

View GitHub Profile
@jkuchar
jkuchar / tmux-shortcuts.md
Last active August 9, 2017 18:15
TMUX for dummies

TMUX

Start it using

command what it does?
tmux Starts new tmux session
tmux attach attaches to last openned tmux session

When it is running

@jkuchar
jkuchar / cleanup-docker.sh
Last active April 1, 2019 16:22
Docker daemon: clean garbage
# @link https://gist.github.com/jkuchar/499cde5952caab68dcdbe6a28dd9309f
# @link http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/
# @link http://www.projectatomic.io/blog/2015/07/what-are-docker-none-none-images/
#
# This will reclaim space and inodes used by stopped containers, dangling images and dangling volumes.
# I use this in GitLab CI multi runner with Docker version 1.13.0; should work with Docker >1.9.0
# Currently I run this script every day in cron.
echo "Containers cleanup: removing exited containers"
docker rm -v $(docker ps -a -q -f status=exited)
@jkuchar
jkuchar / keybase.md
Created December 21, 2016 21:22
keybase.md

Keybase proof

I hereby claim:

  • I am jkuchar on github.
  • I am honzakuchar (https://keybase.io/honzakuchar) on keybase.
  • I have a public key whose fingerprint is F7F9 6B1E 3BFF 9BA1 3E6E 9DD2 3CA7 4879 462B 47F2

To claim this, I am signing this object:

@jkuchar
jkuchar / composer.json
Last active August 29, 2015 14:21
git push all in this directory
{
"require": {
"nette/nette": "^2.3"
}
}
@jkuchar
jkuchar / composer.json
Created May 9, 2015 19:26
Nette 2.3 RobotLoader invocation bug
{
"require": {
"nette/application": "~2.3",
"nette/bootstrap": "~2.3"
}
}
<?php
namespace jkuchar\Doctrine\DBAL\Driver\PDOPgSql;
use Doctrine\DBAL\Driver\PDOPgSql\Driver as DoctrineOriginalDriver;
/**
* Adds ability to set search path to PostgreSQL driver
* @package App\Doctrine
@jkuchar
jkuchar / AdvancedSubmitButton.php
Created February 24, 2013 20:12
Graphical submit button for Nette forms. Allows you to put HTML content inside button.
class AdvancedSubmitButton extends SubmitButton {
var $icon = null;
var $showCaption = true;
/**
* @param string caption
* @param string icon url
*/