Skip to content

Instantly share code, notes, and snippets.

View venescu's full-sized avatar
🌐
Working from home

aidart venescu

🌐
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@venescu
venescu / VerticalTabs.vue
Created August 18, 2021 14:12 — forked from jacekkarczmarczyk/VerticalTabs.vue
Vuetify vertical tabs
<template>
<div :style="containerStyle" class="vertical-tabs" :class="{'vertical-tabs--vertical-text': verticalText, 'vertical-tabs--horizontal-text': !verticalText}">
<v-tabs :value="value" @input="$emit('input', $event)" :show-arrows="verticalText" :color="color" :slider-color="sliderColor" :style="tabsStyle">
<v-tab v-for="item in items" :key="item">{{ item }}</v-tab>
</v-tabs>
</div>
</template>
<script>
export default {
@venescu
venescu / wsl2-network.ps1
Created May 24, 2021 15:55 — forked from xmeng1/wsl2-network.ps1
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@venescu
venescu / server.js
Created May 16, 2021 17:03 — forked from thatisuday/server.js
A simple HTTPS express server.
const fs = require( 'fs' );
const https = require( 'https' );
const express = require( 'express' );
// import private key and public certificate
const privateKey = fs.readFileSync( './thatisuday.key', 'utf8' );
const certificate = fs.readFileSync( './thatisuday.crt', 'utf8' );
// create an express app
const app = express();

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@venescu
venescu / automl-h20-simple-flow.R
Created May 12, 2021 13:03 — forked from korkridake/automl-h20-simple-flow.R
Automated machine learning H20.ai in R
# Install H2O packages
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
pkgs <- c("RCurl","jsonlite")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
}
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R")))
library(h2o)
localH2O = h2o.init()