- tls
- x509
- https
This file contains hidden or 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
| 'use strict'; | |
| const rows = Array.prototype.slice.apply( | |
| document.querySelectorAll('.js-file-line') | |
| ); | |
| const code = rows | |
| .map(el => | |
| el.innerHTML | |
| .replace(/<[^>]*>/g, '') |
This file contains hidden or 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
| <script> | |
| window.addEventListener('load', () => { | |
| const heading = unescape(location.search.slice(1)); | |
| document.title = heading; | |
| const h1 = document.createElement('h1'); | |
| h1.style.width = '100%'; | |
| h1.style.textAlign = 'center'; | |
| h1.textContent = heading; | |
| document.body.appendChild(h1); | |
| }); |
This file contains hidden or 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 plus = (a, b) => a + b; | |
| const assert = x => { | |
| if (!x) { | |
| throw new Error('Assertion failed'); | |
| } | |
| }; | |
| const adjustDestForCropTolerance = (rect, tol, dest) => { | |
| const rectAspect = rect.width / rect.height; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.20.19/system.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/qs/6.5.1/qs.js"></script> | |
| <script> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| background-color: black; | |
| color: white; | |
| width: 100vw; |
This file contains hidden or 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
| #!/bin/bash | |
| echo $(date) Start | |
| # Add to instance metadata with `gcloud compute instances add-metadata \ | |
| # instance-name --metadata-from-file startup-script=idle-shutdown.sh` and reboot | |
| # NOTE: requires `bc`, eg, sudo apt-get install bc | |
| # Modified from https://stackoverflow.com/questions/30556920/how-can-i-automatically-kill-idle-gce-instances-based-on-cpu-usage | |
| threshold=0.1 |
{
// json
"foo": "bar"
}The following is a well known test seed phrase:
test test test test test test test test test test test junk
During development, it's beneficial to use seedphrases which are obviously meant for testing, so using test for the first 11 words is helpful. Since only 4 bits of 12-word bip39 seedphrases are for the checksum, 1 in 16 phrases are valid by chance. This gives us many additional options for the last word if you need more than one seedphrase:
test test test test test test test test test test test absent
This file contains hidden or 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
| // SPDX-License-Identifier: CC0-1.0 | |
| pragma solidity ^0.8.0; | |
| contract MPCCommitment { | |
| address payable public x; | |
| address payable public y; | |
| uint256 public depositValue; | |
| bytes32 public G; |
{ // jsonc