Add an NPM_TOKEN
secret on GitHub. Get your secret key from the NPM dashboard.
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
'use strict' | |
const web3 = require('@solana/web3.js') | |
const splToken = require('@solana/spl-token') | |
const bs = require('bs58') | |
const connection = new web3.Connection( | |
web3.clusterApiUrl('devnet'), | |
'confirmed', | |
) |
// This is a temporary fix until Jimp implements support for webp | |
// https://github.com/oliver-moran/jimp/issues/144 | |
// const img = await webpToJimp('https://test.com/img.webp', './tmp') | |
import fs from 'fs' | |
import axios from 'axios' | |
import jimp from 'jimp' | |
import webp from 'webp-converter' |
AmbientCapabilities
support (usually kernel >= linux4.3) [Unit]
Description=FRP Server Daemon
# Backup DB | |
docker run \ | |
--rm \ | |
--link running_mongo:mongo \ | |
-v /data/mongo/backup:/backup \ | |
mongo \ | |
bash -c ‘mongodump --out /backup --host $MONGO_PORT_27017_TCP_ADDR’ | |
# Download the dump | |
scp -r USER@REMOTE:/data/mongo/backup ./backup | |
Hyper-V 默认创建 **.vhdx** 格式的虚拟磁盘。 | |
根据SuperUser上的这个问题: | |
http://superuser.com/questions/723381/how-to-open-vhdx-files-in-virtualbox | |
尽管第三个答案指出, | |
> VirtualBox since 4.2 changelog says support added for VHDX "Storage: added readonly support for VHDX images". | |
但这种格式在VirtualBox中是不支持的,要使用它建立新的镜像,会出现错误。具体信息为: |
<?php | |
class Container | |
{ | |
protected $setings = array(); | |
public function set($abstract, $concrete = null) | |
{ | |
if ($concrete === null) { | |
$concrete = $abstract; |
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |