Several minor bugs have been fixed

This commit is contained in:
Sameer Rahmani 2019-02-26 21:14:43 +00:00
bovenliggende 0e6aef727a
commit e6ca427f46
8 gewijzigde bestanden met toevoegingen van 35 en 6 verwijderingen

1
.gitignore vendored
Bestand weergeven

@ -1,3 +1,4 @@
_site
.sass-cache
.jekyll-metadata
_tmp/

Bestand weergeven

@ -18,7 +18,7 @@ layout: default
<div class="columns is-centered is-flex">
<div class="column is-one-quarter centered">
<a class="button is-primary is-block cv-button" href="/">
<a class="button is-primary is-block cv-button" href="https://dl.lxsameer.com/CV/SameerRahmani.pdf">
<b>
Download My CV
</b>

Bestand weergeven

@ -15,8 +15,7 @@ theme: dark
{% for tag in page.categories %}
<a href="/categories/{{tag}}">
<li class="category">
{{ tag | capitalize }}
<i class="fas fa-link"></i> {{ tag | capitalize }}
</li>
</a>
{% endfor %}

Bestand weergeven

@ -6,6 +6,6 @@ theme: dark
categories: Announcements
tags: gitlab
---
As soon as I hear about Micro$oft acquiring Github I decided to migrate to Gitlab. My guts tells me to do not trust a corporation behind the [Halloween document](https://en.wikipedia.org/wiki/Halloween_documents). Micro$oft might be a different company these days but their history is enough to not to trust them. Even if they are different and have no bad intentions, but still acquiring company such as Github means that the very first thing they will do is to integrate Github with their own services and that's enough for me to move.
As soon as I hear about Micro$oft acquiring Github I decided to migrate to Gitlab. My guts tells me to do not trust a corporation behind the [Halloween document](https://en.wikipedia.org/wiki/Halloween_documents). Micro$oft might be a different company these days but their history is enough to not to trust them. Even if they are different and have no bad intentions, but still acquiring company such as Github means that the very first thing they will do is to integrate Github with their own services and that is enough for me to move.
In the other hand Gitlab is a free software with tons of feature like built-in CI and docker registry and other cool stuff. I totally recommend Gitlab as a better alternative to Github.

14
_scripts/deploy Executable file
Bestand weergeven

@ -0,0 +1,14 @@
#! /bin/bash
echo "Cleaning up..."
rm ./_tmp -rf
mkdir -p ./_tmp/
echo "Compiling..."
bundle exec jekyll build
echo "Creating the package..."
tar zcf _tmp/package.tar.gz _site/
echo "Uploading the package..."
scp _tmp/package.tar.gz lxsameer@core.lxsameer.com:/home/lxsameer/tmp/package.tar.gz
echo "Running remote commands..."
ssh lxsameer@core.lxsameer.com 'bash -s' < ./_scripts/remote.sh
echo "Done!"

14
_scripts/remote.sh Normal file
Bestand weergeven

@ -0,0 +1,14 @@
#! /bin/bash
echo "[REMOTE]: Cleaning up..."
rm -rf ~/resources
echo "[REMOTE]: Extracting the package..."
tar zxf ~/tmp/package.tar.gz
echo "[REMOTE]: Installing the content..."
mkdir -p ~/lxsameer.com
cp -rv ~/_site/* ~/lxsameer.com/home/
chmod 755 ~/lxsameer.com/home/ -R
echo "[REMOTE]: Cleaning up..."
rm -rf ~/_site ~/tmp/
mkdir -p ~/tmp
echo "[REMOTE]: Done"

Bestand weergeven

@ -62,7 +62,7 @@ body.dark
&:hover
color: darken($white, 30%)
text-decoration: underline
content.post
p

Bestand weergeven

@ -2,12 +2,13 @@
layout: post
theme: dark
---
{% for post in site.posts %}
<div class="columns">
<div class="column">
<h2 class="is-size-3">
<a class="post-title-link" href="{{ post.url }}">
{{ post.title }}
<i class="fas fa-link"></i> {{ post.title }}
</a>
</h2>
</div>