Skip to content

Instantly share code, notes, and snippets.

View wethinkagile's full-sized avatar
:electron:
Your Potential First

We Think Agile (wta) wethinkagile

:electron:
Your Potential First
View GitHub Profile
import { chakra, HTMLChakraProps, useColorModeValue } from '@chakra-ui/react'
export const Logo: React.FC<HTMLChakraProps<'svg'>> = (props) => {
const color = useColorModeValue('#231f20', '#fff')
return (
<chakra.svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 210.000000 84.000000"
scale="0.100000,-0.100000"
translate="0.000000,84.000000"
@wethinkagile
wethinkagile / quay-example-request.py
Created February 22, 2021 08:35
Quay Basic Sample Request
#!/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)
@wethinkagile
wethinkagile / integration_tests.yml
Last active February 9, 2021 20:51
Quay HA Integration Testing
- 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
@wethinkagile
wethinkagile / container-quayconfig.yml
Last active January 14, 2021 20:40
Quay Config SSL: An error occurred loading TLS
# 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 }}"
@wethinkagile
wethinkagile / gist:19c1e421c4fc9be337070bc996d2a0b8
Last active October 30, 2020 17:38
mikrok8s ambassador installation 30/Oct/2020
# 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
@wethinkagile
wethinkagile / App.vue
Created February 14, 2020 23:34
Vue2 Page Transitions Part 1 - Controls - https://codepen.io/timrijkse/pen/ALgZpp
<template>
<div id="app">
<component :is="state.view">
<h1>{{ state.view }}</h1>
</component>
<controls></controls>
</div>
</template>
<script>
<!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>
@wethinkagile
wethinkagile / ionic-run-ios.sh
Last active November 18, 2016 14:05
Ionic Run Ios Deploy Locally
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
<!-- 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>
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: