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
| #cloud-config | |
| repo_update: true | |
| repo_upgrade: all | |
| write_files: | |
| - path: /tmp/mount-ebs.sh | |
| permissions: "0755" | |
| content: | | |
| #!/usr/bin/env bash |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "github.com/aws/aws-sdk-go-v2/aws" | |
| "github.com/aws/aws-sdk-go-v2/config" | |
| "github.com/aws/aws-sdk-go-v2/service/secretsmanager" |
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
| #!/usr/bin/env bash | |
| # | |
| # iterm2-zmodem | |
| # | |
| # copyright (c) 2013 by Harald Lapp <harald@octris.org> | |
| # | |
| # AppleScript portion from: | |
| # http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script | |
| # licensed under cc-wiki with attribution required |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "os" | |
| ) | |
| func main() { | |
| stream := make(chan int, 1) |
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
| /** | |
| *Submitted for verification at Etherscan.io on 2020-09-16 | |
| */ | |
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity =0.6.11; | |
| /** | |
| * @dev Interface of the ERC20 standard as defined in the EIP. | |
| */ |
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
| import { ApiPromise, WsProvider, Keyring } from "@polkadot/api"; | |
| import { expandMetadata } from "@polkadot/metadata"; | |
| import { stringCamelCase, u8aToHex } from "@polkadot/util"; | |
| import { | |
| blake2AsHex, | |
| cryptoWaitReady, | |
| encodeAddress, | |
| } from "@polkadot/util-crypto"; | |
| import type { SignerPayloadJSON, AnyJson } from "@polkadot/types/types"; |
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
| #!/usr/bin/env bash | |
| set -eux | |
| set -o pipefail | |
| # Add Docker's official GPG key: | |
| apt-get update -y | |
| apt-get install ca-certificates curl jq -y | |
| install -m 0755 -d /etc/apt/keyrings | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
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
| // https://github.com/sidorares/node-mysql2/issues/677 | |
| const mysql = require("mysql2/promise"); | |
| const stream = require("stream"); | |
| const dbconn = mysql.createPool({ | |
| connectionLimit: 10, | |
| host: "127.0.0.1", | |
| user: "user", | |
| password: "password", | |
| database: "database", |
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
| pragma solidity ^0.6.0; | |
| contract TrueTokenFaucet { | |
| address public constant token = 0x0000000000085d4780B73119b644AE5ecd22b376; | |
| address public constant controller = 0x0000000000075EfBeE23fe2de1bd0b7690883cc9; | |
| // 100000000 | |
| uint256 public constant amount = 0x52b7d2dcc80cd2e4000000; | |
| function faucet(uint256 _amount) public { | |
| } |
NewerOlder