Skip to content

Instantly share code, notes, and snippets.

View kaloyan's full-sized avatar
:octocat:
Focusing

Kaloyan Ivanov kaloyan

:octocat:
Focusing
  • Plovdiv, Bulgaria
View GitHub Profile
@kaloyan
kaloyan / Description.md
Created April 27, 2017 09:13 — forked from juanje/Description.md
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";
 }
@kaloyan
kaloyan / std.cpp
Last active July 2, 2018 23:52 — forked from mahuna13/std.cpp
#include "std_try.h"
#include <math.h>
using namespace Halide;
#define PI 3.14159
/*
Interpolations
*/