Skip to content

Instantly share code, notes, and snippets.

View fcaylus's full-sized avatar

Fabien Caylus fcaylus

  • 12:19 (UTC +02:00)
View GitHub Profile
@fcaylus
fcaylus / build-vlc.sh
Created November 17, 2015 20:01
Install vlc without qt support (needed when using VLC-Qt with Qt5 / QML)
#!/bin/bash
sudo apt-get -y install build-essential git-core checkinstall \
automake yasm cmake && mkdir -pv $HOME/vlc_build
sudo apt-get -y install liba52-0.7.4-dev libaa1-dev libasound2-dev libass-dev \
libavahi-client-dev libcaca-dev libcairo2-dev libcddb2-dev libcdio-dev libdca-dev \
libdvbpsi-dev libebml-dev libfaad-dev libflac-dev libfreetype6-dev libfribidi-dev \
libgcrypt11-dev libgl1-mesa-dev libglib2.0-0 libgnutls28-dev libid3tag0-dev \
libjack-jackd2-dev libkate-dev liblircclient-dev liblua5.1-0-dev libmad0-dev \
@fcaylus
fcaylus / install-qt-packages.sh
Created November 17, 2015 19:49
install-qt-packages.sh
#!/bin/bash
sudo apt-get install qtconnectivity5-dev libqt5bluetooth5 qtbase5-dev libqt5concurrent5 libqtconnectivity1 libqt5contacts5 qtbase5-dev libqt5core5a qtbase5-dev libqt5dbus5 qttools5-dev libqt5designer5 qttools5-dev libqt5designercomponents5 libqt5feedback5 libqtgallery1 qtbase5-dev libqt5gui5 qttools5-dev libqt5help5 libqt5location5 qtmultimedia5-dev libqt5multimedia5 libqtmultimediakit1 qtbase5-dev libqt5network5 qtconnectivity5-dev libqt5nfc5 libqt5opengl5-dev libqt5opengl5 libqt5organizer5 qtpositioning5-dev libqt5positioning5 qtbase5-dev libqt5printsupport5 libqt5publishsubscribe5 qtdeclarative5-dev libqt5qml5 qtdeclarative5-dev libqt5quick5 qtdeclarative5-dev libqt5quickparticles5 qtdeclarative5-dev libqt5quicktest5 qtdeclarative5-dev libqt5quickwidgets5 qtscript5-dev libqt5script5 qtscript5-dev libqt5scripttools5 libqt5sensors5-dev libqt5sensors5 libqt5serialport5-dev libqt5serialport5 libqt5serviceframework5 qtbase5-dev libqt5sql5 libqt5svg5-dev libqt5svg5 libqt5systeminfo5 qtbase5-dev lib
@fcaylus
fcaylus / arm-rpi-linux-gnueabihf.cmake
Created August 20, 2015 11:53
Custon configuration for rpi userland
#
# CMake defines to cross-compile to ARM/Linux on BCM2708 using glibc.
#
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER arm-rpi-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-rpi-linux-gnueabihf-g++)
SET(CMAKE_ASM_COMPILER arm-rpi-linux-gnueabihf-gcc)
SET(CMAKE_SYSTEM_PROCESSOR arm)
@fcaylus
fcaylus / weston-1.8.0.patch
Last active August 29, 2015 14:26
Add ability to enable/disable libwebp and lcms
diff -rupN weston-1.8.0/configure.ac weston-1.8.0-new/configure.ac
--- weston-1.8.0/configure.ac 2015-06-03 01:23:46.000000000 +0200
+++ weston-1.8.0-new/configure.ac 2015-08-07 13:52:28.527144406 +0200
@@ -266,9 +280,22 @@ fi
PKG_CHECK_MODULES(PIXMAN, [pixman-1])
PKG_CHECK_MODULES(PNG, [libpng])
-PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
-AS_IF([test "x$have_webp" = "xyes"],
- [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
@fcaylus
fcaylus / busybox-1.23.2.config
Last active August 29, 2015 14:26
Custom configuration without useless executables. No network/mail/print support
#
# Automatically generated make config: don't edit
# Busybox version: 1.23.2
# Thu Aug 20 13:09:33 2015
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Busybox Settings
#
@fcaylus
fcaylus / xorg.conf
Created June 26, 2015 16:23
File /etc/X11/xorg.conf for R.A.T 5 mouse
Section "InputClass"
Identifier "Mouse Remap"
MatchProduct "Saitek Cyborg R.A.T.5 Mouse"
MatchDevicePath "/dev/input/event*"
Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 10 11 12 0 0 0 0 0"
EndSection
@fcaylus
fcaylus / ralink-dongle.sh
Created June 15, 2015 17:37
Install driver for wifi dongle ID 148f:7601 Ralink Technology, Corp.
@fcaylus
fcaylus / install-new-packages.sh
Last active June 23, 2019 10:09
Contains all packages to install just after a new ubuntu installation
#!/bin/bash
#
# To download and launch this script, use
# $ wget -nv --no-cache --no-http-keep-alive https://gist.githubusercontent.com/Tranqyll/5086a94550c8db51b1a9/raw/install-new-packages.sh && chmod +x install-new-packages.sh && ./install-new-packages.sh
#
sudo apt-get update &&
sudo apt-get -y upgrade &&
sudo apt-get -y dist-upgrade &&
@fcaylus
fcaylus / build64.sh
Last active August 29, 2015 14:15
Scripts used to build the VRController app on a jenkins server. See https://github.com/Toutjuste/VRController
#!/bin/bash
set -e
#
# Build for 64 bits
# $1 represent the directory of the sources
# $2 represent options to the qmake call
#
cd "$1"
@fcaylus
fcaylus / qt-app-launcher.sh
Created December 7, 2014 09:10
You must rename this file with the same name of the real executable
#!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname