This file contains 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
https://www.bilibili.com/read/cv14836748 |
This file contains 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
//As referenced in this solution | |
import { number } from "prop-types"; | |
//https://codepen.io/sosuke/pen/Pjoqqp | |
interface HSL { | |
h: number; |
Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.
After reading a few articles I ended up with these steps:
- On macOS, download the High Sierra installer (even if you have Mojave installed): https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
- If the High Sierra Installer starts, quit it.
- Open "Disk Utility".
- Click on "File" > "New Image" > "Blank image...". Or just press cmd+N.
This file contains 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 'dart:convert'; | |
import 'dart:typed_data'; | |
import "package:pointycastle/export.dart"; | |
import "./convert_helper.dart"; | |
// AES key size | |
const KEY_SIZE = 32; // 32 byte key for AES-256 | |
const ITERATION_COUNT = 1000; |
This file contains 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
// 安装客户端 | |
apt install -y shadowsocks | |
// 代理服务器配置, 16.04 tls 上 apt 安装的 ss 客户端仅支持部分加密 method, 比如 aes-256-cfb | |
// 建一个配置文件,比如 shadowsocks.json ,写入: | |
{ | |
"server":"代理服务器的ip", | |
"server_port":10763, | |
"local_address":"127.0.0.1", | |
"local_port":1080, |
After spinning-up your Raspberry Pi and registering an account at slushpool:
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git
git clone https://github.com/tpruvot/cpuminer-multi
cd cpuminer-multi
./autogen.sh
./build.sh
- Check out the commands:
./cpuminer --help
./cpuminer -u slashpool_user_name.slashpool_worker -p pass -a sha256d -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads
- Order MOAR Raspberry Pi's and Antminers then buy more Bitcoin.
This file contains 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 storageFactory from "./storageFactory"; | |
export const localStore = storageFactory(localStorage); | |
export const sessionStore = storageFactory(sessionStorage); |
This file contains 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
const { resolve } = require('path'); | |
/** | |
* Resolve tsconfig.json paths to Webpack aliases | |
* @param {string} tsconfigPath - Path to tsconfig | |
* @param {string} webpackConfigBasePath - Path from tsconfig to Webpack config to create absolute aliases | |
* @return {object} - Webpack alias config | |
*/ | |
function resolveTsconfigPathsToAlias({ | |
tsconfigPath = './tsconfig.json', |
NewerOlder