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 time | |
| import requests | |
| from decimal import Decimal | |
| from web3 import Web3 | |
| web3 = Web3(Web3.HTTPProvider("https://bsc-dataseed.binance.org/")) | |
| input_address = "CONTRACT ADDRESS TO SELL" | |
| output_address = "CONTRACT ADDRESS TO RECEIVE" |
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 | |
| if [ ! $(which 7za) ]; then echo "Install 7z: brew install p7zip"; return 1; fi | |
| BACKUP_NAME="macbook-pro-home-backup.7z" | |
| USER=$(whoami) | |
| BACKUP_PATHS=( | |
| "/Users/$USER/Google Drive/Backup/" | |
| ) |
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
| kops create cluster \ | |
| --cloud=aws \ | |
| --admin-access=PRIVATE_VPN_CIDR \ | |
| --associate-public-ip=false \ | |
| --vpc=VPC_ID \ | |
| --network-cidr=VPC_CIDR \ | |
| --dns-zone=R53_HOSTED_ZONE_ID \ | |
| --master-zones=eu-west-1a,eu-west-1b,eu-west-1c \ | |
| --zones=eu-west-1a,eu-west-1b,eu-west-1c \ | |
| --node-count=3 \ |
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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: example | |
| namespace: development | |
| spec: | |
| type: NodePort | |
| selector: | |
| app: example | |
| env: development |
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
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: example | |
| namespace: development | |
| data: | |
| <key>: <base64 encoded value> | |
| type: Opaque |
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
| pipeline { | |
| publish { | |
| container('example') | |
| } | |
| kubernetes { | |
| name('example') | |
| secrets('example.yml') | |
| environment { |