Skip to content

Instantly share code, notes, and snippets.

@Elyx0
Elyx0 / ofac.js
Created January 20, 2023 07:24
OFAC Polygon List
// Never thought I'd have to, I'm sorry Elyx from the past
const ethers = require('ethers');
const RPC = "https://polygon.llamarpc.com";
const provider = new ethers.providers.JsonRpcProvider(RPC);
@Elyx0
Elyx0 / ByteCode
Created September 4, 2022 05:42
StateReceiverFlatten.sol
forge inspect ./src/StateReceiverFlatten.sol:StateReceiver bytecode
0x608060405234801561001057600080fd5b506109ac806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806319494a17146100465780633434735f146100e15780635407ca671461012b575b600080fd5b6100c76004803603604081101561005c57600080fd5b81019080803590602001909291908035906020019064010000000081111561008357600080fd5b82018360208201111561009557600080fd5b803590602001918460018302840111640100000000831117156100b757600080fd5b9091929391929390505050610149565b604051808215151515815260200191505060405180910390f35b6100e961047a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610133610492565b6040518082815260200191505060405180910390f35b600073fffffffffffffffffffffffffffffffffffffffe73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018
@Elyx0
Elyx0 / ctf.sol
Created August 21, 2022 00:26
ExploitRescue.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Script.sol";
import "src/rescue/MasterChefHelper.sol";
import "src/rescue/Setup.sol";
import "src/mocks/ERC20Mock.sol";
import "src/rescue/UniswapV2Like.sol";
@Elyx0
Elyx0 / generateCalldata.js
Created October 9, 2021 08:31 — forked from ezynda3/generateCalldata.js
generateCalldata.js
const ethers = require("ethers");
async function main() {
if (!process.argv[2] || !process.argv[3]) {
console.log("\nUsage: node generateCalldata.js <function signature> <args>");
console.log('e.g node generateCalldata.js "myFunction((uint8,bool)[],uint256)" "[[1,true],[2,false]],12345678"');
console.log("\n")
throw Error
}
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// This experimental Indicator helps identifying instituational Order Blocks.
// Often these blocks signal the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
// Therefore these are interesting levels to place limit orders (Buy Orders for Bullish OB / Sell Orders for Bearish OB).
//
// A Bullish Order block is defined as the last down candle before a sequence of up candles. (Relevant price range "Open" to "Low" is marked) / Optionally full range "High" to "Low"
// A Bearish Order Block is defined as the last up candle before a sequence of down candles. (Relevant price range "Open" to "High" is marked) / Optionally full range "High" to "Low"
//
// In the settings the number of required sequential candles can be adjusted.
// Furthermore a %-threshold can be entered. It defines which %-change the sequential
// This is universal, works with Infura -- set provider accordingly
const ethers = require('ethers')
//const provider = ethers.getDefaultProvider('rinkeby')
const provider = new ethers.providers.JsonRpcProvider(process.env.WEB3_URL)
function hex_to_ascii(str1) {
var hex = str1.toString();
var str = '';
for (var n = 0; n < hex.length; n += 2) {
// Paste in console after game starts.
var confi2g = { attributes: true, children: true, subtree: true };
me = room.myUser.chatName;
meTeam = room.myUser.accounts[0].teamId;
const callbackMateDied = function (mutationsList, observer) {
console.log('New mutation!', mutationsList);
for (const mutation of mutationsList) {
if (mutation.type === 'attributes' && mutation.attributeName == 'class') {
### Keybase proof
I hereby claim:
* I am elyx0 on github.
* I am elyx0 (https://keybase.io/elyx0) on keybase.
* I have a public key ASAru9tNUuQQPCN_dRiRbUKKIzt8PdgYOYKbpL7BiTvQtwo
To claim this, I am signing this object:
Breakpoint around
```
var Oe = ["CustomerService", De]
, Ae = function(e, t, n, r) {
var a = e(r.api_url + "delivery_options.json?zone_code=:zone", {
zone: "@zone"
});
return a.listOptionsByZone = function(e, t, r) {
var a = n.defer();
return this.query({
@Elyx0
Elyx0 / cloudSettings
Last active April 17, 2019 17:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-17T00:23:58.949Z","extensionVersion":"v3.2.8"}