Skip to content

Instantly share code, notes, and snippets.

View pmanlukas's full-sized avatar

Lukas pmanlukas

View GitHub Profile
@pmanlukas
pmanlukas / main.tf
Last active September 6, 2023 12:07
Terraform minio gcp
terraform {
required_providers {
google = "~> 4.0"
}
}
provider "google" {
project = "<YOUR_PROJECT_ID>"
region = "<YOUR_REGION>"
zone = "us-central1-a"
@pmanlukas
pmanlukas / create-label-deployment.yml
Created April 20, 2021 09:19
GitHub Actions workflow to leverage a label within a PR as trigger for another Actions workflow
name: Create Deployment by label
#
# A workflow that will respond to particular labels being added to a Pull Request to create an
# integration environment.
#
on:
pull_request:
types:
@pmanlukas
pmanlukas / delete-gcp.sh
Last active July 6, 2020 12:55
These scripts allow one to setup a GCP VM (based on the default debian image) to act as a self-hosted runner and to config the runner as a service. You will need a working GCP project and service account associated with it as well as a configured GCP CLI.
gcloud compute ssh ghe-runner-gcp --command="gsutil cp gs://gh-runner/delete-service.sh . && chmod +x delete-service.sh && ./delete-service.sh <owner> <repo> <token>"
gcloud compute instances delete ghe-runner-gcp --quiet

FAQ on Google Cloud Platform and GitHub Enterprise

This FAQ covers typical questions regarding Google Cloud Platform (GCP) and GitHub. These FAQs are not complete and will be updated from time to time.

General Questions

Can we use GCP with GitHub?

Yes, you will be able to use GitHub if GCP is the or one of the clouds of your choice. Google is a partner of GitHub and

@pmanlukas
pmanlukas / github_kpis.md
Created January 9, 2020 08:28 — forked from jonico/github_kpis.md
GitHub related KPIs

GitHub Related KPIs

Source of Inspiration

screen shot 2016-06-09 at 13 12 05

Insight Partners is a VC which has companies like Twitter, Docker, BlaBlaCar, HelloFresh and bmc in their portfolio. They developed the periodic table of software development KPIs to steer their portfolio.

The KPIs used by Insight Partners are a good starter for companies who like to transform their business as they are

@pmanlukas
pmanlukas / evaluierungsfragen.md
Created December 6, 2019 08:51 — forked from jonico/evaluierungsfragen.md
Evaluierungsfragen/kriterien bei der Auswahl einer Versionskontrollverwaltungs- / Social Coding-Plattform

Business Coding Platform Evaluierungskriterien / Fragen

  • Wie lange dauert es, einen neuen Entwickler in die Plattform einzuarbeiten? Welcher Trainingsaufwand ist erforderlich, bis der erste Commit in Produktion gehen kann?

  • Wie unterstützt die gewählte Plattform das Aufbauen eines unternehmensweiten Entwickler-Profils, aus dem die Entwicklungsaktivität, Popularität, Programmiersprachen und Tätigkeitsschwerpunkt (welche Repositories) eines Entwicklers oder Entwicklerteams hervorgeht?

  • Wie können Entwickler und Designer schnell und unproblematisch Quellcode-Snippets, Design-Überlegungen, Interview-Fragen und andere Markdown-Dokumente miteinander teilen? Besteht die Möglichkeit, diese Dokumente zu durchsuchen, insofern sie nicht geheim angelegt worden?

  • Wie können Nicht-Entwickler (Ingenieure, Fachabteilung, Projektleiter, Marketing, Legal), Änderungen an Design-Dokumenten und Dokumentation ohne Kommandozeilenwissen oder Desktop-Applikationen vorschlagen? Erlaubt die Web-Oberfläche das Hinzufügen, Lö

Sometimes, companies are worried about "reusing personal GitHub accounts", but contributing source code or reviews with an already existing account does NOT mean that

@pmanlukas
pmanlukas / convert.sh
Last active November 20, 2019 10:38
Use Drone CLI to convert a .gitlab-ci.yml to drone.yml
#!/bin/bash
while true; do
read -p "Do you wish to convert your gitlab files?" yn
case $yn in
[Yy]* ) drone convert .gitlab-ci.yml &> .drone.yml; echo "conversion saved to .drone.yml file"; exit;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
@pmanlukas
pmanlukas / The Technical Interview Cheat Sheet.md
Created January 4, 2017 12:18 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.