Skip to content

Instantly share code, notes, and snippets.

View LuxoftAKutsan's full-sized avatar

Alexander Kutsan (GitHub) LuxoftAKutsan

View GitHub Profile
# Alienware 13 r2 linux usefull links
http://en.community.dell.com/owners-club/alienware/f/3746/t/19658690
https://wiki.archlinux.org/index.php/Alienware_13
http://askubuntu.com/questions/765838/cannot-enable-wifi-of-alienware-r2-on-ubuntu-16-04-lts
https://github.com/kvalo/ath10k-firmware
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# cp -a QCA6174/ /lib/firmware/ath10k/QCA6174/
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# echo "options ath10k_core skip_otp=y" | tee -a /etc/modprobe.d/ath10k.conf
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
apt-get install -y distcc distccmon-gnome
echo "distcc g++ \$@" > /usr/local/bin/distcxx
chmod +x /usr/local/bin/distcxx
function ready() {
cvlc ~/Downloads/Jobs\ Done.mp3 --play-and-exit
}
function bad_result() {
echo "Something is wrong" | festival --tts;
}
function notepad++ {
@LuxoftAKutsan
LuxoftAKutsan / get_bt.py
Last active September 29, 2017 18:14
SDL log analyse
# coding: utf-8
# In[1]:
log_lines = open("/home/akutsan/Downloads/Mackinaw Ford Edge/25 Jul 2017/36.smartdevicelink.log").readlines()
# In[2]:

Preconditions

For adding custom implementation of Network Interface Listener should be changes CMakelists.txt and added additional implementation of platform_specific_network_interface_listener.cc

Example adding implementation for custom_os

  1. Crete folder src/components/transport_manager/include/transport_manager/tcp/platform_specific/custom_os
  2. Crete file src/components/transport_manager/include/transport_manager/tcp/platform_specific/custom_os/platform_specific_network_interface_listener_impl.h with class PlatformSpecificNetworkInterfaceListener:
    • PlatformSpecificNetworkInterfaceListener should be inherited from NetworkInterfaceListener.
    • PlatformSpecificNetworkInterfaceListener may contain os specific data types and privte functions, it won't affect other SDL classes
  3. Create folder src/components/transport_manager/src/tcp/platform_specific/custom_os :
add ssh key
install docker
install make
mkdir sdl
<struct name="HMIApplication">
    <description>Data type containing information about application needed by HMI.</description>
    <param name="appName" type="String" maxlength="100" mandatory="true">
      <description>The mobile application name, e.g. "Ford Drive Green".</description>
    </param>
    <param name="ngnMediaScreenAppName" type="String" maxlength="100" mandatory="false">
      <description>Provides an abbreviated version of the app name (if needed), that may be displayed on the NGN media screen.</description>
      <description>If not provided, the appName should be used instead (and may be truncated if too long)</description>
    </param>
@LuxoftAKutsan
LuxoftAKutsan / race2.puml
Last active June 2, 2020 10:54
Wifi Raceq
@startuml
!pragma teoz true
title Multiple apps on different devices, MOBILE is an access point
participant HMI
participant SDL
box "Device1"
participant APP1
end box
box "Device2"