Skip to content

Instantly share code, notes, and snippets.

View reinaldomendes's full-sized avatar

Reinaldo Barcelos Mendes reinaldomendes

  • Belo Horizonte MG
View GitHub Profile
@reinaldomendes
reinaldomendes / curl.ini
Last active March 28, 2022 06:41
PHP Curl error 77 on ssl conections
;###################################################
; NOTE
;####################################################
; change your curl.ini on /etc/php.d/curl.ini
;
;This config was only tested on amazon AMI
;Please check if /etc/ssl/certs/ca-bundle.crt exists
;
;If you don't have the ca-bundle root certificate you
; can get this in
/*Define variaveis
username: admin
password: YOUR_PASSWORD_HERE
*/
set @username='admin';
set @password='YOUR_PASSWORD_HERE';
set @salt='S4Lt';
update `admin_user` set password = concat(md5(concat(@salt,@password )),':',@salt)
where username=@username;
@reinaldomendes
reinaldomendes / Fibonacci
Last active August 29, 2015 14:06
Fibonacci Math
/**
* Fibonacci by Reinaldo Mendes.
*
*
phi ** n - psi ** n
----------------------------------
phi - psi
*/
function fibonacci(n){
@reinaldomendes
reinaldomendes / fix-header.css
Last active August 29, 2015 14:05
barra fixa quando a rolagem escondê-la
body.fixed-header .header-container{
position: fixed;
/*... Outros Css para barra fixa aqui*/
}