Skip to content

Instantly share code, notes, and snippets.

View devops-school's full-sized avatar

DevOps School devops-school

View GitHub Profile
package seleniumtest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.events.WebDriverEventListener;
public class test1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
package seleniumtest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.events.WebDriverEventListener;
public class test1 {
public static void main(String[] args) {
package seleniumtest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.events.WebDriverEventListener;
/**
* @Rajesh Kumar via DevOpsSchool.com
*/
composer create-project laravel/laravel <Project Name> "5.5.*" --prefer-dist
# Move to new project directory: <Project Name>
cd <Project Name>
Install Passport:
----------------
composer require paragonie/random_compat:2.*
composer require laravel/passport "4.0.*"
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Client;
public static function getTestApiRespone(string $access_token) {
try {
$http = new Client(); //GuzzleHttp\Client
$response = $http->get(
'http://surgery-planet-quote-booking/api/test',
[
@devops-school
devops-school / test.html
Created September 30, 2019 11:02
sdadsad
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Terraform Notes - October - First Week - 2019 - Bangalore
submit your details - https://docs.google.com/forms/d/e/1FAIpQLScrY0Y4iex47e7bfxVKiYBVcalH9TRT-Qqe_8WTbusB1jeVoA/viewform
JENKINS - ANSIBLE
AZURE
==========================================
WWW.DevOpsSchool.com/slides
/pdf
--------------------------------------------------
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "EC2-SecurityGroup-ElasticIP",
"Parameters": {
"VPC": {
"Description": "The default VPC",
"Type": "AWS::EC2::VPC::Id"
},
"Subnet": {
"Description": "A public subnet of VPC.",
AWSTemplateFormatVersion: "2010-09-09"
Resources:
## Security group for WebInstance enabling port 80
## from all IP addresses
WebSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Web server
GroupName: web
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-services-us-west-2.html#w1ab2c21c45c15c15
# Amazon EC2 instance in a security group Creates an Amazon EC2 instance in an Amazon EC2 security group.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'AWS CloudFormation Sample Template EC2InstanceWithSecurityGroupSample:
Create an Amazon EC2 instance running the Amazon Linux AMI. The AMI is chosen based
on the region in which the stack is run. This example creates an EC2 security group
for the instance to give you SSH access. **WARNING** This template creates an Amazon
EC2 instance. You will be billed for the AWS resources used if you create a stack
from this template.'