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
| package testinggui; | |
| import java.awt.EventQueue; | |
| import javax.swing.JFrame; | |
| import javax.swing.JLabel; | |
| import java.awt.BorderLayout; | |
| import java.awt.Color; | |
| import javax.swing.JButton; |
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
| package guinow; | |
| import java.awt.EventQueue; | |
| import javax.swing.JFrame; | |
| import com.jgoodies.forms.layout.FormLayout; | |
| import com.jgoodies.forms.layout.ColumnSpec; | |
| import com.jgoodies.forms.layout.RowSpec; | |
| import javax.swing.JMenuBar; | |
| import javax.swing.JMenu; |
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
| package guinow; | |
| import java.awt.*; | |
| import java.awt.event.*; | |
| import javax.swing.*; | |
| public class HomePage { | |
| HomePage() { | |
| JFrame jFrame = new JFrame("Title of Window"); |
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
| - name: Create Azure Kubernetes Service | |
| hosts: localhost | |
| connection: local | |
| vars: | |
| resource_group: myResourceGroup | |
| location: eastus | |
| aks_name: myAKSCluster | |
| username: azureuser | |
| ssh_key: "your_ssh_key" | |
| client_id: "your_client_id" |
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
| --- | |
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: Create resource group | |
| azure_rm_resourcegroup: | |
| name: ansible-rg | |
| location: eastus | |
| register: rg | |
| - debug: |
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
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: tiller | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: tiller |
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
| kind: NetworkPolicy | |
| apiVersion: networking.k8s.io/v1 | |
| metadata: | |
| name: backend-policy | |
| namespace: development | |
| spec: | |
| podSelector: | |
| matchLabels: | |
| app: webapp | |
| role: backend |
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
| SP_PASSWORD=your_password | |
| RESOURCE_GROUP_NAME=your_resource_rg | |
| CLUSTER_NAME=your_cluster | |
| LOCATION=eastus | |
| # Create a resource group | |
| az group create --name $RESOURCE_GROUP_NAME --location $LOCATION | |
| # Create a virtual network and subnet | |
| az network vnet create \ |
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
| var http = require('http'); | |
| var server = http.createServer(function(request, response) { | |
| response.writeHead(200, {"Content-Type": "text/plain"}); | |
| response.end("Hello world with Avinash Seth"); | |
| }); | |
| var port = process.env.PORT || 8000; |
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
| { | |
| "name": "azure-containers-with-avinash-seth", | |
| "description": "Uploading simple app on azure container service", | |
| "version": "0.0.1", | |
| "private": true, | |
| "license": "MIT", | |
| "author": "Avinash Seth", | |
| "scripts": { | |
| "start": "node index.js" | |
| }, |