Skip to content

Instantly share code, notes, and snippets.

View mikkeloscar's full-sized avatar

Mikkel Oscar Lyderik Larsen mikkeloscar

View GitHub Profile
@mikkeloscar
mikkeloscar / cinnamon_cake.md
Last active January 10, 2019 19:22
Cinnamon Cake (Danish)

Cinnamon Cake

Ingredients

Cake

import sys
import os
import re
lines = [l.rstrip() for l in sys.stdin.readlines()]
bt = re.compile(".*Backtrace: .*sway.*\[(0x[a-f\d]+)\]")
for line in lines:
result = bt.match(line)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="test.js"></script>
</head>
<body>
<!-- page content -->
@mikkeloscar
mikkeloscar / guide.md
Created June 14, 2014 20:44
Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Simple way to setup an arm chroot for building packages for your arm devices. This is an alternative to cross-compiling where you are limited to only linking against the libs in your toolchain.

Setup chroot-fs

You can store the chroot wherever you like. I choose to store it in a disk-image which I mount to my filesystem.

@mikkeloscar
mikkeloscar / ssh-proxy@.service
Created January 5, 2014 20:50
SystemD service for simple SSH proxy
[Unit]
Description = SSH Proxy for %i
After = network.target
[Service]
ExecStart = /usr/bin/ssh -D 8080 -N %i -p 22
[Install]
WantedBy=multi-user.target
@mikkeloscar
mikkeloscar / gist:2466335
Last active October 3, 2015 14:08
Yousee Copenhagen Frequency for linux tv scanfile
C 143000000 6875000 NONE QAM64
C 570000000 6875000 NONE QAM64
@mikkeloscar
mikkeloscar / Terminus-Powerline.ttf
Created April 18, 2012 21:13
Terminus patched for vim-powerline (gvim)