All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
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
<?php | |
/* | |
* Verifies if the captcha data via Google and redirects to the form page if the captcha does not pass. | |
* | |
* Parameters: | |
* Gcaptcha response - the form data submitted with the request. | |
** Example call if your form used method='get': verify_captcha($_GET['g-recaptcha-response'], "Secret key here"); | |
** Example call if your form used method='post': verify_captcha($_POST['g-recaptcha-response'], "Secret key here"); | |
*/ | |
function verify_google_captcha($gcaptcha_response, $secret) { |
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 | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |