I hereby claim:
- I am sondnm on github.
- I am sondnm (https://keybase.io/sondnm) on keybase.
- I have a public key ASCdm3ZFC1nMWSTi8axuQ26HLaJwJ7LUtlqczUMkKeYsAwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Eg: shm_open_get // => "Hello" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/stat.h> |
;; 12.4 Rearranging words | |
;; a 'word' is either | |
;; 1 - empty, or | |
;; 2 - (cons a w) where a is a symbol | |
;; ('a, 'b,..., 'z) and w is a word | |
;; examples: | |
(define noword empty) | |
(define red (cons 'r (cons 'e (cons 'd empty)))) |
This is an opinionated guide to learning about computer security (independently of a university or training program), starting with the absolute basics (suitable for someone without any exposure to or knowledge of computer security) and moving into progressively more difficult subject matter.
It seems that most people don't realize how much information is actually available on the internet. People love to share (especially geeks) and everything you need to become well versed in computer security is already available to you (and mostly for free). However, sometimes knowing where to start is the hardest part - which is the problem that this guide is intended to address. Therefore, this guide can accuratley be described as a 'guide to guides', with additional recommendations on effective learning and execises, based on my own experiences.
Many of the free resources are the best resources and this guide focuses on them. It is intended to provided a comprehensive
Kudos to https://github.com/kensoh at aisingapore/TagUI#635 (comment)
brew uninstall openssl
brew tap-new $USER/old-openssl
brew extract --version=1.0.2t openssl $USER/old-openssl
brew install [email protected]
brew install openssl
ln -s /usr/local/Cellar/[email protected]/1.0.2t/lib/libssl.1.0.0.dylib /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
ln -s /usr/local/Cellar/[email protected]/1.0.2t/lib/libcrypto.1.0.0.dylib /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
items = document.getElementsByClassName("icon-upvote") // new Reddit version | |
// items = document.getElementsByClassName("arrow up") // old Reddit version | |
Array.prototype.forEach.call(items, function(el, i){ | |
setTimeout(function(){ | |
el.click(); | |
},1000 + ( i * 400 )); | |
}); |
#!/bin/bash | |
yarn add --dev hardhat | |
npx hardhat | |
yarn add --dev @nomiclabs/hardhat-ethers @nomiclabs/hardhat-waffle @nomiclabs/hardhat-etherscan \ | |
@typechain/hardhat @typechain/ethers-v5 @types/chai @types/chai-as-promised @types/mocha \ | |
chai chai-as-promised \ | |
dotenv ethereum-waffle ethers \ | |
hardhat-abi-exporter hardhat-deploy hardhat-deploy-ethers \ | |
hardhat-typechain ts-generator ts-node typechain typescript \ | |
@openzeppelin/contracts |
const ethers = require('ethers'); | |
const provider = new ethers.providers.JsonRpcProvider('https://eth.llamarpc.com'); | |
const walletAddress = '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'; // vitalik.eth | |
const contractAddress = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'; // weth | |
const tokenDecimals = 18; | |
// ERC20 ABI for balanceOf | |
const abi = [ |