This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ethers_core::types::{H160 as eH160, U256 as eU256, H256 as eH256, NameOrAddress as eNameOrAddress, TxHash as eTxHash, Bytes as eBytes}; | |
use ethers_core::types::transaction::eip2930::AccessListItem; | |
use alloy_primitives::{Address as aAddress, U256 as aU256, TxHash as aTxHash, Bytes as aBytes}; | |
use revm::primitives::{Address as rAddress, U256 as rU256, B256 as rB256, Bytecode as rBytecode, Bytes as rBytes}; | |
/// Ethers/Alloy/REVM trait to convert for types from one to another | |
pub trait EARGlue<To> { | |
fn convert(&self) -> To; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub const fn parse_hex_20b(input: &str) -> [u8; 20] { | |
let mut addr = [0; 20]; | |
let mut i = 0usize; | |
let mut idx = 0usize; | |
let bytes = input.as_bytes(); | |
loop { | |
let char1 = bytes[i]; | |
let char2 = bytes[i + 1]; | |
let mut buf = 0u8; |
Activating the Rescue System
To start a server in the Rescue System, it needs to be activated in the Robot.
Under "Main Functions; Server" select the desired server and then open the tab "Rescue". Here the desired variant can be activated.
The password that was given to you when you activated the Rescue System can now be used to login as "root" via SSH. Restarting the Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity =0.7.6; | |
pragma abicoder v2; | |
import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/ISwapRouter.sol"; | |
import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/IQuoter.sol"; | |
import {IERC20, SafeERC20} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/token/ERC20/SafeERC20.sol"; | |
interface IUniswapRouter is ISwapRouter { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
######################################################################################## | |
# Compresses old radacct detail files and removes very old compressed radacct files. | |
######################################################################################## | |
# Author: P. Tomulik | |
######################################################################################## | |
# Path to the programs used (for environments without $PATH set) | |
FIND=/usr/bin/find |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Steps for an encrypted ZFS root installation on Linux Mint 20.x & Ubuntu 20.04 | |
01. Boot from an Ubuntu based installer/Live CD - Linux Mint 20.x or Ubuntu Desktop 20.04 | |
02. Open a terminal | |
03. Run: `sudo apt -y install zfs-zed` - **!IMPORTANT!** - Ensure the ZFS pre-requisites installed! | |
04. Run: `sudo vi /usr/share/ubiquity/zsys-setup` | |
- find the right section with `/^init_zfs` | |
- prepend the `zpool create` for `rpool` with `echo MYPASSWORD | ` - `MYPASSWORD` **MUST** be 8 characters or more! | |
eg. `echo MYPASSWORD | zpool create -f \` - **DO NOT FORGET THIS!** | |
05. Above the last line of the `zpool create` command, insert these lines: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import asyncio | |
import logging | |
from flask import Blueprint, Flask, request, render_template, g | |
from flask_graphql import GraphQLView | |
from google.cloud import logging as glogging | |
#from graphql.execution.executors.asyncio import AsyncioExecutor | |
from web3 import Web3, HTTPProvider | |
from werkzeug.serving import run_simple | |
from graphql import ( | |
graphql, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# Password is given to us via stdin, save it in a variable for later | |
PASS=$(cat -) | |
# List all zfs volumes, listing the *local* value of the property canmount. | |
zfs get canmount -s local -H -o name,value | while read line; do | |
# Filter on canmount == 'noauto'. Filesystems marked 'noauto' can be mounted, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu with mirror zfs sda and sdb | |
#1sr install ubuntu with zfs on 1st hdd (sda) | |
#2nd clone partition table of sda to sdb | |
sfdisk -d /dev/sda | sfdisk -f /dev/sdb | |
#3rd add zpool mirrors | |
zpool attach bpool /dev/sda3 /dev/sdb3 | |
zpool attach rpool /dev/sda4 /dev/sdb4 |
NewerOlder