Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tlinnet
tlinnet / saphana.md
Last active July 26, 2023 10:28
Configure SAP HANA 2.0, express edition on Ubuntu 22.04 LTS Jammy

Install SAP HANA 2.0, express edition on Ubuntu

In the guide Install SAP HANA 2.0, express edition on a Preconfigured Virtual Machine, this will be a VM running SUSE Linux Enterprise Server (SLES) for SAP Applications 12 SP2. This server needs a license subscription and has no access to software repository.

Instead we will follow the guide Install SAP HANA, express edition on a Native Linux Machine.

We only install server-only virtual machine pack.

  • The host machine needs minimum 8 GB RAM, 2 cores, and 120 GB Disk space (we will try with 30 GB).
  • Java JRE 8 64bit or higher for the SAP download manager. Java can installed from here adoptium, and configure JAVA_HOME.
@tlinnet
tlinnet / ipywidget_cpmg_test.ipynb
Created November 1, 2017 16:05
Ipywidget test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlinnet
tlinnet / 0001-Making-patch-according-to-http-forum.mmass.org-viewt.patch
Created October 27, 2017 17:37
Automatically import bruker spectra on linux
From e02cbda303474e850129a1b8a71648fad53e10b4 Mon Sep 17 00:00:00 2001
From: Troels Schwarz-Linnet <tlinnet@gmail.com>
Date: Fri, 27 Oct 2017 19:34:49 +0200
Subject: [PATCH] Making patch according to
http://forum.mmass.org/viewtopic.php?id=274
---
gui/dlg_preferences.py | 5 ++---
gui/main_frame.py | 34 ++++++++++++++++++++++++++--------
2 files changed, 28 insertions(+), 11 deletions(-)
@tlinnet
tlinnet / 0001-Made-pathches-to-get-mMass-5.5.0-to-work-on-wxPython.patch
Created September 7, 2017 14:02
Patch for mMass 5.5.0 to work with wxPython 3.0, instead of 2.8
From d4414403d7f403347d1886b9538a80a208c5fc70 Mon Sep 17 00:00:00 2001
From: ljz643 <ljz643@BL07540.science.domain>
Date: Thu, 7 Sep 2017 15:56:00 +0200
Subject: [PATCH] Made pathches, to get mMass 5.5.0 to work on wxPython 3.0
The patches was made from here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758949
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=758949;filename=mmass-5.5.0-3.1-nmu.diff;msg=17
---
gui/main_frame.py | 2 +-
@tlinnet
tlinnet / NSMutableURLRequest.py
Created December 5, 2016 13:00
Pythonista, iOS, NSMutableURLRequest, header, basic auth, params, Exception handling
# python
from urlparse import urlparse
from urllib import urlencode
from ctypes import c_void_p
import json
import base64
# pythonista
import objc_util
@tlinnet
tlinnet / objc_util.py
Created December 4, 2016 22:47
objc_util.py
# coding: utf-8
__all__ = ['c', 'LP64', 'CGFloat', 'NSInteger', 'NSUInteger', 'NSNotFound', 'NSUTF8StringEncoding', 'NS_UTF8', 'CGPoint', 'CGSize', 'CGVector', 'CGRect', 'CGAffineTransform', 'UIEdgeInsets', 'NSRange', 'sel', 'ObjCClass', 'ObjCInstance', 'ObjCClassMethod', 'ObjCInstanceMethod', 'NSObject', 'NSArray', 'NSMutableArray', 'NSDictionary', 'NSMutableDictionary', 'NSSet', 'NSMutableSet', 'NSString', 'NSMutableString', 'NSData', 'NSMutableData', 'NSNumber', 'NSURL', 'NSEnumerator', 'NSThread', 'NSBundle', 'UIColor', 'UIImage', 'UIBezierPath', 'UIApplication', 'UIView', 'ObjCBlock', 'ns', 'nsurl', 'retain_global', 'release_global', 'on_main_thread', 'create_objc_class',
'Structure', 'sizeof', 'byref', 'c_void_p', 'c_char', 'c_byte', 'c_char_p', 'c_double', 'c_float', 'c_int', 'c_longlong', 'c_short', 'c_bool', 'c_long', 'c_int32', 'c_ubyte', 'c_uint', 'c_ushort', 'c_ulong', 'c_ulonglong', 'POINTER', 'pointer', 'load_framework', 'nsdata_to_bytes', 'uiimage_to_png']
try:
import ctypes
except ImportErr
@tlinnet
tlinnet / .py
Created December 4, 2016 21:26
Pythonista, NSMutableURLRequest with a GET request. Using headers, parameters and ios basic authentication.
# python
from urlparse import urlparse
from urllib import urlencode
from ctypes import c_void_p
import json
import base64
# pythonista
import objc_util
@tlinnet
tlinnet / .py
Created December 2, 2016 21:58
Trying NSURLConnection in pythonista - failing
from objc_util import *
#https://gist.github.com/rakhmad/23b3a13682ffe4c4ce64
#https://gist.github.com/omz/b39519b877c07dbc69f8
#http://stackoverflow.com/questions/2346893/tutorials-for-using-http-post-and-get-on-the-iphone-in-objective-c
#http://codewithchris.com/tutorial-how-to-use-ios-nsurlconnection-by-example/
#https://agilewarrior.wordpress.com/2012/02/01/how-to-make-http-request-from-iphone-and-parse-json-result/
# curl -X GET https://jsonplaceholder.typicode.com/posts/1
root1 = "http://www.stackoverflow.com"
@tlinnet
tlinnet / ANOVA.ipynb
Created June 19, 2015 12:39
ANOVA in python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.