Skip to content

Instantly share code, notes, and snippets.

View piotrostr's full-sized avatar
📖

piotrostr piotrostr

📖
View GitHub Profile
#!/bin/bash
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace
#!/bin/bash
terraform output kubeconfig | jq -r '@base64d' > ~/.kube/lke.yaml
alias lkectl="KUBECONFIG=~/.kube/lke.yaml kubectl"

infer-trt

Interface for TensorRT engines inference along with an example of YOLOv4 engine being used.

System Requirements

  • amd64/linux architecture
0xb7ADAd5f58aD063E1a8f174C61777b66872C8b65
@piotrostr
piotrostr / daddyUsdc.sol
Created July 23, 2021 11:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
@piotrostr
piotrostr / artifacts...BabyUSDCDividendTracker.json
Created July 23, 2021 11:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {
"daddyUsdc.sol": {
"IterableMapping": "<address>"
}
},
"autoDeployLib": true
},
@piotrostr
piotrostr / artifacts...BabyUSDCDividendTracker.json
Created July 23, 2021 11:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {
"daddyUsdc.sol": {
"IterableMapping": "<address>"
}
},
"autoDeployLib": true
},