Skip to content

Instantly share code, notes, and snippets.

@lausdahl
lausdahl / git-extract-subdir.md
Last active May 18, 2022 22:02
How to Extract a Subdirectory as a New git Repository
# 1. Clone the remote 
git clone monster-repository project-repository

# 2. change dir
cd project-repository

# 3. Remove the remote
git remote rm origin
@lausdahl
lausdahl / maven-local-repo.md
Created July 31, 2015 10:55
Run Maven with a local repo specified in the terminal

use maven property maven.repo.local:

use it like:

mvn clean install -Dmaven.repo.local=target/repo

@lausdahl
lausdahl / vagrant-libvirt-ubuntu-trusty.md
Last active August 29, 2015 14:26
Vagrant libvirt on Ubuntu LTE

Libvirt

sudo apt-get install qemu-kvm libvirt-bin bridge-utils

Vagrant

Install

@lausdahl
lausdahl / svnignore.md
Last active September 13, 2021 15:51
SVN ignore

SVN ignore

How to set SVN ignore like git .gitignore

First make a .svnignore file

bin 
gen
proguard 
@lausdahl
lausdahl / virt-manager.md
Created August 21, 2015 13:45
Virt-Manager

Remote connect

virt-manager -c qemu+ssh://$user@$ip/system
@lausdahl
lausdahl / test-all-pulls.sh
Created May 13, 2016 20:48
oveture pull test
#!/bin/bash
#git checkout kel/main
#git branch -D DevFactory-release/test-all
#git checkout -b DevFactory-release/test-all f871c30fbebd333d5b169bd6b20fd5d7372fce87
test(){
mvn clean package -q -Dmaven.javadoc.skip=true -DexternalTestsPath=/Users/kel/data/overture/externaltests/ -Dmaven.test.redirectTestOutputToFile=true -PWith-IDE
}
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
@lausdahl
lausdahl / I2C_Exmaple.ino
Last active November 1, 2017 14:02
I2C Example
#include "Arduino.h"
#include <Wire.h>
// The code is inspired by the example given at http://dsscircuits.com/articles/arduino-i2c-slave-guide
/*
* Set right motor speed
* i2cset -y 1 0x29 0x04 501 w
* Set left motor speed
* i2cset -y 1 0x29 0x03 501 w
@lausdahl
lausdahl / c-implementation-i2c.c
Created November 22, 2017 12:28
Linefollower Robot
/* ======================================================================= *//**
* @Component OMAPCONF
* @Filename i2cget.c
* @Description A user-space program to read an I2C register.
* @Copyright GPL
*//*======================================================================== */
/*
Small example using parts of the below mentioned sources
@lausdahl
lausdahl / into-cps-association-license.txt
Created December 12, 2017 10:25
INTO-CPS-Association license
--- Start of Definition of INTO-CPS Association Public License ---
/*
* This file is part of the INTO-CPS Association.
*
* Copyright (c) 2017-CurrentYear, INTO-CPS Association (ICA),
* c/o Peter Gorm Larsen, Aarhus University, Department of Engineering,
* Finlandsgade 22, 8200 Aarhus N, Denmark.
*
* All rights reserved.