Skip to content

Instantly share code, notes, and snippets.

View wikimatze's full-sized avatar
💭
Writing

Matthias Günther wikimatze

💭
Writing
View GitHub Profile
function prompt_wikimatze_precmd {
git-info
}
function prompt_wikimatze_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
# Load required functions.
@wikimatze
wikimatze / gist:9790374
Created March 26, 2014 18:43
Github Two-Factor Authentication Failed For HTTPS

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@wikimatze
wikimatze / ctags.md
Last active April 7, 2022 23:46
Browsing Padrino's Code Base With Ctags in Vim

Working effectively with ctags has always been a topic I missed for a long time because I was too lazy to invest time to learn about the it.

I was working on on my application and was constantly consulting Padrino's API doc in the browser. It would have been more effective if I can do the searching directly the Padrino's code on GitHub. Benefit I don't have to leave the terminal and can focus on my task.

What is ctags

ctags is a tool which make it easy for you to shift through in no time.

@wikimatze
wikimatze / slides.md
Created April 22, 2021 10:26
Basic introduction into tmux

%title: tmux - terminal multiplexer for Unix OS %author: @wikimatze %date: 2021-04-22

-> tmux <-

-> Have multiple terminal sessions used in parallel in a single window <-

@wikimatze
wikimatze / vimtex.md
Last active February 23, 2019 02:21
Article about vimtex

See context under

Installing

First start and basic setup

Starting weechat

06:18:26 | ___ __ ______________ _____
@wikimatze
wikimatze / _post.haml
Created October 14, 2018 17:18
padrino blog tutorial _post.haml
.column.is-7.is-offset-2
.card.article
.card-content
.media
.media-content.has-text-centered
%p.title.article-title
%h3.has-text-centered
= link_to post.title, url_for(:posts, :show, :id => post.id)
.has-addons
%span.tag.is-rounded= time_ago_in_words(post.created_at || Time.now) + ' ago'
@wikimatze
wikimatze / application.js
Last active October 14, 2018 17:01
padrino blog tutorial application js
document.addEventListener('DOMContentLoaded', function () {
// Get all "navbar-burger" elements
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach(function ($el) {
$el.addEventListener('click', function () {
@wikimatze
wikimatze / application.css
Last active October 14, 2018 17:01
padrino blog tutorial application css
.hero-body {
background-image: url(https://farm3.staticflickr.com/2840/33942486610_e0c80a7999_o_d.jpg);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 700px;
background-color: black;
}
h1.title {
@wikimatze
wikimatze / application.haml
Last active October 14, 2018 17:01
padrino blog tutorial application layout
!!! Strict
%html
%head
%title= "Padrino Sample Blog"
= stylesheet_link_tag 'bulma', 'application'
= javascript_include_tag 'jquery', 'application'
%body
%nav.navbar
%div.container
.navbar-brand