View wsls.txt
This file contains 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
| C:>wsl -l -o | |
| The following is a list of valid distributions that can be installed. | |
| Install using 'wsl --install -d <Distro>'. | |
| NAME FRIENDLY NAME | |
| Ubuntu Ubuntu | |
| Debian Debian GNU/Linux | |
| kali-linux Kali Linux Rolling | |
| openSUSE-42 openSUSE Leap 42 |
View jenk.sh
This file contains 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
| # | |
| systemctl enable jenkins | |
| systemctl start jenkins | |
| systemctl status jenkins | |
| # systemctl edit jenkins | |
| journalctl -u jenkins.service -f |
View Jenkinsfile
This file contains 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
| docker.image('python:3.7-slim-bullseye').inside { | |
| sh 'python --version' | |
| } |
View Jenkinsfile
This file contains 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
| docker.image('maven:3.3.3-jdk-8').inside { | |
| sh 'mvn -B clean install' | |
| } |
View regression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View docker-balena-cli-install
This file contains 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
| # | |
| # Sample Dockerfile for installing balena-cli on Ubuntu Bionic | |
| # Usage: | |
| # $ docker build -t cli-ubuntu . | |
| # $ docker run -it cli-ubuntu | |
| # | |
| # # Then on the container: | |
| # $ which balena | |
| # /usr/local/nvm/versions/node/v10.16.0/bin/balena | |
| # $ balena version |
View TestDatabaseSetup.md
Test Database Setup scripts
MySQL
Postgres
Oracle
SQL Server
Db2
Docker run scripts
View asciiblink.ino
This file contains 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
| /* | |
| asciiblink | |
| Turns LED_BUILTIN on and off repeatedly. | |
| LED_BUILTIN is defined as the correct LED pin independent of which board is used. | |
| If you want to know what pin the on-board LED is connected to on your Arduino | |
| model, check the Technical Specs of your board at: | |
| https://www.arduino.cc/en/Main/Products |
View proxy.js
This file contains 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 http = require('http'); //Otetaan http lisäosa käyttöön | |
| http.createServer(function (req, res) { //Luodaan palvelin vastaanottamaan pyyntöjä | |
| http.get(req.url, (vastaus) => { //Tehdään pyyntö perustuen käyttäjän luoman pyynnön sisältävään urliin | |
| let data = ''; //Luodaan vain tälle lohkolle oma data muuttuja | |
| vastaus.on('data', (osio) => { //Aina kun urlista tulee dataa laitetaan se data muuttujaan | |
| data += osio; | |
| }); | |
| vastaus.on('end', () => { //Kun datan tulo loppuu lähetetään http palvelimen avulla data. Säästetään tilaa käyttämällä vain res.endiä eikä res.writeä ja res.endiä | |
| res.end(data); |
NewerOlder