export OBS_USERNAME=M0ses
baseUrl: / | |
languageCode: en-us | |
theme: terminal | |
paginate: 5 | |
params: | |
# dir name of your blog content (default is `content/posts`) | |
contentTypeName: posts | |
# ["orange", "blue", "red", "green", "pink"] | |
themeColor: orange |
cgconfig.conf
- that's where you create the control group /etc/
cgrules.conf
- that's where you add binaries to that specific control group /etc/
cgconf
- that's the init script i use because its not available on ubuntu. It might be available for your OS in the package manager. I took the startup script from http://askubuntu.com/questions/836469/install-cgconfig-in-ubuntu-16-04 - /etc/init.d/
Use the following steps to test what you have without the
cgconfigparser -l /etc/cgconfig.conf
- to add/register your control group to the systemcgrulesengd
- sends the binary-cgroup binding rules./server add Dalnet irc.dal.net/6697 | |
/set irc.server.Dalnet.autoconnect on | |
/set irc.server.Dalnet.autojoin "#Scotland,#soccer,#cafechat,#ALLNITECAFE,#androidirc,#apple,#bsd,#linux" | |
/set irc.server.Dalnet.username "cirrus" | |
/server add geekshed irc.geekshed.net/6667 | |
/server del freenode | |
/mouse enable|disable|toggle [<delay>] |
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";
}
#!/bin/bash | |
# grab the virtualenvwrapper settings | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
export PIP_RESPECT_VIRTUALENV=true | |
# the location of your virtualenv wrapper shell script may differ | |
source /usr/local/share/python/virtualenvwrapper.sh |