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 | |
# Vesta Ubuntu installer v.05 | |
# Modified by David B (KernelPanic89) to work for Ubuntu | |
# Revision 1.0 - Sep 06 2016 | |
#----------------------------------------------------------# | |
# Variables&Functions # | |
#----------------------------------------------------------# | |
@h@export PATH=$PATH:/sbin |
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 | |
header("Content-type: application/json; charset=utf-8"); | |
$http_origin = $_SERVER['HTTP_ORIGIN']; | |
$allowed_http_origins = array( | |
"http://site1.com.br", | |
"http://site2.com.br", | |
"http://site3.com.br" | |
); | |
if (in_array($http_origin, $allowed_http_origins)){ |
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 | |
function geraLetras($length) { | |
global $abc; | |
settype($abc, "string"); | |
$abc = "abcdefghijklmnopqrstuvwxyz"; | |
settype($length, "integer"); |
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 | |
$preco=Convert('USD', 'BRL','1,00'); | |
if($preco!=false){ | |
echo $preco; | |
} | |
else{echo "conversão não possível";} | |
function Convert($from, $to, $preco) | |
{ | |
$url = "http://www.google.com/finance/converter?a=$preco&from=$from&to=$to"; |
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 | |
function mask($val, $mask) | |
{ | |
$maskared = ''; | |
$k = 0; | |
for($i = 0; $i<=strlen($mask)-1; $i++) | |
{ | |
if($mask[$i] == '#') | |
{ | |
if(isset($val[$k])) |
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 | |
include("Validator.php"); | |
$email = "asasasas@outlook.com"; | |
if(Validator::EmailReal($email)){ | |
echo "The email is valid"; | |
}else{ | |
echo "That’s an invalid email"; |
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
--- | |
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
authorize: C:\Users\JoaoPinheiro\.ssh\id_rsa.pub | |
keys: | |
- C:\Users\JoaoPinheiro\.ssh\id_rsa |
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
http://www.facebook.com/dialog/pagetab?app_id=1420847307942373&next=https://caminhoseguro.com.br/pagina | |
GET TOKEN | |
https://developers.facebook.com/tools/explorer/ |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |