aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-31 00:11:14 +0200
committerJulien Dessaux2021-03-31 09:38:18 +0200
commite8d20ad887b1ccaa21da0dc3f3c833124b92d469 (patch)
tree1fa4e6c97f7f1cdfeb1aaa517a1f559685e86666
parentUpdated License (diff)
downloadwww-e8d20ad887b1ccaa21da0dc3f3c833124b92d469.tar.gz
www-e8d20ad887b1ccaa21da0dc3f3c833124b92d469.tar.bz2
www-e8d20ad887b1ccaa21da0dc3f3c833124b92d469.zip
Added content
-rw-r--r--content/blog/miscellaneous/mirroring-to-github.md27
-rw-r--r--content/books/misc/hommes-viennent-de-mars.md7
-rw-r--r--content/books/misc/mens-are-from-mars.md7
-rw-r--r--content/books/misc/the-field-guide-to-understanding-human-error.md11
4 files changed, 45 insertions, 7 deletions
diff --git a/content/blog/miscellaneous/mirroring-to-github.md b/content/blog/miscellaneous/mirroring-to-github.md
new file mode 100644
index 0000000..c6b1fb2
--- /dev/null
+++ b/content/blog/miscellaneous/mirroring-to-github.md
@@ -0,0 +1,27 @@
+---
+title: Mirroring a repository to github
+description: How to mirror a git repository to github
+date: 2021-03-30
+tags:
+ - git
+---
+
+## Introduction
+
+I have been running my own [git server]({{< ref "docs/adyxax.org/git.md" >}}) for more than 10 years (first with just ssh, then with [gitolite](https://gitolite.com/gitolite/index.html) and finally with [gitea](https://gitea.io/)). I manually pushed some of my work to github for better exposition and just decided to automate that mirroring.
+
+## How to
+
+It turns out it is quite simple. First you will need to generate a [github access token](https://github.com/settings/tokens). Be very carefull with it, it gives unlimited access to your whole github account. I wish I could generate token with a more limited access (to a single repository for example) but sadly this is not the case as of this writing.
+
+Then you create a git hook with a script that looks like the following :
+
+{{< highlight sh >}}
+#!/usr/bin/env bash
+set -eu
+
+git push --mirror --quiet https://adyxax:TOKEN@github.com/adyxax/www.git &> /dev/null
+echo 'github updated'
+{{< /highlight >}}
+
+Just put your token there, adjust the repository path and it will work. I am using this in `post-receive` hooks on my git server on several repositories without any issue.
diff --git a/content/books/misc/hommes-viennent-de-mars.md b/content/books/misc/hommes-viennent-de-mars.md
deleted file mode 100644
index e14af41..0000000
--- a/content/books/misc/hommes-viennent-de-mars.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: "Les hommes viennent de Mars, les femmes viennent de VĂ©nus"
-date: 2020-09-28
-description: John Gray
----
-
-TODO
diff --git a/content/books/misc/mens-are-from-mars.md b/content/books/misc/mens-are-from-mars.md
new file mode 100644
index 0000000..084c85d
--- /dev/null
+++ b/content/books/misc/mens-are-from-mars.md
@@ -0,0 +1,7 @@
+---
+title: "Men Are from Mars, Women Are from Venus"
+date: 2020-09-28
+description: John Gray
+---
+
+TODO
diff --git a/content/books/misc/the-field-guide-to-understanding-human-error.md b/content/books/misc/the-field-guide-to-understanding-human-error.md
new file mode 100644
index 0000000..3f9f3f7
--- /dev/null
+++ b/content/books/misc/the-field-guide-to-understanding-human-error.md
@@ -0,0 +1,11 @@
+---
+title: "The Field Guide To Understanding Human Error"
+description: Sidney Dekker
+date: 2021-03-07
+---
+
+I first read this book in 2012 and decided to reread it for a short break in the Stormlight Archive series.
+
+This is a great book that I highly recommend. It will help you understand more about what is too often concluded as "human errors" and how the aeronautical industry has evolved to cope with them. There is a lot to learn from this in the computer industry, the mindset and methodology the author presents can lead to true progress in so many ways! Even though good post-mortem stories are now a little more common (and there is nothing I like more than a well investigated post-mortem), it is still far from being the norm. Our industry is quick to `git blame` or look in the shell history to search who had the fat fingers and ignore all the other factors that lead to failure.
+
+Not only will the book gives you a better understanding of accidents, it will also help you do better investigations. Last but not least, it is rich with arguments you can use to try and initiate that kind of change in your workplace.