Several minor bugs have been fixed

This commit is contained in:
Sameer Rahmani 2019-02-26 21:14:43 +00:00
부모 0e6aef727a
커밋 e6ca427f46
8개의 변경된 파일35개의 추가작업 그리고 6개의 파일을 삭제

1
.gitignore vendored
파일 보기

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

파일 보기

@ -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>

파일 보기

@ -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 %}

파일 보기

@ -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
파일 보기

@ -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
파일 보기

@ -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"

파일 보기

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

파일 보기

@ -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>