Skip to content

Instantly share code, notes, and snippets.

View osde8info's full-sized avatar

Clive D osde8info

View GitHub Profile
@osde8info
osde8info / str_putcsv.php
Last active July 12, 2023 19:24 — forked from johanmeiring/gist:2894568
str_putcsv for php
<?php
/* From: http://www.php.net/manual/en/function.str-getcsv.php#88773 and http://www.php.net/manual/en/function.str-getcsv.php#91170 */
if(!function_exists('str_putcsv'))
{
function str_putcsv($input, $delimiter = ',', $enclosure = '"')
{
$csv = fopen('php://temp','r+');
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