Skip to content

Instantly share code, notes, and snippets.

View gipi's full-sized avatar
😎
code for food

Gianluca Pacchiella gipi

😎
code for food
View GitHub Profile
@gipi
gipi / README.md
Last active August 29, 2015 14:06
INstalling Intel Graphic card drivers
  1. Download the latest source release
  2. Unzip the archive and enter into the directory
  3. install libgtk-3-dev libpolkit-gobject-1-dev libpackagekit-glib2-dev libsoup-gnome2.4-dev
  4. ./configure --with-distribution debian
  5. make

Do not compile, however, in data/ilg-config.cfg there are the repo configuration that it uses for ubuntu.

In order to test the WebGL configuration use chrome://gpu, in my case the Intel card is blacklisted, you can use the --ignore-gpu-blacklist parameter with chrome.

@gipi
gipi / timing.py
Last active August 29, 2015 14:06
timing attack
#!/usr/bin/env python
#
# export PYTHONUNBUFFERED=true
import sys
import os
import operator
import string
import datetime
def _out(msg):
@gipi
gipi / README.md
Last active August 29, 2015 14:02
#debian
@gipi
gipi / TODO.md
Last active April 6, 2020 18:46
#TODO
@gipi
gipi / 001.md
Last active August 29, 2015 14:01
#aosp

All starts with the script build/envsetup.sh that defines some shell functions and loads the vendorsetup.sh scripts that it founds into the device/ and vendor/ directories:

# Execute the contents of any vendorsetup.sh files we can find.
for f in `test -d device && find device -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null` \
         `test -d vendor && find vendor -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null`
do
    echo "including $f"
    . $f
done
@gipi
gipi / README.md
Last active November 10, 2017 12:27
#bash
@gipi
gipi / README.md
Last active August 29, 2015 13:59
#ansible
@gipi
gipi / README.md
Last active May 25, 2019 21:17
#lxc #container #linux

Setup

Install the package lxc lxc-stuffs, and configure the cgroup mount entry in /etc/fstab

cgroup    /sys/fs/cgroup    cgroup    defaults    0    0

If is the first time mount it (# mount /sys/fs/cgroup). The final check can be done with lxc-checkconfig.

Create containers