Skip to content

Instantly share code, notes, and snippets.

View imroca's full-sized avatar
👾
En taro Adun Executor

Ignacio Rojas imroca

👾
En taro Adun Executor
View GitHub Profile
@imroca
imroca / composer.json
Last active July 8, 2022 19:22
Write command line scripts with PHP and my favorite dependencies
{
"name": "ignacio/commandlineme",
"description": "Command line scripts with PHP",
"type": "project",
"require": {
"aws/aws-sdk-php": "^3.184",
"guzzlehttp/guzzle": "^7.3",
"illuminate/database": "^8.47",
"illuminate/http": "^8.63",
"laravel/helpers": "^1.4",
@imroca
imroca / tls_1_2.php
Created May 18, 2017 14:27
Check for TLS 1..2
<?php
$curl_info = curl_version();
echo "CURL Info\n";
print_r($curl_info);
$ch = curl_init('https://www.howsmyssl.com/a/check');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data);