Skip to content

Instantly share code, notes, and snippets.

View lpellegr's full-sized avatar
Enjoying life every second of the day

Laurent Pellegrino lpellegr

Enjoying life every second of the day
View GitHub Profile
2016/07/01 20:10:55 akmods: Building RPM using the command '/sbin/akmodsbuild --target x86_64 --kernels 4.6.3-300.fc24.x86_64 /usr/src/akmods/nvidia-kmod.latest'
/tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:119:11: error: too many arguments to function 'get_user_pages'
ret = get_user_pages(current, mm, (unsigned long)address,
^~~~~~~~~~~~~~
In file included from /tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/common/inc/nv-linux.h:65:0,
from /tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:15:
include/linux/mm.h:1266:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:132:13: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaratio
#!/bin/bash
# crontab -> 04 12 * * 1-5 /home/lpellegr/scripts/lunch-time.sh
declare -a sentences=(
"Qui a faim ? on mange ?"
"Miam Miam ?"
"Manger ? http://goo.gl/SNKIEA")
function ask_for_lunch {
@lpellegr
lpellegr / querydsl.gradle
Created February 1, 2016 20:36 — forked from alex-shpak/querydsl.gradle
Gradle script for querydsl-apt processor with separate classpath
// apply plugin: 'idea'
sourceSets {
generated.java
main.java.srcDirs += generated.java.srcDirs
}
configurations {
querydslapt
}
emulator: found SDK root at /home/lpellegr/Dev/android-sdk
emulator: Android virtual device file at: /home/lpellegr/.android/avd/screenshots.ini
emulator: virtual device content at /home/lpellegr/.android/avd/screenshots.avd
emulator: virtual device config file: /home/lpellegr/.android/avd/screenshots.avd/config.ini
emulator: using core hw config path: /home/lpellegr/.android/avd/screenshots.avd/hardware-qemu.ini
emulator: Found AVD target API level: 21
emulator: Read property file at /home/lpellegr/Dev/android-sdk/system-images/android-21/google_apis/x86//build.prop
emulator: No boot.prop property file found.
emulator: keyset loaded from: /home/lpellegr/.android/default.keyset
emulator: trying to load skin file '/home/lpellegr/Dev/android-studio/plugins/android/lib/device-art-resources/nexus_6/layout'
- waiting for device -
--------- beginning of main
I/installd( 0): installd firing up
W/auditd ( 924): type=2000 audit(0.0:1): initialized
I/auditd ( 924): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/auditd ( 924): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
I/qemu-props( 0): connected to 'boot-properties' qemud service.
I/qemu-props( 0): receiving..
I/qemu-props( 0): received: persist.sys.language=
I/qemu-props( 0): receiving..
@lpellegr
lpellegr / Roboto.java
Last active August 29, 2015 14:13
Roboto
import android.content.Context;
import android.graphics.Typeface;
import android.os.Build;
import android.support.annotation.IdRes;
import android.view.View;
import android.widget.TextView;
import java.lang.ref.SoftReference;
import java.util.HashMap;
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:background="@color/background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.getbase.floatingactionbutton.AddFloatingActionButton
android:id="@+id/normal_plus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"