Skip to content

Instantly share code, notes, and snippets.

View SaifRehman's full-sized avatar
🎯
Focusing

SaifRehman SaifRehman

🎯
Focusing
  • IBM
  • Dubai
View GitHub Profile
const path = require('path');
const CleanWebpack = require('clean-webpack-plugin');
const nodeExternals = require('webpack-node-externals');
const webpack = require('webpack');
const BACKENDSRC = path.resolve(__dirname, 'src');
module.exports = {
target: 'node',
// @babel/polyfill is needed to use modern js functionalities in old browsers.
@SaifRehman
SaifRehman / app-deploy.yaml
Last active April 9, 2020 00:38
app-deploy gist
apiVersion: appsody.dev/v1beta1
kind: AppsodyApplication
metadata:
name: APPSODY_PROJECT_NAME
spec:
version: 1.0.0
applicationImage: APPSODY_DOCKER_IMAGE
stack: APPSODY_STACK
service:
type: NodePort
name: Typescript template
version: 0.1.1
description: Runnable typescript stack
license: Apache-2.0
language: typescript
maintainers:
- name: Saif ur Rehman
email: saif.ur.rehman@.ibm.com
github-id: SaifRehman
default-template: simple
@SaifRehman
SaifRehman / icon.css
Last active September 16, 2019 20:13
openshift mongo rest icon
.icon-microcks {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAsCAYAAAAn4+taAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABQGAAAUBgHi2OFOAAAAB3RJTUUH4wIICQ4kTiFK0wAAC+hJREFUaN7NmXtwXNV9xz/n3Hv3od2Vrt52ETaywfgpr1yDbZIwMIEQktCQTJIJiUtInYZawJDQDCTT7kxm1M6UIdOUOghoxgxN8wS3NE5mOh1IjHExNrG1K8kYy7K1fsi2LOux2of2de89/UO7QpZW1iLMJOcvae7de37f8/3+nkewgNUeiREKmnBU8VR2xFUlcndL+BsX9sZrnbg/Y8mBCt05nMqLX+06Y776whcXJ0HwYa4P9PX2SGylQP2zg7g7ICyuycZ4baCCY1YlX1iVoTqd4PiIduDdmGv7rvsWRf77rXe5d8uqPx0g7ZEYwDXAKw7iplqRpS49zgt91RwZ97B2keL2G21sG5aoOGNjVrTByN1638dWDhwMd7OpteWqA5ELBCGA7Qpu8gmLhnyCn/eb9MbdeDSFEAoJOEBUVFFR7Wlu8No7j3YdrtrU2sLBcPcfD0hx81DQBNCBb0mgiRRvDHg4EvMgp/GrCmgligvCR69W84mUY/w7wIcB5opAno0MTv09XQ4T6Ncr8Jkix2jM4sBIBZYCS00ikWKmfhUjwkuPqLkzEu586o/iI09HLlW5sb6p42x3Yy+tVPmRrJBne6necK0TZ39UY/e5KlY0KoL+JLtP+1m9SHHrDQ55+/JvaSjWqJEz15HYtr619bX+o51i2eoNCqC5I0G0LfDhAGmPxJYDv1awZvJcJyUjgQosahIx/uXdWvJC4571ik9UXOS5I1V8+s/i7EvX0lQvMGZwXkmODc7QngsT2ksDaVdy93lzXzTpOnv6oYBz24sjvP5A7TQ597Cpdd3CpVVwaIB/BdYIUAKFRKGhEC
// This is a bare bones example of creating a data channel between two WebRTC
// peers. Let's imagine two peers trying to connect to each other. We'll call
// one the "offer peer", and the other the "answer peer". The offer peer will
// be the one initiating a connection, and the answer peer will be the one
// responding to it.
//
// The two peers must use a separate connection to negotiate their connection.
// A websocket connection to a shared server is often used for this negotiation.
// They will exchange offers and answers using the websocket. Each peer will
// also attempt to discover more details about themselves (ICE), such as their
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: mariadbpolicy
namespace: default
spec:
ingress:
- ports:
- protocol: TCP
port: 3306
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: bookingsvcpolicy
namespace: default
spec:
ingress:
- ports:
- protocol: TCP
port: 3000
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: icpaiwayspolicy
namespace: default
spec:
podSelector:
matchLabels: {}
@SaifRehman
SaifRehman / cb.yaml
Last active December 20, 2018 23:21
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: bookingsvc
spec:
host: bookingsvc
trafficPolicy:
connectionPool:
tcp:
maxConnections: 1000
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: servicemesh
spec:
gateways:
- gateway
hosts:
- '*'
http: