Skip to content

Instantly share code, notes, and snippets.

@penandlim
penandlim / git-recent
Last active October 1, 2024 19:02 — forked from jordan-brough/git-recent
git-recent: Display a list of recently checked out branches/tags/commits with colors and more info
#!/usr/bin/env bash
# Source: https://gist.github.com/penandlim/04ccf10c985dabd6268aaa588600751c
# Forked from: https://gist.github.com/jordan-brough/48e2803c0ffa6dc2e0bd
# See also: https://stackoverflow.com/a/25095062/58876
# Download this script as "git-recent" (no extension), chmod it to be executable and put it in your
# path somewhere (e.g. /usr/bin). You can then use it via `git recent` from inside any git repo.
# Examples:
name: "Base Setup"
description: "Set up the base environment"
runs:
using: "composite"
steps:
- name: Generate combined hash of direct submodule versions
run: |
modules=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }')
for module in $modules
@penandlim
penandlim / Post.tech invite codes
Created September 21, 2023 07:33
Post.tech invite codes
pt-wbfxa9q0py,
pt-qvlmfvw5hb,
pt-ucywbkcqxl,
pt-kidok4jhpc,
pt-atwayoe9rc,
pt-lgnr1jipei,
pt-ml9ke6tcqn,
pt-yv3sgpmaky,
pt-kr9tomyzam,
pt-l9xnq6fw77,
diff --git a/node_modules/hardhat/builtin-tasks/node.js b/node_modules/hardhat/builtin-tasks/node.js
index e7f1a3e..9955841 100644
--- a/node_modules/hardhat/builtin-tasks/node.js
+++ b/node_modules/hardhat/builtin-tasks/node.js
@@ -54,7 +54,8 @@ Private Key: ${privateKey}`;
(0, config_env_1.subtask)(task_names_1.TASK_NODE_GET_PROVIDER)
.addOptionalParam("forkUrl", undefined, undefined, config_env_1.types.string)
.addOptionalParam("forkBlockNumber", undefined, undefined, config_env_1.types.int)
- .setAction(async ({ forkBlockNumber: forkBlockNumberParam, forkUrl: forkUrlParam, }, { artifacts, config, network, userConfig }) => {
+ .addOptionalParam("forkIgnoreUnknownTxType", undefined, undefined, config_env_1.types.boolean)
diff --git a/node_modules/hardhat/builtin-tasks/node.js b/node_modules/hardhat/builtin-tasks/node.js
index e7f1a3e..9955841 100644
--- a/node_modules/hardhat/builtin-tasks/node.js
+++ b/node_modules/hardhat/builtin-tasks/node.js
@@ -54,7 +54,8 @@ Private Key: ${privateKey}`;
(0, config_env_1.subtask)(task_names_1.TASK_NODE_GET_PROVIDER)
.addOptionalParam("forkUrl", undefined, undefined, config_env_1.types.string)
.addOptionalParam("forkBlockNumber", undefined, undefined, config_env_1.types.int)
- .setAction(async ({ forkBlockNumber: forkBlockNumberParam, forkUrl: forkUrlParam, }, { artifacts, config, network, userConfig }) => {
+ .addOptionalParam("forkIgnoreUnknownTxType", undefined, undefined, config_env_1.types.boolean)
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.5.17;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.17;
interface VaultLike {
function available() external view returns (uint);
function earn() external;
}
contract Context {
constructor () internal { }
### Keybase proof
I hereby claim:
* I am penandlim on github.
* I am weeb_mcgee (https://keybase.io/weeb_mcgee) on keybase.
* I have a public key ASCegcTfQbJtAfS8PoBM5xDBNnvxjEYiFgP6WWYioSJhago
To claim this, I am signing this object:
@penandlim
penandlim / 1_Storage.sol
Created August 13, 2020 03:10
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.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;