Skip to content

Instantly share code, notes, and snippets.


Matthias Günther wikimatze

View GitHub Profile
wikimatze / gist:9790374
Created Mar 26, 2014
Github Two-Factor Authentication Failed For HTTPS
View gist:9790374

I heard from GitHub 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 /
Created Apr 22, 2021
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 <-

View prompt_wikimatze_setup
function prompt_wikimatze_precmd {
function prompt_wikimatze_setup {
prompt_opts=(cr percent subst)
# Load required functions.


First start and basic setup

Starting weechat

06:18:26 |   ___       __         ______________        _____
wikimatze / _post.haml
Created Oct 14, 2018
padrino blog tutorial _post.haml
View _post.haml
= link_to post.title, url_for(:posts, :show, :id =>
.has-addons time_ago_in_words(post.created_at || + ' ago'
wikimatze / application.js
Last active Oct 14, 2018
padrino blog tutorial application js
View application.js
document.addEventListener('DOMContentLoaded', function () {
// Get all "navbar-burger" elements
var $navbarBurgers ='.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 / application.css
Last active Oct 14, 2018
padrino blog tutorial application css
View application.css
.hero-body {
background-image: url(;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 700px;
background-color: black;
h1.title {
wikimatze / application.haml
Last active Oct 14, 2018
padrino blog tutorial application layout
View application.haml
!!! Strict
%title= "Padrino Sample Blog"
= stylesheet_link_tag 'bulma', 'application'
= javascript_include_tag 'jquery', 'application'
wikimatze / migrateExistingPostsToFirstAccount.rb
Last active Oct 14, 2018
padrino blog tutorial migrateExistingPostsToFirstAccount
View migrateExistingPostsToFirstAccount.rb
Sequel.migration do
up do
first_account_id = from(:accounts).get(:id)
if first_account_id
from(:posts).update(account_id: first_account_id)
down do