Skip to content

Instantly share code, notes, and snippets.

View osde8info's full-sized avatar

Clive D osde8info

View GitHub Profile
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
@osde8info
osde8info / jenk.sh
Created October 12, 2022 15:34
systemd systemctl jenkins
#
systemctl enable jenkins
systemctl start jenkins
systemctl status jenkins
# systemctl edit jenkins
journalctl -u jenkins.service -f
@osde8info
osde8info / Jenkinsfile
Created October 12, 2022 14:40
jenkins docker pipeline image python
docker.image('python:3.7-slim-bullseye').inside {
sh 'python --version'
}
@osde8info
osde8info / Jenkinsfile
Created October 12, 2022 14:39
jenkins docker pipeline image example
docker.image('maven:3.3.3-jdk-8').inside {
sh 'mvn -B clean install'
}
@osde8info
osde8info / css-art-polariod-camera.markdown
Created January 14, 2022 22:21
CSS Art Polariod Camera
@osde8info
osde8info / regression.ipynb
Last active April 16, 2020 16:35
ML REGRESSION
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osde8info
osde8info / docker-balena-cli-install
Last active April 13, 2020 18:21 — forked from pdcastro/Dockerfile
Dockerfile for "npm install balena-cli" on Ubuntu Bionic
#
# 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
@osde8info
osde8info / TestDatabaseSetup.md
Created March 20, 2020 14:56 — forked from gvenzl/TestDatabaseSetup.md
A script that sets up test databases for Oracle, MySQL, Postgres, SQL Server, and Db2
@osde8info
osde8info / asciiblink.ino
Created March 13, 2020 08:51
arduino ascii blink
@osde8info
osde8info / proxy.js
Last active March 4, 2020 09:30 — forked from RoyTakanen/proxy.js
Http proxy Node:JS:llä 15 rivissä koodia
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);