Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
@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)
<?
// v presenteru:
/**
* Datagrid for questions
* @param
*/
protected function createComponentGrid($name)
{
$grid = new Grido\Grid($this, $name);
@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.
@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 / 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 / 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 / composeroutput.txt
Created May 15, 2014 08:33
composer nette bug
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 https://api.github.com/repos/tsusanka/ComposerBugPackage
Downloading https://api.github.com/repos/tsusanka/ComposerBugPackage/contents/composer.json?ref=master
Downloading https://api.github.com/repos/tsusanka/ComposerBugPackage/commits/master
Downloading https://api.github.com/repos/tsusanka/ComposerBugPackage/tags?per_page=100
Downloading https://api.github.com/repos/tsusanka/ComposerBugPackage/git/refs/heads?per_page=100
Reading composer.json of tsusanka/composer-bug-package (master)
<?php
$user = $this->orm->users->getById(1);
$r = new \ReflectionProperty('Orm\ValueEntityFragment', 'values');
$r->setAccessible(TRUE);
dump($r->getValue($user));
//dumpne rovnou pole hodnot
npm start ✖ ◼
> ristretto-example@1.4.0 start /home/tomas/Prace/clevis/vaclav-laska
> grunt dev
Running "coffee:compile" (coffee) task
Running "stylus:compile" (stylus) task
File www/css/screen.css created.
0: b8 32 2f 73 68 mov $0x68732f32,%eax
5: c1 e8 08 shr $0x8,%eax
8: 50 push %eax
9: 68 2f 62 69 6e push $0x6e69622f
e: 89 e3 mov %esp,%ebx
10: 31 d2 xor %edx,%edx
12: 52 push %edx
13: 53 push %ebx
14: 89 e1 mov %esp,%ecx
16: 89 d0 mov %edx,%eax