Install xfce4
sudo apt update
sudo apt install xfce4 xfce4-goodies
Install TigerVNC -
| // Step 1: Obtain Yosys from git. | |
| // Step 2: Download jt51 from https://github.com/jotego/jt51. | |
| // Step 3: Build as follows: | |
| // $ yosys jt51/hdl/*.v -b 'cxxrtl -header' -o jt51_core.cc | |
| // $ CFLAGS="-fbracket-depth=2048 -I$(yosys-config --datdir/include)" | |
| // $ clang++ -O3 $CFLAGS jt51_core.cc jt51_player.cc -o jt51_play | |
| // Step 4: Convert as follows: | |
| // $ python3 vgm2tsv.py music.vgm music.tsv | |
| // Step 5: Play as follows (assuming YM2151 clocked at 4 MHz): | |
| // $ ./jt51_play music.tsv music.wav 4000000 |
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <jess@linux.com> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}