Skip to content

Instantly share code, notes, and snippets.

View jdowner's full-sized avatar

Joshua Downer jdowner

View GitHub Profile
@jdowner
jdowner / noise.cfg
Last active August 29, 2015 14:04 — forked from rsvp/noise.sh
ambient noise
duration='00:59:00'
noisetype='pinknoise'
progress='--no-show-progress'
noisetype="pinknoise"
band_center="1000"
band_width="499"
tremolo_speed="0.01"
tremolo_depth="43"
@jdowner
jdowner / HOWTO-bitlbee+hipchat.mkd
Last active August 29, 2015 14:11 — forked from taylor/HOWTO-bitlbee+hipchat.mkd
Configuring bitlbee + hipchat

Using bitlbee with HipChat

First time on bitlbee

  • register <username>

Initial setup

@jdowner
jdowner / chroot-env.sh
Last active August 29, 2015 14:13
chroot
#!/bin/bash
set -o pipefail
CHROOT_PATH="${HOME}/scm/chroot"
SRC_PATH="${HOME}/scm/rift"
die() {
echo
echo "ERROR: $*"
@jdowner
jdowner / Description.md
Created August 15, 2018 13:44 — 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";
 }