Skip to content

Instantly share code, notes, and snippets.

Local: this is your local environment, e.g. on your PC or Mac.

Origin: this is your remote repository, e.g. on GitHub or BitBucket.

List all local branches:

$ git branch

List all remote (in origin) branches:

@markus-willems
markus-willems / chromium-spoitify.md
Created January 5, 2019 18:30
Enable player in your browser - Chromium -Spotify
@markus-willems
markus-willems / xubuntu-intel-tearing.md
Created January 3, 2019 19:35
Getting rid of tearing in Xubuntu 18.04.1 (Intel graphics)

Getting rid of tearing in Xubuntu 18.04.1 (Intel graphics)

  1. Enter sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf (if it doesn't already exist)
  2. Append the following snippet:
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option "AccelMethod" "sna"
 Option "DRI" "3"
@markus-willems
markus-willems / xubuntu-natural-scrolling.md
Created January 3, 2019 19:23
Enable natural scrolling in Xubuntu 18.04.1

Enable natural scrolling in Xubuntu 18.04.1

  1. Uncheck Reverse scroll direction in Settings > Mouse and Touchpad
  2. Open Terminal and enter sudo mousepad /usr/share/X11/xorg.conf.d/70-synaptics.conf
  3. Append the following snippet:
Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
 MatchIsTouchpad "on"
@markus-willems
markus-willems / README.md
Last active November 2, 2018 09:11
Simple progress bar React component

Usage

Progress bar takes 10 seconds to finish.

<SimpleProgressBar duration={10} />

Progress bar takes 5 seconds to finish. Progress starts at 50 % (i.e. already 5s in progress).

{
"editor.fontSize": 18,
"editor.fontFamily": "'Consolas'",
"editor.lineHeight": 24,
"workbench.colorTheme": "Palenight Theme",
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.fontSize": 16,
"prettier.arrowParens": "avoid",
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
@markus-willems
markus-willems / tabs.js
Created September 27, 2017 13:03
Tabs Component
import React from "react";
import { render } from "react-dom";
const App = () => (
<Tabs>
<TabList>
<Tab>Tab 1</Tab>
<Tab>Tab 2</Tab>
<Tab>Tab 3</Tab>
</TabList>