Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
@tsusanka
tsusanka / composer.lock
Created May 14, 2014 10:23
composer.lock nette 2.3 dev problem
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "d5b60e25ae06549f76e58235971c3486",
"packages": [
{
"name": "clevis/migration",
"version": "dev-master",
@tsusanka
tsusanka / composer2.3problem.txt
Created May 14, 2014 10:21
composer nette 2.3-dev problem
Reading ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Loading composer repositories with package information
Downloading http://repo.clevis.org/packages.json
Writing /home/vagrant/.composer/cache/repo/http---repo.clevis.org/packages.json into cache
Downloading https://packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---packagist.org/packages.json into cache
Installing dependencies (including require-dev)
Downloading https://packagist.org/p/provider-active$fa7f7d52d7e3dcf8572cfea3634d78c1cf2540b3faf4d3516b5eab268dfb3741.json
@tsusanka
tsusanka / 0_reuse_code.js
Created January 21, 2014 12:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tsusanka
tsusanka / gist:7819995
Created December 6, 2013 07:40
Unable to install wireshark
$ sudo aptitude install wireshark
The following NEW packages will be installed:
libwireshark2{ab} libwiretap2{a} libwsutil2{a} wireshark wireshark-common{a}
0 packages upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 14,7 MB of archives. After unpacking 60,8 MB will be used.
The following packages have unmet dependencies:
libwireshark2 : Depends: libc-ares2 (>= 1.7.0) which is a virtual package.
Depends: libsmi2ldbl (>= 0.4.5+dfsg0) which is a virtual package.
Depends: libwireshark-data (>= 1.8.2-5wheezy7build0.13.04.1) but it is not going to be installed.
<?
// v presenteru:
/**
* Datagrid for questions
* @param
*/
protected function createComponentGrid($name)
{
$grid = new Grido\Grid($this, $name);
@tsusanka
tsusanka / Ticketon Unit
Created November 16, 2012 12:04
Ticketon testy Tomas
$ phpunit cases/Unit/model/Access/AuthenticatorTest.php
PHPUnit 3.7.9 by Sebastian Bergmann.
Configuration read from /home/tomas/Prace/Clevis/Ticketon/tests/phpunit.xml
..........
Time: 0 seconds, Memory: 22.25Mb
OK (10 tests, 29 assertions)