Skip to content

Instantly share code, notes, and snippets.

View PrzemekWirkus's full-sized avatar

Przemyslaw Wirkus PrzemekWirkus

View GitHub Profile
# some more ls aliases
alias ll='ls -alF --group-directories-first'
alias lh='ls -alFh --group-directories-first'
alias la='ls -A --group-directories-first'
alias l='ls -CF --group-directories-first'
# system level operations
alias install='sudo apt install'
alias update='sudo apt update && apt list --upgradable'
alias aptitude='sudo aptitude'
@PrzemekWirkus
PrzemekWirkus / .vimrc
Last active February 26, 2018 11:49
VIM configuration
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@PrzemekWirkus
PrzemekWirkus / lnt_release.sh
Last active March 10, 2017 11:35
Prepare LNT Python package with package dev version equal to latest SVN revision of the LNT repo
#!/bin/bash
if [ -f "setup.py" ]; then
# Update version string 'dev' to 'dev12345' where 12345 is SVN revision
svn_revision=`svn info -r HEAD | awk '/^Revision:/{print $2}'`
echo "SVN Revision: $svn_revision"
sed -i -r "s/'dev([0-9]*)'/'dev$svn_revision'/g" lnt/__init__.py
cat lnt/__init__.py | grep '__version'
else
echo "error: run this script in root of Python package (where setup.py is)"
@PrzemekWirkus
PrzemekWirkus / .bashrc
Last active February 26, 2018 11:48
bash configuration for Ubuntu 16.04
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

Greentea video tutorials

This document contain links to videos presenting mbed testing tools.

mbed greentea - Testing Infrastructure

mbed greentea - Testing Infrastructure playlist

This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<title>mbed Greentea Results Report</title>
<script type="text/javascript">
function toggleOverlay(elem) {
if (elem.style.display == "") {
document.getElementsByTagName("body")[0].style.overflowY = "hidden";
elem.style.display = "block";
This file has been truncated, but you can view the full file.
<html>
<head>
<title>mbed Greentea Results Report</title>
<script type="text/javascript">
function toggleOverlay(elem) {
if (elem.style.display == "") {
document.getElementsByTagName("body")[0].style.overflowY = "hidden";
elem.style.display = "block";
} else {
document.getElementsByTagName("body")[0].style.overflowY = "auto";
<html>
<head>
<title>mbed SDK test suite test result report</title>
<style>
.name{
border: 1px solid;
border-radius: 25px;
width: 100px;
}
.tooltip{
<h2>mbed-os memory usage statistics report</h2>
<b>Module '.build/tests' memory statistics:</b> </br>
<table cellspacing=5 cellpadding=0>
<tr>
<td>
<table cellspacing=0 cellpadding=2>
<tr>
<td valign='top' bgcolor='MediumSlateBlue' width='48px' height='55px' title='Section .bss 4059 Bytes'></td>
<td valign='top' bgcolor='LightSalmon' width='0px' height='55px' title='Section .data 92 Bytes'></td>
<td valign='top' bgcolor='LightGreen' width='344px' height='55px' title='Section .text 27079 Bytes'></td>
#
# Example init.py for documentation purposes
#
# Use this file as a template/example for creating an
# initialization/configuration script for PyCmd. Scripts are loaded and applied
# based on the following rules:
#
# * If present, an init.py script in PyCmd's installation directory is
# automatically executed and defines "global" (system-wide) settings
#