dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
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
#!/usr/bin/env bash | |
# REF: https://github.com/cloudflare/cfssl | |
# Change working directory | |
cd -- "$( | |
dirname "${0}" | |
)" || exit 1 | |
readonly CA_ROOT_CERT_KEY="ca-root" |
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
# 0. ON WINDOWS : | |
# On windows, to check which WSL you use, type ` wsl --list --verbose ` in admin cmd. | |
# If you are not in WSL2, reinstall the machine with WSL2 : https://docs.microsoft.com/fr-fr/windows/wsl/install-win10 | |
# 1. Make sure you are running with systemd | |
# sudo systemctl must not say "Failed to connect to bus" | |
# If so, I recommand you to reinstall the VM. You can try this repo too : https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git | |
# 2. On WSL2 machine | |
# /!\ Create an user with A PASSWORD and with sudo access |
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
// Copyright http://www.audi-a6.com.ua/viewtopic.php?f=30&t=5557&start=20#p127185 | |
// Tested with Arduino Nano v3 Atmega328p | |
// Head unit tested: Skoda Symphony CD | |
// Connect pin 11 with DataIn | |
// pin 13 with Clock | |
// Gnd to Gnd | |
// no need to connect DataOut unless you need advanced features | |
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
// works also with ATMEGA8 - tested | |
// SPI PINS used for transfer from CDCemulator to RADIO: | |
// MOSI (arduino pin 11) -> DataIN | |
// CLK (arduino pin 13) -> CLK | |
#include <SPI.h> | |
//#include <SoftwareSerial.h> | |
#define PREV 9 //PB1,pin 15 | |
#define PLAY 5 //PD5, pin 11 |
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
pipeline { | |
// run on jenkins nodes tha has java 8 label | |
agent { label 'java8' } | |
// global env variables | |
environment { | |
EMAIL_RECIPIENTS = 'mahmoud.romeh@test.com' | |
} | |
stages { | |
stage('Build with unit testing') { |
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
import java.util.*; | |
public class MutableJson { | |
public static void main(String[] args) { | |
MutableJson json = new MutableJson( | |
new HashMap<String, Object>() {{ | |
put("store", new HashMap<String, Object>() {{ | |
put("name", "Some Store"); | |
put("books", Arrays.asList( |