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
<?php | |
/** | |
* Download a large distant file to a local destination. | |
* | |
* This method is very memory efficient :-) | |
* The file can be huge, PHP doesn't load it in memory. | |
* | |
* /!\ Warning, the return value is always true, you must use === to test the response type too. | |
* | |
* @author dalexandre |
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
#!/bin/bash | |
# | |
# This sets up Let's Encrypt SSL certificates and automatic renewal | |
# using certbot: https://certbot.eff.org | |
# | |
# - Run this script as root. | |
# - A webserver must be up and running. | |
# | |
# Certificate files are placed into subdirectories under | |
# /etc/letsencrypt/live/*. |
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
// Get latest transaction of tron (TRC20 Tokens Like USDT) | |
const tatumURL = 'https://api.tatum.io/v3'; // https://tatum.io : Get more info and read docs and get a free api key! | |
const axiosRequestConfig: AxiosRequestConfig = { | |
headers: { 'x-api-key': 'TATUM_API_KEY' }, | |
}; | |
const address = 'TRON_ACCOUNT_ADDRESS'; // you can get from trust wallet or generate by your self | |
const { data } = await axios.get( | |
`${tatumURL}/tron/transaction/account/${address}/trc20`, | |
axiosRequestConfig, | |
); |