./configure -v -opengl es2 -tslib -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -reduce-exports -release -qt-pcre -make libs -no-use-gold-linker -prefix /opt/Qt -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -ssl -no-cups -no-gtk -qt-libjpeg -qt-libpng
make -j3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EventHubClient = require('azure-event-hubs').Client; | |
const Promise = require('bluebird'); | |
const connectionString = '__OBFUSCATED__'; | |
const eventHubPath = 'foo'; | |
const client = EventHubClient.fromConnectionString(connectionString, eventHubPath); | |
var printError = function(err) { | |
console.error(err.message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(new TextEncoder('utf-8').encode('è')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env set bootcmd_usb "run findfdt; usb start; if run loadimage_usb; then run usbboot; fi" | |
env set loadfdt_usb "fatload usb ${usbdev}:${usbpart} ${fdt_addr} ${fdt_file}" | |
env set loadimage_usb "fatload usb ${usbdev}:${usbpart} ${loadaddr} ${image}" | |
env set usbargs "setenv bootargs console=${console},${baudrate} root=${usbroot}" | |
env set usbboot "echo Booting from usb ...; run usbargs; if run loadfdt_usb; then bootz ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi" | |
env set usbdev 0 | |
env set usbpart 1 | |
env set usbroot "/dev/sda2 rootwait rw" | |
run bootcmd_usb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE="$( cd "${GIT_DIR}" && cd .. && pwd )/.gitversion.h" | |
echo '#ifndef GIT_VERSION' > "${FILE}" | |
echo -n '#define GIT_VERSION "' >> "${FILE}" | |
git rev-parse HEAD | tr -d '\n' >> "${FILE}" | |
echo '"' >> "${FILE}" | |
echo '#endif' >> "${FILE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -DANDROID_NDK=/opt/android-ndk/android-ndk-r10e -DANDROID_ABI="armeabi" -DANDROID_NDK_HOST_X64="YES" -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.9" -DCMAKE_TOOLCHAIN_FILE="/opt/android-ndk/build/cmake/android.toolchain.cmake" -DWITH_TLS=OFF -DWITH_THREADING=OFF .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Services.hpp" | |
#include "../common/log.hpp" | |
#include <typeinfo> | |
#include "../modules/pluggit/Pluggit.hpp" | |
#include "../modules/openmotics/OpenMotics.hpp" | |
namespace myhome { |
Usa mbpoll: https://github.com/epsilonrt/mbpoll
Interroga:
./mbpoll 192.168.1.106 -t 4:hex -r 29 -c 2 -1 -a 1
Chiede 40029 e 40030 (ip address).
I want to change kernel parameters from u-boot.
printenv
Copy the value of mmcargs
.
Use setenv
to change the value of mmcargs
, adding what you need.
sudo apt-get install xserver-xorg-legacy
Edit /etc/X11/Xwrapper.config
allowed_users=anybody
needs_root_rights=yes