Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️

Qasim Albaqali qasimalbaqali

🖥️
View GitHub Profile
@qasimalbaqali
qasimalbaqali / haproxy.js
Created Jan 26, 2021
Pulumi + ECR + Docker
View haproxy.js
var pulumi = require("@pulumi/pulumi");
var aws = require("@pulumi/aws");
var awsx = require("@pulumi/awsx");
var stackName =
pulumi.getStack().charAt(0).toUpperCase() + pulumi.getStack().slice(1);
var ecrRepo = new aws.ecr.Repository("haproxy", {
mageScanningConfiguration: {
scanOnPush: true,
@qasimalbaqali
qasimalbaqali / Dockerfile
Created Jan 24, 2021
HAProxy + AWS CloudMap + AWS ECS
View Dockerfile
FROM haproxy:2.3
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
@qasimalbaqali
qasimalbaqali / Dockerfile
Created Jan 23, 2021
NodeJS "Hello World" Dockerised App
View Dockerfile
FROM node:12.16.3-alpine
COPY package.json package-lock*.json ./
RUN npm install
COPY . .
RUN npm run build
View on_pull_request_merge.yaml
name: PR Merged
on:
pull_request:
types: [closed]
jobs:
destroy:
name: Destroy Pulumi Stack and Resources
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
View pull_request.yaml
name: Pulumi Preview
on:
pull_request:
branches: [master, release, staging, development]
jobs:
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout repo
@qasimalbaqali
qasimalbaqali / index.js
Last active Nov 22, 2020
Create a Pulumi stack on PR creation
View index.js
var path = require("path");
var { LocalWorkspace } = require("@pulumi/pulumi/x/automation");
// get node command arguments, if the user
// passed `destroy`.
var args = process.argv.slice(2);
var destroy = false;
if (args.length > 0 && args[0]) {
destroy = args[0] === "destroy";
View .block
license: mit
@qasimalbaqali
qasimalbaqali / .block
Created Oct 21, 2019
Fast Interactive Canvas Scatterplot
View .block
license: mit
View Baggage.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDBCore
{
public class Baggage
{
View Flight.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RandomNameGeneratorLibrary;
namespace VDBCore
{
public class Flight