Skip to content

Instantly share code, notes, and snippets.

View jkw's full-sized avatar

Kristian Wedmark jkw

View GitHub Profile
@jkw
jkw / pelicanconf.py
Created April 22, 2018 10:50
Current pelicanconf.py
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'jkw'
SITENAME = 'jkw of the internet'
# SITEURL = 'https://jkw.github.io'
PATH = 'content'
OUTPUT_PATH = 'docs/'
DISPLAY_PAGES_ON_MENU = True
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@jkw
jkw / .vimrc
Last active September 30, 2017 14:42
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"-[ Plugins ]-----------------------------------------------------------------
Plugin 'VundleVim/Vundle.vim' " Vundle
Plugin 'tpope/vim-fugitive' " Gitshit
Plugin 'tmhedberg/SimpylFold' " Code folding
Plugin 'vim-scripts/indentpython.vim' " Fix for auto-indent in python
@jkw
jkw / createpost.py
Created July 23, 2017 22:00
Create mockup .md files for blogposts using Pelican.
#!/usr/bin/env python
"""
Create a Markdown-file with current time and date etc.
"""
import datetime
import os
def createpost():
today = datetime.datetime.now()

Keybase proof

I hereby claim:

  • I am jkw on github.
  • I am jkw (https://keybase.io/jkw) on keybase.
  • I have a public key ASDJOqxt3Mu8riHgIMgBLUlmqagNA0xqcAk0Pk4f6tjGFAo

To claim this, I am signing this object:

@jkw
jkw / LenovoYoga900-Linux.md
Last active July 17, 2017 16:19
Lenovo Yoga 900 Linux, known issues and fixes.

Lenovo Yoga 900

Issues with fixes

Gyro sesors.

Install the package from the AUR, iio-sensors-proxy. If it still doesn't work, tap the rotation lock button next to the power-button once.

LightDM Webgreeter

Add the following to the current theme if it isn't scaled well and show as tiny.

# initialization file (not found)