Skip to content
Snippets Groups Projects
Commit 090772fb authored by nimrod's avatar nimrod
Browse files

Updates for GitLab.

Replace links from the old cgit instance to the new GitLab instance.
parent 339696df
No related branches found
No related tags found
No related merge requests found
[submodule "pelican-mockingbird"] [submodule "pelican-mockingbird"]
path = pelican-mockingbird path = pelican-mockingbird
url = https://www.shore.co.il/git/pelican-mockingbird url = https://git.shore.co.il/nimrod/pelican-mockingbird.git
...@@ -46,4 +46,4 @@ International license](https://creativecommons.org/licenses/by/4.0/). ...@@ -46,4 +46,4 @@ International license](https://creativecommons.org/licenses/by/4.0/).
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](
https://www.shore.co.il/). Patches are welcome via [`git send-email`]( https://www.shore.co.il/). Patches are welcome via [`git send-email`](
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located
at: <https://www.shore.co.il/git/>. at: <https://git.shore.co.il/>.
...@@ -95,7 +95,7 @@ it: ...@@ -95,7 +95,7 @@ it:
.. code:: shell .. code:: shell
git clone https://www.shore.co.il/git/ansible-role-example ansible-role-name git clone https://git.shore.co.il/ansible/ansible-role-example.git ansible-role-name
cd ansible-role-name cd ansible-role-name
for file in $(git grep -l ansible-role-example); do sed -i 's/ansible-role-example/ansible-role-name/g' $file; done for file in $(git grep -l ansible-role-example); do sed -i 's/ansible-role-example/ansible-role-name/g' $file; done
git add . git add .
......
...@@ -47,5 +47,5 @@ Really, not that complicated. The only magic (undocumented) bit is creating a ...@@ -47,5 +47,5 @@ Really, not that complicated. The only magic (undocumented) bit is creating a
:code:`__init__.py` file inside the :code:`library` directory, which is a :code:`__init__.py` file inside the :code:`library` directory, which is a
shame that the Ansible documentation doesn't cover that. If you want to see a shame that the Ansible documentation doesn't cover that. If you want to see a
real-life example, checkout my `ansible-playbooks real-life example, checkout my `ansible-playbooks
<https://www.shore.co.il/cgit/ansible-playbooks>`_ and `ansible-modules <https://git.shore.co.il/ansible/ansible-playbooks.git>`_ and `ansible-modules
<https://www.shore.co.il/cgit/ansible-modules>`_ git repos. <https://git.shore.co.il/ansible/ansible-modules.git>`_ git repos.
...@@ -6,20 +6,21 @@ bundle_certs ...@@ -6,20 +6,21 @@ bundle_certs
Like I said in a previous blog post, I rarely blog but I run :code:`git init Like I said in a previous blog post, I rarely blog but I run :code:`git init
project-name` pretty regularly. So here's a new such repo, `bundle_certs project-name` pretty regularly. So here's a new such repo, `bundle_certs
<https://www.shore.co.il/cgit/bundle_certs/>`_. A simple shell script for <https://git.shore.co.il/nimrod/bundle_certs.git>`_. A simple shell script for
bundling (in the correct order) SSL certificates. bundling (in the correct order) SSL certificates.
How I start new projects How I start new projects
------------------------ ------------------------
This little tool, along with `ssl-ca <https://www.shore.co.il/cgit/ssl-ca/>`_ This little tool, along with `ssl-ca
and `ssh-ca <https://www.shore.co.il/cgit/ssh-ca/>`_ have some commonality in <https://git.shore.co.il/nimrod/ssl-ca.git>`_ and `ssh-ca
how I use them and this seems like a good opportunity to share. I keep my rc <https://git.shore.co.il/nimrod/ssh-ca.git>`_ have some commonality in how I use
files (like :code:`.vimrc`) in the them and this seems like a good opportunity to share. I keep my rc files (like
`rcfiles <https://www.shore.co.il/cgit/rcfiles/`>_ repo. However I don't install :code:`.vimrc`) in the `rcfiles repo
them as mentioned in the documentation. Instead I add them as Git sub modules <https://git.shore.co.il/nimrod/rcfiles.git`>_. However I don't install them as
and now I can be reasonably sure that when I clone the rcfiles repository, the mentioned in the documentation. Instead I add them as Git sub modules and now I
aliases and sourced files mentioned in :code:`.bashrc` are present. Here's how: can be reasonably sure that when I clone the rcfiles repository, the aliases and
sourced files mentioned in :code:`.bashrc` are present. Here's how:
.. code:: shell .. code:: shell
......
...@@ -51,4 +51,4 @@ Final words ...@@ -51,4 +51,4 @@ Final words
----------- -----------
I've added both ways as git aliases in my `rcfiles repo I've added both ways as git aliases in my `rcfiles repo
<https://www.shore.co.il/cgit/rcfiles/tree/.gitconfig>`_. <https://git.shore.co.il/nimrod/rcfiles/-/blob/master/.config/git/config>`_.
...@@ -18,7 +18,8 @@ opensource software. ...@@ -18,7 +18,8 @@ opensource software.
you can contact me at `nimrod@shore.co.il <mailto: nimrod@shore.co.il>`_ or at you can contact me at `nimrod@shore.co.il <mailto: nimrod@shore.co.il>`_ or at
`052-8713696 <tel:0528713696>`_ (`+972-52-871-3696 <tel:+972528713696>`_ outside `052-8713696 <tel:0528713696>`_ (`+972-52-871-3696 <tel:+972528713696>`_ outside
of Israel). of Israel) or send me a message directly at `shore.co.il/spam
<https://www.shore.co.il/spam>`_.
Résumé Résumé
------ ------
...@@ -30,7 +31,7 @@ My résumé is available online in the following formats: ...@@ -30,7 +31,7 @@ My résumé is available online in the following formats:
- `PDF <https://www.shore.co.il/resume/resume.pdf>`_ - `PDF <https://www.shore.co.il/resume/resume.pdf>`_
- `Microsoft Word docx <https://www.shore.co.il/resume/resume.docx>`_ - `Microsoft Word docx <https://www.shore.co.il/resume/resume.docx>`_
There's also a `repository <https://www.shore.co.il/cgit/resume/about>`_ that There's also a `repository <https://git.shore.co.il/nimrod/resume/>`_ that
contains the original reStructuredText version and publishing pipeline. contains the original reStructuredText version and publishing pipeline.
Last thing, my public `GPG public key <{static}/static/nimrod.asc>`_ Last thing, my public `GPG public key <{static}/static/nimrod.asc>`_
...@@ -117,4 +117,4 @@ After we added the content we want to upload it to our web server (I use fabric) ...@@ -117,4 +117,4 @@ After we added the content we want to upload it to our web server (I use fabric)
If you don't have keys set for the server it will ask you for your password to the server. If you don't have keys set for the server it will ask you for your password to the server.
Last thing, you can create pages, create a pages directory inside contents and save the files there. Their format is the same as articles but they'll have a somewhat template applied and they will be shown in the menu. A good example will an 'About Me' page. Last thing, you can create pages, create a pages directory inside contents and save the files there. Their format is the same as articles but they'll have a somewhat template applied and they will be shown in the menu. A good example will an 'About Me' page.
That's it, you now have Pelican installed, configured and published to your web site. If you want to see a real life example, clone `my blog <https://www.shore.co.il/cgit/blog>`_. That's it, you now have Pelican installed, configured and published to your web site. If you want to see a real life example, clone `my blog <https://git.shore.co.il/nimrod/blog>`_.
...@@ -7,9 +7,9 @@ Pre-commit hooks ...@@ -7,9 +7,9 @@ Pre-commit hooks
hooks to your project. The primary goal is running fast checks on commits hooks to your project. The primary goal is running fast checks on commits
(before committing them), mainly linters and syntax checkers. Today I've 2 of my (before committing them), mainly linters and syntax checkers. Today I've 2 of my
own, for Ansible playbooks and shell scripts. The Ansible playbooks hook is own, for Ansible playbooks and shell scripts. The Ansible playbooks hook is
located at https://www.shore.co.il/git/ansible-pre-commit/ and the shell scripts located at https://git.shore.co.il/ansible/ansible-pre-commit.git and the shell
hook is at https://www.shore.co.il/git/shell-pre-commit/. Both have a short scripts hook is at https://git.shore.co.il/nimrod/shell-pre-commit.git. Both
README which describes installation and usage. have a short README which describes installation and usage.
My view on testing My view on testing
------------------ ------------------
......
...@@ -41,8 +41,8 @@ Which is fine. However the code was a bit longer than it should have been and ...@@ -41,8 +41,8 @@ Which is fine. However the code was a bit longer than it should have been and
I felt it could be done better. A little more research and I found an answer in I felt it could be done better. A little more research and I found an answer in
`Stack Overflow <https://stackoverflow.com/a/10491738>`_ that mentioned `Stack Overflow <https://stackoverflow.com/a/10491738>`_ that mentioned
:code:`uuencode` and :code:`uudecode`. Reading the man page I saw it was closer :code:`uuencode` and :code:`uudecode`. Reading the man page I saw it was closer
to what I wanted. The code I wrote is available on my `cgit instance to what I wanted. The code I wrote is available on my `GitLab instance
<https://www.shore.co.il/git/bundle/about/?id=first_implementation>`_. <https://git.shore.co.il/nimrod/bundle/-/tree/first_implementation>`_.
The implementation works as follows. The bundle has the script at the start of The implementation works as follows. The bundle has the script at the start of
the file with the encoded binary at the end. The shell executes the script part the file with the encoded binary at the end. The shell executes the script part
...@@ -71,7 +71,7 @@ Everything I found assumed that the file was present in the file system for ...@@ -71,7 +71,7 @@ Everything I found assumed that the file was present in the file system for
:code:`uudecode` to decode. If it was piped there was no file that :code:`uudecode` to decode. If it was piped there was no file that
:code:`uudecode` could then decode. I kept mauling over it and a came up with :code:`uudecode` could then decode. I kept mauling over it and a came up with
a short, clean solution to this problem, which is available `here a short, clean solution to this problem, which is available `here
<https://www.shore.co.il/git/bundle/about/?id=second_implementation>`_, again <https://git.shore.co.il/nimrod/bundle/-/tree/second_implementation>`_, again
with build instruction and test examples. with build instruction and test examples.
This time I used AWK to replace a single line in the script with the file, This time I used AWK to replace a single line in the script with the file,
......
...@@ -7,19 +7,19 @@ Spam me ...@@ -7,19 +7,19 @@ Spam me
A while back I saw an interesting project, `Patchbay <https://patchbay.pub/>`_. A while back I saw an interesting project, `Patchbay <https://patchbay.pub/>`_.
At first I wanted to use it when I run long tasks on remote machines (as the At first I wanted to use it when I run long tasks on remote machines (as the
example shows). I would obviously script the desktop part, commit it to my example shows). I would obviously script the desktop part, commit it to my
`rcfiles repo <https:/www.shore.co.il/git/rcfiles>`_ and have it run on startup. `rcfiles repo <https:/git.shore.co.il/nimrod/rcfiles.git>`_ and have it run on
As a security/ privacy concern, I plannedd on keeping the full URL private. So startup. As a security/ privacy concern, I plannedd on keeping the full URL
I shelved it until I would have a proper secret management system in place for private. So I shelved it until I would have a proper secret management system
such things. in place for such things.
A few months went by and I remembered that project and started to play around A few months went by and I remembered that project and started to play around
with receiving such messages but sending them from a webpage. The outcome is with receiving such messages but sending them from a webpage. The outcome is
`shore.co.il/spam <https://www.shore.co.il/spam>`_. I'm annnouncing this on my `shore.co.il/spam <https://www.shore.co.il/spam>`_. I'm annnouncing this on my
blog as I'm actually interested to see if I get any spam this way. The desktop blog as I'm actually interested to see if I get any spam this way. The desktop
side of things is in this `rcfiles commit side of things is in this `rcfiles commit
<https://www.shore.co.il/git/rcfiles/commit/?id=b9732647fe865e9fc7c225b26adb6275ee435a94>`_ <https://git.shore.co.il/nimrod/rcfiles/-/commit/1e912443df1d8066f074a4addb1b443ada9ee36e>`_
and the source for web page is in my `blog commit and the source for web page is in my `blog commit
<https://www.shore.co.il/git/blog/commit/?id=b99513ebadc5f39c77d109597804b76b79e5a2c0>`_, <https://git.shore.co.il/nimrod/blog/-/commit/b99513ebadc5f39c77d109597804b76b79e5a2c0>`_,
both are quite public. both are quite public.
There isn't something technically interesting here (apart from Patchbay). But There isn't something technically interesting here (apart from Patchbay). But
......
...@@ -24,4 +24,4 @@ signed certificates. The main use case is an internal network (like a ...@@ -24,4 +24,4 @@ signed certificates. The main use case is an internal network (like a
development or staging environment, but not just) where you control all nodes. development or staging environment, but not just) where you control all nodes.
For that goal, it's as close to a real CA as needed and somewhat secure. There's For that goal, it's as close to a real CA as needed and somewhat secure. There's
no OCSP or CRL, the certs serial is random, but the default hash, bit length and no OCSP or CRL, the certs serial is random, but the default hash, bit length and
algorithms are modern and secure. You can get it at: https://www.shore.co.il/cgit/ssl-ca/about/. algorithms are modern and secure. You can get it at: https://git.shore.co.il/nimrod/ssl-ca/.
...@@ -28,7 +28,7 @@ RELATIVE_URLS = True ...@@ -28,7 +28,7 @@ RELATIVE_URLS = True
DIRECT_TEMPLATES = ('index', 'archives') DIRECT_TEMPLATES = ('index', 'archives')
DISPLAY_CATEGORIES_ON_MENU = False DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = True DISPLAY_PAGES_ON_MENU = True
MENUITEMS = (('Code', 'https://www.shore.co.il/git/'),) MENUITEMS = (('Code', 'https://git.shore.co.il/nimrod'),)
THEME = "./pelican-mockingbird" THEME = "./pelican-mockingbird"
TAGS_SAVE_AS = '' TAGS_SAVE_AS = ''
TAG_SAVE_AS = '' TAG_SAVE_AS = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment