Skip to content

Instantly share code, notes, and snippets.

View TomasKulhanek's full-sized avatar

Tomas Kulhanek TomasKulhanek

View GitHub Profile
@TomasKulhanek
TomasKulhanek / cenotvorba.ipynb
Created February 24, 2023 16:36
Cenotvorba eGolem
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TomasKulhanek
TomasKulhanek / README.md
Last active September 19, 2022 08:36
Script to prepare Centos9stream vagrant box with minimal gui

Preparing vagrant VM template

The following section describes how to prepare VM template from scratch, e.g. to be used as base vagrant box or as a base VM template. It's not needed to perform these steps when installing any products, however, might be usefull to maintain version of base OS.

Centos 9 stream

Download ISO

As a base for most VM templates, download Centos 9 stream iso

@TomasKulhanek
TomasKulhanek / index.html
Created May 16, 2019 14:30
B2NOTE demo widgets
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>B2NOTE demo widget</title>
<script src="index.js"></script>
</head>
<body>
<div id="b2note" style="float:right;width:30%">
<iframe id="b2note_iframe" name="b2note_iframe" src="" style="width: 100%; height: 600px; border: 1px solid grey;"></iframe>
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant file to reproduce std:bad_alloc issue when launching octave=4.2.1=blas_openblash5b47107_8 installed from conda-forge
$script = <<-SCRIPT
yum install -y wget bzip2
if [ ! -f Miniconda3-latest-Linux-x86_64.sh ]; then
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
fi
export INSTALLDIR=/opt/octavebug
@TomasKulhanek
TomasKulhanek / app.html
Last active August 15, 2018 10:45 — forked from jdanyow/app.html
Aurelia Gist
<template>
<require from='./mybind'></require>
<p ref="myparagraph" mybind="Add other text. ">Some text here. </p>
</template>
@TomasKulhanek
TomasKulhanek / README.md
Last active September 15, 2022 11:07
Script to prepare SL7 vagrant box, full instruction including manual steps are documented at https://h2020-westlife-eu.gitbook.io/virtual-folder-docs/virtual-machines/preparing-vagrant-vm-template

Preparing vagrant VM template

The following section describes how to prepare VM template from scratch, e.g. to be used as base vagrant box or as a base VM template. It's not needed to perform these steps when installing any products, however, might be usefull to maintain version of base OS.

Scientific Linux 7

Download ISO

As a base for most VM templates, Scientific Linux is used. Download the latest version from http://ftp1.scientificlinux.org/linux/scientific/7x/x86_64/iso/

@TomasKulhanek
TomasKulhanek / testvfpy2.py
Last active March 20, 2018 10:34
test connection to virtual folder from python
# 1. obtain URL of VF directory manually using https://portal.west-life.eu/virtualfolder/filepicker.html - using "Open Upload Dir picker ...."
# 2. copy & paste URL of selected dir into the call of: urllib2.urlopen()
# 3. call this code using python2 - e.g. python testvfpy2.py
# it should report something like
# 200
# Server: nginx
# ...
# <!DOCTYPE HTML PUBLIC ....
import urllib2
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Container, inject } from 'aurelia-dependency-injection';
import { Web } from './hosts/web';
import { DesignProcessor } from './designs/design-processor';
let AureliaUX = class AureliaUX {
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Container, inject } from 'aurelia-dependency-injection';
import { Web } from './hosts/web';
import { DesignProcessor } from './designs/design-processor';
let AureliaUX = class AureliaUX {