Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
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]
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.
@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)

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 / gist:96dc60e20d65174073cf
Created May 2, 2015 08:48
Mathematica GF multiplication
X = 16^^00000000331100002201;
Y = 16^^0000000000223811f321;
m = 79;
f = \[Alpha]^79 + \[Alpha]^9 + 1;
polynomialBasis = Table[\[Alpha]^i, {i, m - 1, 0, -1}];
Print["X = ", BaseForm[X, 16]];
Print["Y = ", BaseForm[Y, 16]];
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
npm start ✖ ◼
> [email protected] 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.
<?php
$user = $this->orm->users->getById(1);
$r = new \ReflectionProperty('Orm\ValueEntityFragment', 'values');
$r->setAccessible(TRUE);
dump($r->getValue($user));
//dumpne rovnou pole hodnot
@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)