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
sudo /opt/bitnami/ctlscript.sh stop | |
sudo /opt/bitnami/letsencrypt/lego --tls --email="[email protected]" --domains="www.domain.com" --path="/opt/bitnami/letsencrypt" renew --days 90 | |
sudo /opt/bitnami/ctlscript.sh start |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <linux/if_alg.h> | |
#include <errno.h> | |
int main(){ | |
//Alternatively you can set the path to argv[1] | |
int sockfd = socket(AF_ALG, SOCK_SEQPACKET, 0); |
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
https://press.one/p/v?s=e822a488a3769024448884762f953f6a3a8d005abce01ef3ff00d4626c4709c462e9b104a3fea195feb82ab91bcc3860dc75c8e6f66b2fde299e7a3bf80be1cb00&h=a39569d994303dde2221ab6d8b31769be38778b11e69d191fa6dbf8d2d407bfc&a=c62f9f9fac804f85ad9613180a2018c1d7e95798&f=P1&v=3 |
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
首先构造一个基本的 raw transaction 格式如下 | |
{ | |
"version": 1, | |
"asset": "a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc", | |
"extra": "34366362393932382d653636632d343966392d386165632d366462366137346666663638", | |
"outputs": [ | |
{ | |
"type": 0, | |
"amount": "115.06849309", |
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
# https://twitter.com/cz_binance/status/1125996194734399488 | |
# block2reorg | |
# If you want to remove one transaction six block ago, | |
# there is one solution: | |
# buy more than half of Bitcoin hash power, calculate all transaction again, until you become the longest chain and all full node accept it | |
# Diff is the block you want to re-org | |
# k is your hash power/other hash power | |
# x is the block you need to generate | |
# diff = kx - x |
We have created a bot to echo message and echo Bitcoin.
- How to create Bitcoin wallet
- How to read Bitcoin balance
- How to send Bitcoin with zero transaction fee and confirmed in 1 second
- How to send Bitcoin to other wallet
Pre-request: You should have a Mixin Network account. Create an account can be done by one line code:
In the previous chapter, we created our first app, when user sends "Hello,world!", the bot reply the same message.
app.py
from mixin_ws_api import MIXIN_WS_API
from mixin_api import MIXIN_API
import mixin_config
A Mixin messenger bot will be created in this tutorial. The bot is powered by python, it echo message and Bitcoin from user.
Full Mixin network resource index
NewerOlder