Compare commits

...

4 Commits

Author SHA1 Message Date
30c0774d62 draft: knowledge base makefile 2025-03-20 18:46:50 +01:00
bbea859ffe split services by directory 2024-12-06 22:30:54 +01:00
6882610a0e show git aliases 2024-12-06 22:29:42 +01:00
Txrpe
a62ddf2408 add note about webhooks for soft serve 2024-12-06 22:23:16 +01:00
50 changed files with 221 additions and 0 deletions

18
kn.mk Normal file
View File

@@ -0,0 +1,18 @@
all_docs != find krov/serverko -name README.md
path_to_docs = $(patsubst krov/%/README.md, docs/%.md, $(all_docs))
stripped_docs = $(notdir $(path_to_docs))
x:
$(info $(all_docs))
$(info $(stripped_docs))
docs/kralizec/%.md: kralizec/%/README.md
mkdir -p $(@D)
cp $< $@
docs/serverko/%.md: krov/serverko/%/README.md
mkdir -p $(@D)
cp $< $@

View File

@@ -0,0 +1,3 @@
---
VMID: 115
---

View File

@@ -0,0 +1,3 @@
---
VMID: 126
---

View File

@@ -0,0 +1,3 @@
---
VMID: 122
---

View File

@@ -0,0 +1,3 @@
---
VMID: 118
---

View File

@@ -0,0 +1,3 @@
---
VMID: 124
---

View File

@@ -0,0 +1,3 @@
---
VMID: 111
---

View File

@@ -0,0 +1,3 @@
---
VMID: 106
---

View File

@@ -0,0 +1,3 @@
---
VMID: 119
---

View File

@@ -0,0 +1,3 @@
---
VMID: 109
---

View File

@@ -0,0 +1,3 @@
---
VMID: 117
---

View File

@@ -0,0 +1,3 @@
---
VMID: 104
---

View File

@@ -0,0 +1,3 @@
---
VMID: 121
---

3
kralizec/nginx/README.md Normal file
View File

@@ -0,0 +1,3 @@
---
VMID: 108
---

View File

@@ -0,0 +1,3 @@
---
VMID: 127
---

View File

@@ -0,0 +1,3 @@
---
VMID: 113
---

View File

@@ -0,0 +1,3 @@
---
VMID: 105
---

View File

@@ -0,0 +1,3 @@
---
VMID: 116
---

View File

@@ -0,0 +1,3 @@
---
VMID: 123
---

3
kralizec/ssh11/README.md Normal file
View File

@@ -0,0 +1,3 @@
---
VMID: 114
---

View File

@@ -0,0 +1,3 @@
---
VMID: 112
---

3
kralizec/tor11/README.md Normal file
View File

@@ -0,0 +1,3 @@
---
VMID: 101
---

View File

@@ -0,0 +1,3 @@
---
VMID: 125
---

View File

@@ -0,0 +1,3 @@
---
VMID: 120
---

View File

@@ -0,0 +1,3 @@
---
VMID: 102
---

View File

@@ -0,0 +1,3 @@
---
VMID: 101
---

View File

@@ -0,0 +1,3 @@
---
VMID: 102
---

View File

@@ -0,0 +1,3 @@
---
VMID: 110
---

View File

@@ -0,0 +1,3 @@
---
VMID: 109
---

View File

@@ -0,0 +1,3 @@
---
VMID: 107
---

View File

@@ -0,0 +1,3 @@
---
VMID: 100
---

View File

@@ -0,0 +1,3 @@
---
VMID: 106
---

View File

@@ -0,0 +1,3 @@
---
VMID: 108
---

View File

@@ -0,0 +1,3 @@
---
VMID: 104
---

View File

@@ -0,0 +1,3 @@
---
VMID: 112
---

View File

@@ -0,0 +1,3 @@
---
VMID: 111
---

View File

@@ -0,0 +1,3 @@
---
VMID: 103
---

View File

@@ -0,0 +1,3 @@
---
VMID: 105
---

View File

@@ -0,0 +1,3 @@
---
VMID: 114
---

View File

@@ -0,0 +1,3 @@
---
VMID: 103
---

View File

@@ -0,0 +1,3 @@
---
VMID: 115
---

View File

@@ -0,0 +1,3 @@
---
VMID: 106
---

View File

@@ -0,0 +1,3 @@
---
VMID: 107
---

View File

@@ -0,0 +1,3 @@
---
VMID: 108
---

View File

@@ -0,0 +1,3 @@
---
VMID: 113
---

View File

@@ -0,0 +1,3 @@
---
VMID: 111
---

View File

@@ -0,0 +1,3 @@
---
VMID: 102
---

3
krov/srv1/ympd/README.md Normal file
View File

@@ -0,0 +1,3 @@
---
VMID: 109
---

41
setup/git-aliases.md Normal file
View File

@@ -0,0 +1,41 @@
---
volume: Decentrala
section: 6
title: git aliases
author: Malin
source: dmz.rs
---
## Aliases
Put these in `~/.bash_aliases`
```
alias gb='git branch'
alias gc='git add -p . && git commit'
alias gd="git diff --word-diff"
alias gl='git log --graph --show-signature'
alias gla="git log --all --decorate --oneline --graph"
alias gm='git merge'
alias gis='git status'
```
## Dangerous Aliases
Get a fuzzy-finder, like `fzy,` or `sk` (called `sk-im` in the repos), and checkout faster:
```
alias gco='git checkout --recurse-submodules $(sk -c "git branch | cut -c 3-")'
```
Delete all changes and start again instantly:
```
alias grs='git reset --hard HEAD'
```
Push to remotes that don't use http:
```
alias gpa='git remote show | while read remote; do git remote get-url $remote | grep -qv http && git push $remote; done'
```

View File

@@ -0,0 +1,21 @@
### Soft serve webhooks
Soft serve supports [webhooks](https://en.wikipedia.org/wiki/Webhook)
Webhooks allow us to get notified on some web server when some events occur on the soft serve git server. Currently supported events that can be subscribed to (for a specific repo) are:
- branch_tag_create
- branch_tag_delete
- collaborator
- push
- repository
- repository_visibility_change
See help page for repo webhooks
`ssh -p 2222 soft.dmz.rs repo webhook --help`
##### Example
An example for using a webhook could be that you want to be notified when anyone pushes commits to `boban` repo
You could create a webhook that will trigger on the push event of the boban repo and send a request to boban.dmz.rs/push url (where you could host a webapp that listens for that request). The webapp will react to it by sending a xmpp message with details on which commits where pushed etc.
`webhook create boban boban.dmz.rs/push --events push`