Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
package module
import (
"crypto/tls"
"encoding/hex"
"github.com/praetorian-inc/trudy/pipe"
"net"
)
//Data is a thin wrapper that provides metadata that may be useful when mangling bytes on the network.
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
stellar.c: In function 'stellar_confirmSignString':
stellar.c:82:38: error: implicit declaration of function 'split_message' [-Werror=implicit-function-declaration]
const char **str_message_lines = split_message((const uint8_t*)(msg->message), message_len, 24);
^
stellar.c:82:38: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
stellar.c: In function 'stellar_confirmManageDataOp':
stellar.c:1029:34: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
const char **str_key_lines = split_message((const uint8_t*)(msg->key), strnlen(msg->key, 64), 16);
^
stellar.c:1049:39: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
@tsusanka
tsusanka / einf.java
Created June 14, 2016 11:33
einf.java
package com.tsusanka.dsa;
import java.math.BigInteger;
class DSA
{
private BigInteger alpha;
private BigInteger beta;
private BigInteger p;
upgraded libpng (1.6.21-1 -> 1.6.22-1)
upgraded xcb-proto (1.11-2 -> 1.12-2)
upgraded libxcb (1.11.1-1 -> 1.12-1)
upgraded linux44 (4.4.11-1 -> 4.4.12-1)
upgraded curl (7.48.0-1 -> 7.49.1-1)
upgraded gnutls (3.4.11-2 -> 3.4.12-1)
upgraded libxfixes (5.0.1-1 -> 5.0.2-1)
upgraded chromium (51.0.2704.63-1 -> 51.0.2704.79-1)
upgraded nemo (3.0.3-1 -> 3.0.5-1)
@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);

Keybase proof

I hereby claim:

  • I am tsusanka on github.
  • I am tsusanka (https://keybase.io/tsusanka) on keybase.
  • I have a public key whose fingerprint is D696 C0F0 F7E0 B994 22F7 26D3 94AE 9351 8CC3 09EC

To claim this, I am signing this object:

@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)