{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
This file contains hidden or 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 | |
$url = "https://www.google.com/"; | |
$curlObj = curl_init(); | |
curl_setopt($curlObj, CURLOPT_URL, $url); | |
curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($curlObj, CURLOPT_HEADER, 1); // must set this line | |
curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false); | |
$result = curl_exec($curlObj); |
This file contains hidden or 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
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
Go to https://console.aws.amazon.com/ec2
Click on Launch Instance button to add new EC2
OlderNewer