Skip to content

Instantly share code, notes, and snippets.

View PraneshASP's full-sized avatar
Building

Pranesh A S PraneshASP

Building
View GitHub Profile
@devtooligan
devtooligan / cursedbeaconproxy.sol
Last active April 9, 2024 16:10
PoC of crit bug found in Astaria.xyz's custom BeaconProxy contract
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Test.sol";
contract SheHateMe {
receive() external payable {}
function getImpl(uint8 x) public returns (address) {
return address(this);
@pcaversaccio
pcaversaccio / ReturnBombExample.sol
Last active November 28, 2023 19:13
This is a returnbomb attack example.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
/**
* @title Returnbomb attack example
* @author pcaversaccio
*/
contract Evil {
uint256 public counter;
@jefffederman
jefffederman / naming-git-branches.md
Last active February 12, 2024 08:39
Naming `git` branches

Naming git branches

tldr; {type}/{group[optional]}/short-form-of-what-it-does

HCM developers consistently use dash-delimited branch names. About half also use f/ and b/ prefixes ('feature' and 'bug', respectively).

I suggest we continue our current practices, specifically:

  • a branch should start with a prefix indicating its type: feature/, bug/, chore/, or hotfix/
  • prefer the whole word to the one letter abbreviation, the clarity outweighs the cost of the extra characters