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
set @salt=substr(md5(concat('salt',CURRENT_TIME)),1,5)
set @pass='pass';
set @user="root";
update admin_user set `password`=CONCAT(SHA2(concat(@salt,@pass), 256),":",@salt,":1") WHERE `username`=@user
@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
## check config of systemd-resolved
systemd-analyze cat-config systemd/resolved.conf
## Show systemd folders
systemd-analyze unit-paths