Update 2:
Update 1:
https://truewagner.bigcartel.com/product/anonymous-patreon-mailers
Update 2:
Update 1:
https://truewagner.bigcartel.com/product/anonymous-patreon-mailers
Good braid scissors like Gerber Neat Freak
Lures - FIsherman's Marine, Cabela's, online sources, etc
Create the db in the cmd directory sqlite3 attestor.db < att.sql
To do some FiddyCent token operations, run scripts\deploy-details.sh to get the contract address and an export command. Run the export command, then play with the contract.
cast call $FIDDY_CENT "totalSupply()(uint256)" --rpc-url http://127.0.0.1:8545
cast send $FIDDY_CENT "transfer(address,uint256)" --private-key $DEPLOYER_KEY $ACCT1 50
cast call $FIDDY_CENT "balanceOf(address)" $ACCT1
Here's the message signed in the web3auth example (modified):
const signMessage = async (): Promise<any> => {
if (!provider) {
console.log("provider not initialized yet");
return;
}
const web3 = new Web3(provider);
const fromAddress = (await web3.eth.getAccounts())[0];
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.4.22 <0.9.0; | |
| library TestsAccounts { | |
| function getAccount(uint index) pure public returns (address) { | |
| address[15] memory accounts; | |
| accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
| accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.4.22 <0.9.0; | |
| library TestsAccounts { | |
| function getAccount(uint index) pure public returns (address) { | |
| address[15] memory accounts; | |
| accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
| accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |
| Add the payload as data, e.g. | |
| $.data VARCHAR(256000) | |
| CREATE OR REPLACE STREAM "DESTINATION_SQL_STREAM" (event_data VARCHAR(256000)); | |
| CREATE OR REPLACE PUMP "STREAM_PUMP" AS INSERT INTO "DESTINATION_SQL_STREAM" | |
| SELECT STREAM "data" AS "event_data" | |
| FROM "SOURCE_SQL_STREAM_001"; |
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
| //Executed at http://www.tutorialspoint.com/compile_java8_online.php | |
| public class HelloWorld{ | |
| public static void main(String []args){ | |
| System.out.println("Hello World"); | |
| java.util.function.Function<Integer,Integer> times2 = (Integer x) -> 2*x; | |
| java.util.function.Function<Integer,java.util.function.Function<Integer,Integer>> timesN = x -> y -> x * y; | |
| System.out.println(times2.apply(2)); | |
| System.out.println(timesN.apply(2).apply(3)); | |
| } |
| show databases; | |
| create database roll; | |
| create user rolluser identified by 'rollpw'; | |
| create table if not exists roll.sample ( | |
| name varchar(128) primary key, | |
| value varchar(256) | |
| ) |