Mix.install([:ethers, :ex_secp256k1])
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule DynamicAlias do | |
@moduledoc """ | |
Helper macro to call the alias dynamically. This will allow developers to | |
stub the testing environment with a mock or use different modules with | |
different configuration without the need to use a runtime impl function. | |
Please note that this only works in compile time. Do not provide any runtime | |
specific configuration here. | |
""" |
This document will help you to build and install metamask with ability to sign typed data using trezor model T devices. (Model one does not support this yet). Please only follow this guide if you have enough technical knowledge. NEVER install anything from any other source rather than the official chrome and firefox marketplaces or metamask original website.
NOTE Do NOT install any binaries from third parties who claim they have a build version of this guide. If you want it you should build it yourself to be 100% sure that it is not tampered with. This solution is only a last resort, If you can wait a few more days I would stongly suggest to wait for an official release.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers } = require("ethers"); | |
const sigUtil = require('@metamask/eth-sig-util'); | |
// The wallet to sign with | |
const hdWallet = ethers.utils.HDNode.fromMnemonic('all all all all all all all all all all all all').derivePath(ethers.utils.defaultPath) | |
const privateKey = Buffer.from(hdWallet.privateKey.substr(2), 'hex') | |
msgParams = { | |
domain: { | |
// Defining the chain aka Rinkeby testnet or Ethereum Main Net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.19; | |
contract ERC20Basic { | |
string public constant name = "ERC20Basic"; | |
string public constant symbol = "BSC"; | |
uint8 public constant decimals = 18; | |
event Approval(address indexed tokenOwner, address indexed spender, uint tokens); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source image of stolon to add postgis to | |
FROM sorintlab/stolon:v0.13.0-pg10 | |
# Since we are using a pg10 image of stolon we will install postgresql-10-postgis-x.x | |
RUN apt-get update && apt-get install -y postgresql-10-postgis-2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BRIGHTNESS=`xrandr --verbose | grep -i brightness | cut -f2 -d ' ' | head -n1` | |
NEW_BRIGHTNESS=`awk '{print $1-$2}' <<<"$BRIGHTNESS 0.05"` | |
echo $NEW_BRIGHTNESS | |
xrandr --output DVI-I-1 --brightness $NEW_BRIGHTNESS | |
xrandr --output DVI-I-2 --brightness $NEW_BRIGHTNESS |
NewerOlder