Skip to content

Instantly share code, notes, and snippets.

View kmpm's full-sized avatar

Peter Magnusson kmpm

View GitHub Profile
@kmpm
kmpm / README.md
Last active March 11, 2021 12:13
openSUSE MicroOS, combustion, rancher and proxmox

openSUSE MicroOS, combustion, rancher and proxmox

This document is a work in progress to help me keep track of stuff while trying to get Rancher running on openSUSE MicroOS in a virtual machine on a Proxmox host.

Setup

proxmox host

# import a qcow2 as a disk to an existing vm
@kmpm
kmpm / .tmux.conf
Created June 16, 2020 16:35
Nice little config for tmux
# https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
@kmpm
kmpm / README.md
Last active May 18, 2020 15:47
MotionEye and Motion on Raspbian Buster

MotionEye and Motion on Raspian Buster

This will use python2 even though it's deprecated since MotionEye still does not work with python3

sudo apt install motion ffmpeg v4l-utils python libcurl4-openssl-dev libssl-dev \
  python-pip \
  virtualenv \
 python-libtiff \
@kmpm
kmpm / Git-and-SCM-in-Swedish.md
Last active March 4, 2024 15:09
Git och kodhantering på svensk-engelska

Git och kodhantering på svensk-engelska

Det har funnints många försök att översätta terminologin som man använder i git och kodhantering, a´la github, gitlab och gitea, till svenska utan att man enligt mitt tycke träffat rätt. Nu kommer det här bli ytterligare ett inlägg i historien som inte heller träffar rätt men jag gör ett försök ändå.

Min huvudtanke är att behålla engelskan i ganska lång utsträckning vad det gäller själva programmet gitdå man annars kommer ifrån det som kommandon, hjälptexter och google-sökningar faktiskt använder som terminiologi och detta tycker jag är olyckligt.

@kmpm
kmpm / README.md
Last active October 18, 2019 11:02
Moxa ThingsPro notes and stuff
@kmpm
kmpm / .hyper.js
Created May 6, 2019 08:26
Current hyper config
// 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',
@kmpm
kmpm / bionic-playbook.yml
Created April 9, 2019 11:24
Ansible playbook for ubuntu bionic
---
# ubuntu bionic development server playbook
- hosts: all
vars:
ansible_python_interpreter: "python3"
tasks:
- name: disable DNSSEC
become: yes
lineinfile:
@kmpm
kmpm / ursimtool
Last active November 8, 2018 13:23
URSim Tools
#!/usr/bin/env bash
VERSION="URSim_Linux-3.7.2.40245.tar.gz"
FOLDER="ursim-3.7.2.40245"
FILE=ursim.tar.gz
UNPACKDIR=/tmp/ursim-unpack
function download {
vagrant : INFO global: Vagrant version: 2.0.2
At line:1 char:1
+ vagrant up --debug --provider hyperv 2>&1 | Tee-Object -FilePath ".\v ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.0.2:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.3
INFO global: RubyGems version: 2.6.14

Components

#tile-list

Basic example