This document describes my setup for taking notes from videos, using Emacs and org-mode.
My goals:
- Embed & playback video links into my notes
- Generate, embed & post process animated from my notes
apiVersion: backstage.io/v1alpha1 | |
kind: Component | |
spec: | |
type: application | |
lifecycle: production | |
owner: user:guest | |
metadata: | |
name: hello-quarkus | |
labels: |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
if git rev-parse --verify HEAD >/dev/null 2>&1 |
(defun github-current-user () | |
"Get the curently logged in user." | |
(let ((page-source (if (web-buffer-p (current-buffer)) | |
(plump:serialize (document-model (current-buffer)) nil) | |
(ffi-buffer-get-document (current-buffer))))) | |
(ppcre:register-groups-bind (user) (".*<meta name=\"user-login\" content=\"([a-zA-Z0-9_-]+)\">.*" page-source) user))) | |
#!/bin/bash | |
DEPENDENCY=$1 | |
git log | grep "prepare release" -B4 | grep commit | cut -d " " -f2 | while read commit | |
do | |
release=`git log | grep $commit -A4 | grep maven-release-plugin | awk -F " " '{print $NF}'` | |
version=`git show $commit:pom.xml | grep "<${DEPENDENCY}.version>" | awk -F ">|<" '{print $3}'` | |
echo "Release: $release $DEPENDENCY $version" | |
done |
#!/bin/sh | |
# | |
# Grabs the selected text and apply it to kubernetes using `kubectl`. | |
# | |
# OS: Linux | |
# Requirements: xsel, notify-send | |
# | |
# Bind this to a key of your choice. | |
# Example (i3): |
package io.snowdrop.github.issues; | |
import java.util.Arrays; | |
import java.util.Set; | |
import io.quarkus.arc.config.ConfigProperties; | |
@ConfigProperties(prefix = "github.bridge") | |
public class BridgeConfig { |
[ERROR] Plugin io.quarkus:quarkus-maven-plugin:999-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.quarkus:quarkus-maven-plugin:jar:999-SNAPSHOT: 2 problems were encountered while building the effective model for io.quarkus:quarkus-maven-plugin:999-SNAPSHOT | |
[ERROR] [ERROR] 'dependencies.dependency.version' for io.quarkus:quarkus-platform-descriptor-legacy:jar is missing. @ | |
[ERROR] [ERROR] 'dependencies.dependency.version' for org.glassfish:javax.json:jar is missing. @ |
oc cluster up | |
# Tried with both coreos repo and its openshfit fork | |
git clone [email protected]:openshift/prometheus-operator.git | |
cd prometheus-operator | |
# Remove all RunAsUser: 65543 as they don't work on openshift | |
ls contrib/kube-prometheus/manifests/* | while read manifest; do echo "Removing RunUser from $manifest"; sed -i '/65543/d' $manifest;done | |
# This suffers from a race condition so lets install resources one by one and add some sleep | |
ls contrib/kube-prometheus/manifests/* | while read manifest; do echo "Installing $manifest"; oc create -f $manifest; sleep 1;done |