Skip to content

Instantly share code, notes, and snippets.

View morningsend's full-sized avatar
🎯
Focusing

Zaiyang Li morningsend

🎯
Focusing
  • Arabesque
  • England, United Kingdom
View GitHub Profile
@lambdaofgod
lambdaofgod / Interpreter.scala
Last active April 29, 2019 17:15
While language interpreter
/*
Kuba 'lambdaofgod Bartczuk
basically completed 10.01.2015, refactored 08.2016
while language interpreter
syntax:
V - variables
N - numbers
@juanje
juanje / Description.md
Last active November 30, 2023 19:29
Limit Chrome from eating all the memory and CPU

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";
 }