Add these two lines to your ~/.zshrc
file:
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit && compinit
Tested on:
MacOS BigSur Version 11.5.1
const {signTypedData, SignTypedDataVersion} = require("@metamask/eth-sig-util"); | |
const ethers = require("ethers"); | |
const domain = { | |
name: "name", | |
version: "1", | |
verifyingContract: "0xB6Fa4E9B48F6fAcd8746573d8e151175c40121C7", | |
chainId: 1, | |
}; |
Add these two lines to your ~/.zshrc
file:
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit && compinit
Tested on:
MacOS BigSur Version 11.5.1
let ip_addresses = []; | |
let port_numbers = []; | |
request("https://sslproxies.org/", function(error, response, html) { | |
if (!error && response.statusCode == 200) { | |
const $ = cheerio.load(html); | |
$("td:nth-child(1)").each(function(index, value) { | |
ip_addresses[index] = $(this).text(); | |
}); |
name: Security audit | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: |
import uuid | |
class Booking(models.Model): | |
booking_no = models.CharField(primary_key=True, default=uuid.uuid4().hex[:5].upper(), max_length=50, editable=False) | |
def __str__(self): | |
return str(self.booking_no) |
#!/bin/sh | |
# From https://www.hiroom2.com/2017/09/24/parrotsec-3-8-docker-engine-en/ | |
# Changelog: | |
# @DavoedM: Apr 3, 2020 | |
# @C922A10971734: Jan 19, 2023 | |
set -e | |
# Install dependencies. |
To evaluate the value of msg.sender when using solidity/assembly's delegatecall:
We start out with 3 contracts:
pragma solidity ^0.5.7;
contract ScratchPadActions {
event SenderActions(address contractAddress, address sender, address second);
function relay(ScratchPad2 second) public returns (address) {
emit SenderActions(address(this), msg.sender, address(second));
# create/update resources | |
kubectl --context=minikube apply -f ./postgres.yaml | |
# In order for the service to reach the statefulset, the following should | |
# be true: | |
# statefulset.spec.selector.matchLabels.app == service.spec.selector.app | |
# statefulset.spec.selector.matchLabels.role == service.spec.selector.role | |
# give the server some time to start up | |
# ... |
npm i typescript
for local OR npm i -g typescript
for globalnode_modules/.bin/tsc --init
for local installation or tsc --init
for globaltsconfig.json
and press CTRL+F
\s* \/\* .* \*\/
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.