こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。
[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。
| ``` | |
| #https://github.com/ethereum-mining/ethminer | |
| #start_eth_miner.sh | |
| export GPU_MAX_HEAP_SIZE=100 | |
| export GPU_USE_SYNC_OBJECTS=1 | |
| export GPU_MAX_ALLOC_PERCENT=100 | |
| export GPU_SINGLE_ALLOC_PERCENT=100 |
Accessing a subnet that is behind a WireGuard client using a site-to-site setup
We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
This configuration enables NGINX to validate an authentication token against an authorization server by using OAuth 2.0 Token Introspection (RFC 7662). This solution uses the auth_request module and the NGINX JavaScript module to require authentication and perform the token introspection request.
By default, the client's authentication token is expected as a bearer token supplied in the Authorization header. If supplied elsewhere in the HTTP request, the $access_token variable must be configured to specify where to obtain the token.
Token introspection requests are authenticated. By default, the $oauth_client_id and $oauth_client_secret variables are used to perform HTTP Basic authentication with the Authorization Server. If only the $oauth_client_secret variable is specified then that value is used
| const { graphqlExpress } = require('graphql-server-express'); | |
| const graphQlTools = require('graphql-tools'); | |
| const schema = graphQlTools.makeExecutableSchema({ | |
| typeDefs: schemaText, | |
| resolvers: { | |
| Mutation: { | |
| async uploadFiles(obj, { input }, req, info }) { | |
| // ... | |
| try { |
| const ethers = require('ethers') | |
| const Web3 = require('web3'); | |
| const quorumjs = require("quorum-js"); | |
| const WEB3_URL = 'http://localhost:22000'; | |
| const web3 = new Web3( | |
| new Web3.providers.HttpProvider(`${WEB3_URL}`) | |
| ); | |
| quorumjs.extend(web3); |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.7.1; | |
| pragma experimental ABIEncoderV2; | |
| /******************************************************************************\ | |
| * Author: Nick Mudge | |
| * | |
| * Implementation of an example of a diamond. | |
| /******************************************************************************/ |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output