Skip to content

Instantly share code, notes, and snippets.

View hashware's full-sized avatar

hash hashware

  • China
View GitHub Profile
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
IP Details for 180.153.214.192
General IP Information
IP: 180.153.214.192
Decimal: 3029980864
Hostname: 180.153.214.192
ASN: 4812
ISP: China Telecom Shanghai
Organization: China Telecom Shanghai
Services: Suspected network sharing device
Type: Broadband
@hashware
hashware / gist:1e5f2415c08a87b87e58fbf28c2a47f9
Created August 12, 2017 06:54 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@hashware
hashware / Upscale_yuv.c
Created April 3, 2018 11:03 — forked from abhishekmurthy/Upscale_yuv.c
Upscaling a YUV image using Bilinear or Nearest scale algorithms
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/stat.h>
typedef unsigned char uint8_t;
/**
* @param src input nv12 raw data array
static int cnt = 0;
cnt++;
{
struct timeval now;
gettimeofday(&now, NULL);
uint64_t us0 = 0;
static uint64_t us1 = 0;
us0 = (uint64_t)now.tv_sec * 1000000 + (uint64_t)now.tv_usec;
if (us1 != us0) {
##
Private key: 5Jmsawgsp1tQ3GD6JyGCwy1dcvqKZgX6ugMVMdjirx85iv5VyPR
Public key: EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4
cleos wallet import 5Jmsawgsp1tQ3GD6JyGCwy1dcvqKZgX6ugMVMdjirx85iv5VyPR
cleos create account eosio eosio.bpay EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4
cleos create account eosio eosio.msig EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4
cleos create account eosio eosio.names EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4

Error 3050003: eosio_assert_message assertion failure Error Details: assertion failure with message: comparison of assets with different symbols is not allowed

小数点后的位数与创建币时要一样


Error 3050003: eosio_assert_message assertion failure

Private key: 5Jmsawgsp1tQ3GD6JyGCwy1dcvqKZgX6ugMVMdjirx85iv5VyPR
Public key: EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4
cleos wallet import 5Jmsawgsp1tQ3GD6JyGCwy1dcvqKZgX6ugMVMdjirx85iv5VyPR
cleos set contract eosio build/contracts/eosio.bios -p eosio
cleos create account eosio user EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4
cleos create account eosio tester EOS7ijWCBmoXBi3CgtK7DJxentZZeTkeUnaSDvyro9dq7Sd1C3dC4

aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906

1

{
  "timestamp": "2018-06-08T08:08:08.500",
  "producer": "",
  "confirmed": 1,
  "previous": "0000000000000000000000000000000000000000000000000000000000000000",
  "transaction_mroot": "0000000000000000000000000000000000000000000000000000000000000000",