Skip to content

Instantly share code, notes, and snippets.

View eliaskousk's full-sized avatar
🏠
Working from home

Elias Kouskoumvekakis eliaskousk

🏠
Working from home
  • Stromasys, University of Athens
  • Athens, Greece
View GitHub Profile
@eliaskousk
eliaskousk / test-threads.rs
Created August 27, 2020 15:40
Test Threads
//
// This simple program spawns a specified number of threads
// that execute a heavy calculation
// for a specified amount of time in seconds
//
// Usage: ./test-threads [NUM_THREADS, default is 2] [TIME_LIMIT, default is 10]
//
use std::env;
use std::thread;
### Keybase proof
I hereby claim:
* I am eliaskousk on github.
* I am eliaskousk (https://keybase.io/eliaskousk) on keybase.
* I have a public key ASC7XoLuJpXgDyqfoC_up0L85-ZKoFLbKdLEjVMdLhQmoQo
To claim this, I am signing this object:
@eliaskousk
eliaskousk / build.sh
Created June 13, 2018 01:19
Build libRoadRunner from Source
#!/bin/bash
#
# Paths
#
ROOT=$(dirname "$(readlink -f "$0")")
RR_SOURCE=${ROOT}/roadrunner
RR_BUILD=${ROOT}/build/libroadrunner
@eliaskousk
eliaskousk / parallella.esdk.2016.3.1.thermald.crash.log
Created August 16, 2016 01:32
Parallella E-SDK 2016.3.1 Thermal Daemon Crash Log
Jul 7 15:44:43 parallella kernel: [ 500.858938] Unhandled fault: imprecise external abort (0x1406) at 0xb6f86000
Jul 7 15:44:43 parallella kernel: [ 500.865905] pgd = eef4c000
Jul 7 15:44:43 parallella kernel: [ 500.868596] [b6f86000] *pgd=3985b831
Jul 7 15:44:43 parallella kernel: [ 500.872172] Internal error: : 1406 [#1] SMP ARM
Jul 7 15:44:43 parallella kernel: [ 500.876670] Modules linked in: epiphany
Jul 7 15:44:43 parallella kernel: [ 500.880503] CPU: 0 PID: 363 Comm: parallella-ther Not tainted 4.4.0+ #1
Jul 7 15:44:43 parallella kernel: [ 500.887084] Hardware name: Xilinx Zynq Platform
Jul 7 15:44:43 parallella kernel: [ 500.891600] task: eefe0980 ti: eefb2000 task.ti: eefb2000
Jul 7 15:44:43 parallella kernel: [ 500.897000] PC is at configure_chip_tx_divider+0xb0/0x1b8 [epiphany]
Jul 7 15:44:43 parallella kernel: [ 500.903341] LR is at regulator_get_voltage+0x48/0x5c
@eliaskousk
eliaskousk / parallella.esdk.2016.3.1.boot.log
Created August 16, 2016 01:29
Parallella E-SDK 2016.3.1 Boot Log
U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)
I2C: ready
DRAM: 992 MiB
WARNING: Caches not enabled
MMC: SDHCI: 0
SF: Detected N25Q128 with page size 64 KiB, total 16 MiB
In: serial
Out: serial
Err: serial
@eliaskousk
eliaskousk / memtest.c
Created August 15, 2016 21:58
Memtest
/*
* This test application is to read/write data directly from/to the device
* from userspace.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
@eliaskousk
eliaskousk / virtualbox.sh
Last active May 12, 2016 14:52
Check virtualbox install
#!/bin/bash
INSTALL_VIRTUALBOX=1
VBOX_PKG=virtualbox
VBOX_CHECK=$(dpkg-query -W --showformat='${Status}\n' virtualbox virtualbox-5.0 \
2>/dev/null | awk '{print $3;}' | grep "installed")
if [ "$VBOX_CHECK" != "" ]; then
echo "Virtualbox is already installed"
INSTALL_VIRTUALBOX=0

Keybase proof

I hereby claim:

  • I am eliaskousk on github.
  • I am eliaskousk (https://keybase.io/eliaskousk) on keybase.
  • I have a public key whose fingerprint is DA61 E275 6DC8 E1E2 EF49 E3AB 88D0 BEB7 F033 5053

To claim this, I am signing this object:

" Modeline and Notes {
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=0 foldmethod=marker spell:
"
" __ _ _____ _
" ___ _ __ / _/ |___ / __ __(_)_ __ ___
" / __| '_ \| |_| | |_ \ _____\ \ / /| | '_ ` _ \
" \__ \ |_) | _| |___) |_____|\ V / | | | | | | |
" |___/ .__/|_| |_|____/ \_/ |_|_| |_| |_|
" |_|
"