Skip to content

Instantly share code, notes, and snippets.

View tobiasschulz's full-sized avatar
🌴
On vacation

Tobias Schulz tobiasschulz

🌴
On vacation
View GitHub Profile
@tobiasschulz
tobiasschulz / WSL-ssh-server.md
Created May 28, 2019 12:25 — forked from dentechy/WSL-ssh-server.md
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux

How to automatically start ssh server on boot on Windows Subsystem for Linux

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Edit the /etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
    1. Change Port to 2222 (or any other port above 1000)
    2. Change PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.
  2. Restart the ssh server:
    • sudo service ssh --full-restart
  3. With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
@tobiasschulz
tobiasschulz / selenium-php-webdriver-cheatsheet.md
Created May 6, 2017 23:26 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);

# Pre requisites
- Enable DRI3 as described in https://vulkan.lunarg.com/app/docs/v1.0.3.1/getting_started_linux
- Install a library for SHA, e.g. sudo apt-get install libgcrypt11-dev (if not already present)
- Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders
# Building
- Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b Master
- cd mesa
- autoreconf -vfi
- ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel
@tobiasschulz
tobiasschulz / ji-linux.patch
Created May 8, 2016 22:21 — forked from borgdylan/ji-linux.patch
Java.Interop - Linux x64 build
diff --git a/Makefile b/Makefile
index 7ded1ec..764744d 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ run-all-tests: run-tests run-test-jnimarshal run-test-generator-core run-ptests
clean:
-$(XBUILD) /t:Clean
-rm -Rf bin/$(CONFIGURATION) bin/Build$(CONFIGURATION) bin/Test$(CONFIGURATION) bin/XAIntegration$(CONFIGURATION)
- -rm src/Java.Runtime.Environment/Java.Runtime.Environment.dll.config
+ -rm -f src/Java.Runtime.Environment/Java.Runtime.Environment.dll.config
for i in {0..87}; do echo -e "- \033[38;5;${i}m\\[\\33[38;5;${i}m\\]\033[0m -"; done;
# Prints the code needed for PS1 in the corresponding color.