Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
apt update && apt upgrade && reboot

Stephan Kristyn stevek-pro

:electron:
apt update && apt upgrade && reboot
  • Site Reliability Engineer für testgetriebene Software Entwicklung, Automation, ML Pipelines, zeroOps
  • München, Bayern
View GitHub Profile
@stevek-pro
stevek-pro / quay-example-request.py
Created Feb 22, 2021
Quay Basic Sample Request
View quay-example-request.py
#!/usr/bin/python
import requests
r = requests.post('https://quay.dev/test_org/test_repo:v1', headers={'content-type': 'application/json', 'Authorization': 'Bearer LLDDBIYHDQSVE0IKOEN329QUDQRX96FDIZK20MP3X2PH7TVOMCXDKNXBYS0TQPASZXCCHU2R5AMZQ3OIMYN11QAEWHCGETVRF3BDOEZFJBA7WSGGTFVTVT43'}, data={'test':'value'}, verify=False)
@stevek-pro
stevek-pro / integration_tests.yml
Last active Feb 9, 2021
Quay HA Integration Testing
View integration_tests.yml
- when: inventory_hostname == groups['local'][0]
become: yes
block:
- name: Before - Create CA
block:
- name: Create CA Folder
file:
path: "/etc/docker/certs.d/{{ groups['quay'][0] }}"
state: directory
@stevek-pro
stevek-pro / container-quayconfig.yml
Last active Jan 14, 2021
Quay Config SSL: An error occurred loading TLS
View container-quayconfig.yml
# Ansible Quay Config Container
#
#
- name: Quay Setup - Create Config Container
containers.podman.podman_container:
name: quay-config
user: "{{ quay_runtime_uid | default(omit) }}"
recreate: yes
restart: no
image: "{{ quay_image }}"
@stevek-pro
stevek-pro / gist:19c1e421c4fc9be337070bc996d2a0b8
Last active Oct 30, 2020
mikrok8s ambassador installation 30/Oct/2020
View gist:19c1e421c4fc9be337070bc996d2a0b8
# Update for official Cannonical Script:
# By stevek.pro 30/Oct/2020 - MIT Licence - Do as you like on your own risk.
---
kind: Pod
apiVersion: v1
metadata:
name: foo-app
labels:
app: foo
@stevek-pro
stevek-pro / App.vue
Created Feb 14, 2020
Vue2 Page Transitions Part 1 - Controls - https://codepen.io/timrijkse/pen/ALgZpp
View App.vue
<template>
<div id="app">
<component :is="state.view">
<h1>{{ state.view }}</h1>
</component>
<controls></controls>
</div>
</template>
<script>
View Kubernetes Client Go Daddy v1.9
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome file</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
@stevek-pro
stevek-pro / ionic-run-ios.sh
Last active Nov 18, 2016
Ionic Run Ios Deploy Locally
View ionic-run-ios.sh
npm uninstall ios-deploy
sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
rm -rf www/* //optional
ionic build //optional
ionic run ios --deploy
View user-info.component.html
<!-- RC0 Upgrade: Changed control to formControl on validationError - UNTESTED! -->
<ion-header navigation title='{{ "§USER_INFO.HEADER" | translate }}'></ion-header>
<ion-content class="personal-info">
<ion-list>
<form [formGroup]="infoForm">
<ion-item>
View purchase.reducer.ts
import { ActionReducer, Action } from "@ngrx/store";
import { ActionType } from "./action-type";
import { PurchaseModel } from "../purchase/purchase.model";
export const currentPurchase: ActionReducer<PurchaseModel> = (state:PurchaseModel = new PurchaseModel(), action:Action) => {
switch (action.type) {
case ActionType.SET_PURCHASE:
@stevek-pro
stevek-pro / purchase.component.ts
Created Oct 11, 2016
using name Observable but cannot be named
View purchase.component.ts
import { Injectable } from "@angular/core";
import { RequestMethod } from "@angular/http";
import { Store } from "@ngrx/store";
import { Observable } from "rxjs/Observable";
import {
AppState,
ActionCreator,
UserModel,
BackendService,
LoggerService,