Skip to content

Instantly share code, notes, and snippets.

View nonsense's full-sized avatar
❄️

Anton Evangelatov nonsense

❄️
View GitHub Profile
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
var draw = function(ctx) {
ctx.save();
ctx.beginPath();
ctx.moveTo(0,0);
ctx.lineTo(236,0);
ctx.lineTo(236,128);
ctx.lineTo(0,128);
ctx.closePath();
ctx.clip();
ctx.strokeStyle = 'rgba(0,0,0,0)';
#!/usr/bin/node
var canvg = require("canvg");
var Canvas = require("canvas");
fs = require('fs')
var svg_input;
var args = process.argv.slice(2);
#!/usr/bin/node
var canvg = require("canvg");
var Canvas = require("canvas");
fs = require('fs')
var svg_input;
var args = process.argv.slice(2);
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNZT2eQrXtqgYFAIHY5tqfwQlrTzLmHGCqnYwu3LfsAWHZi1JYrh08z1gPvAjplFmlog806fE3H9TdqQIoP0OSirVZ/Amxn4+63LlLfePDyGim1KBTiMGzLJJYtU4szz6ikWOtOz9BUBTZSeGXsNj0t2TKyjNhmAboOASWS9QARqg/tMJKHgif44E7W1r0Uhh3lQL2v+7tYT4giDf0mnPafzrjPfLmtAu8eCcPacDqJUJUnEhebr220YMn8ash3dsdyL3S9gsyofQsbphJTYn9LSyceSkdwxIM7qA3ABCYgLGG6aUBlZtF4X3wj5XxK3SEES8iSaYDFfMZc5LqAbpl anton.evangelatov@centralway.com

Keybase proof

I hereby claim:

  • I am nonsense on github.
  • I am nonsens3 (https://keybase.io/nonsens3) on keybase.
  • I have a public key ASAXsApbAp4a3TgkIr18rgxJFGU_PUP5TX7541IqqGFxWQo

To claim this, I am signing this object:

func TestPythonCrypto(t *testing.T) {
signature := "638A54215D80A6713C8D523A6ADC4E6E73652D859103A36B700851CB0E61B66B8EBFC1A610C57D732EC6E0A8F06A9A7A28DF5051ECE514702FF9CDFF0B11F454"
key := "03ca634cae0d49acb401d8a4c6b6fe8c55b70d115bf400769cc1400f3258cd3138"
//keccak 256 digest
//content := "f854018664697363763582765f82696490736563703235366b312d6b656363616b83697034847f00000189736563703235366b31a103ca634cae0d49acb401d8a4c6b6fe8c55b70d115bf400769cc1400f3258cd3138"
digest := "d301ce462d3e639518f482c7f03821fec1e602018630ce621e1e7851c12343a6"
bsig, err := hex.DecodeString(signature)
import ecdsa
import sha3
from bitcoin import encode_pubkey, decode_pubkey
def decompress_secp256k1_pubkey(data):
x, y = decode_pubkey(data, 'bin_compressed')
p = ecdsa.ellipticcurve.Point(ecdsa.SECP256k1.curve, x, y)
return ecdsa.VerifyingKey.from_public_point(p, ecdsa.SECP256k1)
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
--- PASS: Test 0.00
--- PASS: TestAPIResolve 0.00
--- PASS: TestAPIResolve/DNS_configured,_ENS_address,_name_doesn't_resolve,_returns_error 0.00
--- PASS: TestAPIResolve/DNS_configured,_ENS_address,_name_resolves,_returns_resolved_address 0.00
--- PASS: TestAPIResolve/DNS_configured,_hash_address,_hash_doesn't_resolve,_returns_hash_address 0.00
--- PASS: TestAPIResolve/DNS_configured,_hash_address,_hash_resolves,_returns_resolved_address 0.00
--- PASS: TestAPIResolve/DNS_configured,_immutable_ENS_address,_name_resolves,_returns_error 0.00
--- PASS: TestAPIResolve/DNS_configured,_immutable_hash_address,_hash_resolves,_returns_hash_address 0.00
--- PASS: TestAPIResolve/DNS_not_configured,_ENS_address,_returns_error 0.00
--- PASS: TestAPIResolve/DNS_not_configured,_hash_address,_returns_hash_address 0.00