Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dincamihai on github.
  • I am u1o8 (https://keybase.io/u1o8) on keybase.
  • I have a public key ASBJcjckW-07_j_apVgWB1Iv1710wMDuV3ciyjwc3anjfAo

To claim this, I am signing this object:

cd /tmp/
sudo apt-get source linux-image-`uname -r`
cd linux-4.4.0/
wget https://git.linuxtv.org/media_tree.git/patch/?id=1efc21701d94ed0c5b91467b042bed8b8becd5cc
patch -p1 b833d0df943d70682e288c38c96b8e7bfff4023a..1efc21701d94ed0c5b91467b042bed8b8becd5cc
make oldconfig
make prepare
make scripts
@dincamihai
dincamihai / howto.txt
Last active July 8, 2016 13:57
container factory
virtualenv sandbox
. sandbox/bin/activate
pip install pytest-salt-containers docker-py
IMAGE=registry.mgr.suse.de/toaster-sles12sp1 python
# you can also us an image that already exists on your machine
>>> from docker import Client
>>> from saltcontainers.factories import ContainerFactory
>>> client = Client(base_url='unix://var/run/docker.sock')

Update job configuration in jenkins

  • get existing job config:
 curl https://<user>:<pass>@your.jenkins.com/job/<job-name>/config.xml > config.xml
  • change config.xml

  • obtain crumb

Feature: Blog
A site where you can publish your articles.
Scenario: Publishing the article
Given I'm an author user
And I have an article
When I go to the article page
And I press the publish button
Then I should not see the error message
And the article should be published # Note: will query the database
@dincamihai
dincamihai / mysql ramdisk
Last active December 26, 2015 16:29 — forked from kurisuchan/gist:1262135
mysql ramdisk
# Tweaked from http://tomislavsantek.iz.hr/2011/03/moving-mysql-databases-to-ramdisk-in-ubuntu-linux
# Log in as root
# Mount ramdisk folder in RAM
mkdir /tmp/ramdisk
mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk/
# Move MySQL data
mv /var/lib/mysql /tmp/ramdisk/mysql
ln -s /tmp/ramdisk/mysql/ /var/lib/mysql