Skip to content

Instantly share code, notes, and snippets.

@r4space
r4space / Debian_RISC-V_QEMU
Created October 27, 2020 18:32
QEMU based emulation of a RISC-V64b core running Debian. Installed and executed on Ubuntu 20.04
#STEP1: Install requirements.
## Assumes a clean Ubuntu 20.04 host OS
sudo apt-get install debian-ports-archive-keyring
sudo apt-get update
sudo apt-get install gcc-riscv64-linux-gnu qemu-system-misc opensbi qemu-user-static binfmt-support debootstrap libguestfs-tools
wget http://za.archive.ubuntu.com/ubuntu/pool/universe/u/u-boot/u-boot-qemu_2020.04+dfsg-2ubuntu1_all.deb
sudo dpkg -i u-boot-qemu_2020.04+dfsg-2ubuntu1_all.deb
#STEP2: Create a RISC-V filesystem using chroot
@r4space
r4space / gist-reveal.it-slides.html
Last active May 15, 2019 17:59 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h2>Gist-Powered</h2>
<h1>Reveal.js</h1>
<h2>Slideshow Presentations</h2>
<br/>
<h1 class='fragment grow'><a style='color:red;' href='http://gist-reveal.it'>gist-reveal.it</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' id='try-it'>
<h2>Wat doen hierdie</h2>
<p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p>
@r4space
r4space / flask_ubuntu.md
Created August 30, 2018 00:04 — forked from swyngaard/flask_ubuntu.md
Install Flask on Ubuntu 16.04

Install Flask on Ubuntu 16.04

sudo aptitude install --with-recommends python3-pip python3-dev nginx uwsgi uwsgi-plugin-python3 virtualenv
mkdir sensor-logger
cd sensor-logger
virtualenv --python=python3 .venv
source .venv/bin/activate
pip install -r requirements.txt
#start the application
python server.py