- Connect to server
Only first connection to create username
and SSH configure:
$ ssh root@domain
Recomended (most secure):
# This file is for unifying the coding style for different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
charset = iso-8859 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
String.prototype.pad = function (length) { | |
'use strict'; | |
var s = this; | |
while (s.length < length) { | |
s = '0' + s; | |
} | |
return s; | |
}; | |
String.prototype.numbers = function () { | |
'use strict'; |
#!/bin/bash | |
rand() { | |
RANGE=$2 | |
rand=$RANDOM | |
let "rand %= $RANGE" | |
} | |
generate_password() { | |
chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' |
<?php | |
print_r($_POST); | |
?> | |
<form method="POST" action="testpost.php"> | |
<input type="hidden" name="prod" value="teste" /> | |
<button class="btn-orcamento center-block" type="submit">adicionar ao orçamento</button> | |
</form> |
<div class="budget"> | |
<p>Solicite um orçamento</p> | |
<form class="form-pedido" id="form-pedido-add" method="post" action="<?php echo esc_attr( site_url() ); ?>/orcamento"> | |
<?php wp_nonce_field( 'ac_nonce_produtos', 'nonce_produtos', true, true ); ?> | |
<input type="hidden" name="type_page_verify" value="produtos" /> | |
<input type="hidden" name="prod" value="<?php the_ID(); ?>"/> | |
<?php | |
$cores = get_field( 'cores' ); | |
if ( $cores ) { |
<?php | |
/** | |
* The Template for displaying all single products | |
* | |
* @package gallery-thumbs | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
<?php | |
declare(strict_types=1); | |
/** | |
* Interface to JSON endpoint. | |
*/ | |
namespace GilbertoTavares; | |
/** | |
* Class to GET JSON and print. |
Only first connection to create username
and SSH configure:
$ ssh root@domain
Recomended (most secure):
#!/bin/bash | |
slug() { | |
slug="$1" | |
slug=${slug,,} | |
slug=${slug// /_} | |
slug=${slug//ó/o} | |
slug=${slug//ô/o} | |
slug=${slug//é/e} | |
slug=${slug//ú/u} |
#!/bin/bash | |
echo 'Temperatures in São Bento do Sul SC - Brazil' | |
CURL=$(curl -s http://www.samaesbs.sc.gov.br/) | |
NOW=$(echo $CURL | grep -oP 'temperatura\">\K([\d.]+)') | |
HIGH=$(echo $CURL | grep -oP '_max\">\K([\d.]+)') | |
LOW=$(echo $CURL | grep -oP '_min\">\K([\d.]+)') | |
echo " Now $NOWºC" |