Skip to content

Instantly share code, notes, and snippets.

View CosminNechifor's full-sized avatar

Cosmin Nechifor CosminNechifor

View GitHub Profile
# this goes under ./templates
{% block content %}
<h1>Sign In</h1>
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}
<p>
{{ form.username.label }}<br>
{{ form.username(size=32) }}
</p>
We couldn’t find that file to show.
@CosminNechifor
CosminNechifor / README.md
Created March 10, 2019 21:09 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Tasks ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│- [✔] Serial (0:09:42.454984) │
│ - [✔] Parallel (0:07:30.983466) - Open channels │
│ - [✔] OpenChannel (0:07:28.205066): {'from': 0, 'to': 1, 'total_deposit': 10} │
│ - [✔] OpenChannel (0:07:30.969988): {'from': 1, 'to': 2, 'total_deposit': 10}
@CosminNechifor
CosminNechifor / aso_grade.sh
Created February 3, 2019 13:18
With this script you can check your grade at ASO
#!/bin/bash
if [ $# -lt 2 ]
then
echo "Please add your credentials"
echo "Usage: bash aso_grade.sh <username> <password>"
exit
fi
USR=$1
(test-scripts) ➜ raiden-contracts git:(master) python -m raiden_contracts.deploy raiden --rpc-provider http://127.0.0.1:8545 --private-key /home/cosmin/.local/share/io.parity.ethereum/keys/DevelopmentChain/UTC--2019-01-31T08-02-56Z--92ea31b9-96b6-075d-0ed9-cf881ea40a7d --gas-price 10 --gas-limit 4700000
Web3 provider is RPC connection http://127.0.0.1:8545
Enter the private key password:
DEBUG:__main__:Deploying EndpointRegistry txHash=0x3a15b11c164d6c294b30d0e8c54058d00705a3365d01d37dbeb5050d484de1c0, contracts version 0.5.0
INFO:__main__:EndpointRegistry address: 0x8B9042ef586D83f5980001F18dA703a514183749. Gas used: 555302
DEBUG:__main__:Deploying SecretRegistry txHash=0x55fd3aa2f57cb994a7ff1634bca5966ab9af16cfcbd30dc447febab26c9700c8, contracts version 0.5.0
INFO:__main__:SecretRegistry address: 0xad2026C2Af834975f17121Ff8ef2579FaE41BE4e. Gas used: 313274
DEBUG:__main__:Deploying TokenNetworkRegistry txHash=0x9ec92e7404b0686f46872ec8fce1e5274f705ec272819ab89920df4ffa1df9e8, contracts version 0.5.0
Traceb
(test-scripts) ➜ test-environment-scripts git:(master) ✗ python -m raiden_contracts.deploy raiden --rpc-provider http://127.0.0.1:8545 --private-key /home/cosmin/.local/share/io.parity.ethereum/keys/DevelopmentChain/UTC--2019-01-31T08-02-56Z--92ea31b9-96b6-075d-0ed9-cf881ea40a7d --gas-price 10 --gas-limit 4300000
Web3 provider is RPC connection http://127.0.0.1:8545
Enter the private key password:
DEBUG:__main__:Deploying EndpointRegistry txHash=0x99a78e27c1db6d77feacf66e2cc16a9f9680ccbc61affbf82eac1a00de085ca2, contracts version 0.5.0
INFO:__main__:EndpointRegistry address: 0x770466dc29d0F57B123Ac3345b90E96970515542. Gas used: 555302
DEBUG:__main__:Deploying SecretRegistry txHash=0x8489b7d19ebd7038104579cdda5d3a34953d5c2074d3a041eadc17fcd359f221, contracts version 0.5.0
INFO:__main__:SecretRegistry address: 0xfA36ed17b830E546C74b1F8f80fa219F682ec4e8. Gas used: 313274
DEBUG:__main__:Deploying TokenNetworkRegistry txHash=0xf3f5da6d59d0bf84f125cf7d374df423b43f32742b7cb3e1b254d6c38abbc57e, contracts version 0.
./raiden-v0.100.2rc4.dev2+ge9607851.d20190128-linux --keystore-path /home/cosmin/.local/share/io.parity.ethereum/keys/ethereum --log-config 'raiden:debug' --eth-rpc-endpoint "http://parity.mainnet.ethnodes.brainbot.com:8545" --api-address "http://127.0.0.1:5555" --network-id 1 --environment-type "production" --accept-disclaimer
Welcome to Raiden, version 0.100.2rc4.dev2+ge9607851.d20190128!
----------------------------------------------------------------------
| This is an Alpha version of experimental open source software |
| released as a test version under an MIT license and may contain |
| errors and/or bugs. No guarantee or representations whatsoever is |
| made regarding its suitability (or its use) for any purpose or |
| regarding its compliance with any applicable laws and regulations. |
| Use of the software is at your own risk and discretion and by |
| using the software you acknowledge that you have read this |
pragma solidity >= 0.4.22 < 0.6.0;
contract A {
uint256 value;
constructor(uint256 _value) public {
value = _value;
}
function getValue() external view returns(uint256) {
@CosminNechifor
CosminNechifor / gist:9719cbc088fb6a1c8d6615641c1fa374
Created January 21, 2019 19:47
Is this a good approach to reduce the bytecode of the B contract?
contract A {
uint256 value;
constructor(uint256 _value) public {
value = _value;
}
function getValue() external view returns(uint256) {
return value;
}