You want your token to have fixed max supply (NFT is just token with 1 max supply).
This file contains 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
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
This file contains 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 | |
# License: MIT - https://opensource.org/licenses/MIT | |
# | |
# Usage: | |
# | |
# Encrypt a file: | |
# kms-vault encrypt My-Key-Alias some-file-i-want-encrypted.txt > topsecret.asc | |
# |
A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
This file contains 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
# Automated AMI and Snapshot Deletion | |
# | |
# @author Bobby Kozora | |
# | |
# This script will search for all instances having a tag named "Backup" with a value of "Backup". | |
# As soon as we have the instances list, we loop through each instance | |
# and reference the AMIs of that instance. We check that the latest daily backup | |
# succeeded then we store every image that's reached its DeleteOn tag's date for | |
# deletion. We then loop through the AMIs, deregister them and remove all the | |
# snapshots associated with that AMI. |
This gist contains lists of modules available in
in AWS Lambda.
This file contains 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
server { | |
listen 80; | |
root /opt/graphite/webapp/content; | |
location / { | |
# checks for static file, if not found proxy to app | |
try_files \$uri @app; | |
} | |
location @app { |
This file contains 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
check process mysql | |
with pidfile /var/run/mysqld/mysqld.pid | |
start program = "/usr/sbin/service mysql start" with timeout 60 seconds | |
stop program = "/usr/sbin/service mysql stop" with timeout 60 seconds | |
if totalmem > 400 MB for 5 cycles then alert | |
if totalmem > 600 MB for 5 cycles then restart | |
if cpu > 50% for 5 cycles then alert | |
if cpu > 90% for 5 cycles then restart | |
if 3 restarts within 5 cycles then timeout |
NewerOlder