Commit 13d34dea authored by Kirk Lange's avatar Kirk Lange

First post

parent 4c86325d
Pipeline #23275581 passed with stage
in 1 minute and 6 seconds
...@@ -5,7 +5,7 @@ description: "Personal Blog and Portfolio" ...@@ -5,7 +5,7 @@ description: "Personal Blog and Portfolio"
baseurl: "" baseurl: ""
url: "http://kirklange.com" url: "http://kirklange.com"
title_description: "Programmer? Pianist? Same difference, they both work at title_description: "Programmer? Pianist? Same difference, they both work at
the keyboard.<br><br>Are you an employer I'm trying to impress? Click this <a href=\"about\" class=\"inline\" target=\"_self\"><i class=\"fas fa-file-alt\"></i></a> icon to see my resume!" the keyboard.<br><hr>Are you an employer I'm trying to impress? Click this <a href=\"about\" class=\"inline\" target=\"_self\"><i class=\"fas fa-file-alt\"></i></a> icon to see my resume!<br><br>All my GitLab repos are mirrored onto GitHub. Use whichever platform you prefer!"
title_image: "https://www.gravatar.com/avatar/f0272e9987be9113b93e9e4b7153fa1d?s=500&d=mm" title_image: "https://www.gravatar.com/avatar/f0272e9987be9113b93e9e4b7153fa1d?s=500&d=mm"
google_analytics: google_analytics:
github_repository: #https://github.com/kirklange/kirklange.github.io github_repository: #https://github.com/kirklange/kirklange.github.io
...@@ -16,12 +16,12 @@ post_limit: 3 ...@@ -16,12 +16,12 @@ post_limit: 3
# Social usernames/URLs # Social usernames/URLs
disqus_account: disqus_account:
gitlab_username: kirklange gitlab_username: kirklange
github_username: #kirklange github_username: kirklange
stackoverflow_link: stackoverflow_link:
reddit_username: kirk_lange reddit_username: kirk_lange
google_plus_link: google_plus_link:
facebook_link: facebook_link:
twitter_username: #kirklange_com twitter_username: kirklange_com
instagram_username: instagram_username:
linkedin_link: http://www.linkedin.com/in/kirk-lange/ linkedin_link: http://www.linkedin.com/in/kirk-lange/
xing_link: xing_link:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% if site.gitlab_username %}<a href="https://gitlab.com/{{ site.gitlab_username }}" target="_new"><i class="fab fa-gitlab"></i></a> {% if site.gitlab_username %}<a href="https://gitlab.com/{{ site.gitlab_username }}" target="_new"><i class="fab fa-gitlab"></i></a>
&nbsp; &nbsp;
{% endif %} {% endif %}
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" target="_new"><i class="fab fa-github-alt"></i></a> {% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" target="_new"><i class="fab fa-github"></i></a>
&nbsp; &nbsp;
{% endif %} {% endif %}
{% if site.stackoverflow_link %}<a href="{{ site.stackoverflow_link }}" target="_new"><i class="fab fa-stack-overflow"></i></a> {% if site.stackoverflow_link %}<a href="{{ site.stackoverflow_link }}" target="_new"><i class="fab fa-stack-overflow"></i></a>
......
...@@ -19,16 +19,16 @@ layout: default ...@@ -19,16 +19,16 @@ layout: default
</div> </div>
{% elsif page.thumbnail %} {% elsif page.thumbnail %}
<div class="thumb"> <div class="thumb">
<i class="fa fa-{{ page.thumbnail }} fa-4x"></i> <i class="{{ page.thumbnail }} fa-4x"></i>
</div> </div>
{% endif %} {% endif %}
<h1 class="header" itemprop="name">{{ page.title }}</h1> <h1 class="header" itemprop="name">{{ page.title }}</h1>
<div class="author"> <div class="author">
{% if page.summary %} <!--{% if page.summary %}
&mdash;&nbsp;{{ page.summary }}&nbsp;&mdash;<br> &mdash;&nbsp;{{ page.summary }}&nbsp;&mdash;<br>
{% endif %} {% endif %}-->
<small><i> <small><i>
{% if page.author %} {% if page.author %}
by by
...@@ -107,7 +107,7 @@ layout: default ...@@ -107,7 +107,7 @@ layout: default
{% if page.twitterurl or site.disqus_account or page.redditurl %} {% if page.twitterurl or site.disqus_account or page.redditurl %}
<div class="content-panel feedback"> <div class="content-panel feedback">
What do you all think?<br/>I'd <i class="fa fa-heart"></i> love to hear from you What do you all think? I'd <i class="fa fa-heart"></i> love to hear from you
{% if site.twitter_username and page.twitterurl %} {% if site.twitter_username and page.twitterurl %}
{% if site.disqus_account and page.redditurl %} {% if site.disqus_account and page.redditurl %}
over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a>, over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a>,
...@@ -132,6 +132,9 @@ layout: default ...@@ -132,6 +132,9 @@ layout: default
in the comments section below! in the comments section below!
{% endif %} {% endif %}
{% endif %} {% endif %}
<br><br>
As part of my commitment to keeping this website tracker-free, there
are no embedded comment modules.
</div> </div>
{% endif %} {% endif %}
......
--- ---
published: true published: false
layout: post layout: post
title: Carte Noire Demo title: Carte Noire Demo
date: 1900-01-01 00:00:0 date: 1900-01-01 00:00
author: Jacob Tomilson author: Jacob Tomilson
summary: See what the different elements look like. summary: See what the different elements look like.
categories: jekyll categories: jekyll
thumbnail: cogs thumbnail: fas fa-cogs
redditurl: 7deu8p redditurl: 7deu8p
twitterurl: 961084879432597504 twitterurl: 961084879432597504
tags: tags:
- demo - demo
- carte - carte
- noire - noire
--- ---
**Note** - This article is a derivative of ["See pixyll in action"][1], taken from the lovely jekyll theme [pixyll][4]. **Note** - This article is a derivative of ["See pixyll in action"][1], taken from the lovely jekyll theme [pixyll][4].
......
---
published: true
layout: post
title: Mirror Your GitLab Repos on GitHub
date: 2018-06-05 21:00
author: Kirk Lange
summary: Leaving GitHub but still want to keep your repos up-to-date?
categories: how-to
thumbnail: fab fa-gitlab
redditurl: 7deu8p
twitterurl: 961084879432597504
tags:
- gitlab
- github
- git
- mirror
- repo
- repository
- microsoft
---
As I was migrating from GitHub to GitLab on Monday, I began to imagine the
awkward conversation I would have if I was ever in a Microsoft interview. Heck,
maybe the GitHub vs GitLab discussion will become a religious debate like tabs
vs spaces &mdash; the last thing I'd want to get into while networking.
After sleeping on it, I decided the best solution would be to have GitHub
mirror all my GitLab repositories. But how?! (Unlike GitLab, GitHub does not
have a "Mirror Repository" option when creating a new project.)
# Solution
As it turns out, git allows you to push to multiple URLs simply by adding
one line to your `.git/config`! Here is the relevant excerpt from this
website's repo.
```
[remote "origin"]
url = git@gitlab.com:kirklange/kirklange.gitlab.io.git
url = git@github.com:kirklange/kirklange.github.io.git
fetch = +refs/heads/*:refs/remotes/origin/*
```
Notice how there are two URLs. Whenever you execute `git push` or `git pull`,
it does so for each one. Even if you are pushing to two remote repos that
aren't in sync, git will account for this and push to what is necessary for
each repo. In other words, if you've only been pushing to GitLab since you
switched, your GitHub repo will catch up like nothing ever happened. (Your
green squares should even sync up!)
Alternately, you can run this command instead of modifying `.git/config`
directly. It does the exact same thing.
```
git remote set-url origin --add user@example.com:my/repo.git
```
If you *don't* need the ability to pull from your secondary repo, you'll want
your `.git/config` to be of this format.
```
[remote "origin"]
url = git@gitlab.com:kirklange/kirklange.gitlab.io.git
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = git@gitlab.com:kirklange/kirklange.gitlab.io.git
pushurl = git@github.com:kirklange/kirklange.github.io.git
```
In fact, it's probably best to not pull from your secondary repo in order to
avoid the headache of having to merge the two. Afterall, the goal here is only
to have the GitHub repo act as a mirror.
# Disclaimer
Fine, this is technically not "mirroring", but until Microsoft catches up to
GitLab, this is the best we can do. Please let me know if you have a better
solution. Thanks!
# Source
* <a href="https://stackoverflow.com/questions/849308" target="_blank">Stack Overflow: pull/push from multiple remote locations</a>
...@@ -220,7 +220,11 @@ ul { ...@@ -220,7 +220,11 @@ ul {
color: $facebook; color: $facebook;
} }
.fa-github-alt:hover { .fa-github:hover {
color: $github;
}
.fa-github-alt:hover {
color: $github; color: $github;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment