Skip to content

Instantly share code, notes, and snippets.

View ptrxyz's full-sized avatar

ptrxyz ptrxyz

View GitHub Profile
### Keybase proof
I hereby claim:
* I am ptrxyz on github.
* I am ptrxyz (https://keybase.io/ptrxyz) on keybase.
* I have a public key whose fingerprint is A86C C796 6412 E279 C1AF DAE8 3A7B 2B13 8949 CFCB
To claim this, I am signing this object:
@ptrxyz
ptrxyz / rt5592sta_fix_64bit_3.8.patch
Created October 21, 2014 17:37
Ralink Rt5390 kernel 3.8 patch
diff --git a/Makefile b/Makefile
index 533ea7c..9fb31d5 100644
--- a/Makefile
+++ b/Makefile
@@ -189,11 +189,14 @@ CROSS_COMPILE = mips-wrs-linux-gnu-
endif
ifeq ($(PLATFORM),PC)
+ifndef KERN_VER
+KERN_VER = $(shell uname -r)
@ptrxyz
ptrxyz / rt5592sta_fix_64bit_3.15.patch
Last active August 29, 2015 14:07
Ralink Rt5390 kernel 3.15 and 3.8 patches (taken from http://gridlox.net/diff/)
diff --git a/Makefile b/Makefile
index 533ea7c..9fb31d5 100644
--- a/Makefile
+++ b/Makefile
@@ -189,11 +189,14 @@ CROSS_COMPILE = mips-wrs-linux-gnu-
endif
ifeq ($(PLATFORM),PC)
+ifndef KERN_VER
+KERN_VER = $(shell uname -r)
#!/bin/bash
LOCKFILE=/tmp/.xrandrlock
[ -e $LOCKFILE ] && exit
touch $LOCKFILE
xrandr --auto
rm $LOCKFILE
@ptrxyz
ptrxyz / docker-compose.yml
Created April 26, 2021 10:40
Chemotion ELN 21.04-1
version: '3'
services:
db:
image: 'postgres:latest'
restart: unless-stopped
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./db-data:/var/lib/postgresql/data/
@ptrxyz
ptrxyz / gist:ffbfe21d7df8db0efb6ab70a99a12d37
Created June 23, 2021 17:13
Chemotion RedHat Install -- Try 1
dnf update -y
dnf install -y epel-release
dnf --enablerepo=powertools -y install \
automake bison boost-devel ca-certificates cmake \
cronie curl dejavu-sans-fonts diffutils dirmngr \
eigen3-devel file-devel gcc gdbm-devel git \
gmp-devel google-crosextra-caladea-fonts \
google-crosextra-carlito-fonts google-noto-fonts-common \
ImageMagick ImageMagick-devel inkscape liberation-fonts \
libffi libffi-devel libreoffice-opensymbol-fonts \
session
midnight
paper
highway
possibility
efficiency
dad
idea
hat
meal
all
my
nice
buzz word
go here

Chemotion URI schema

Chemotion URI schema is meant to bridge the gap between browser and desktop applications. A common use case would be accessing and editing files stored in the ELN with desktop-installed applications. While one could simply download the files from the ELN and then open the file with a specific application the goal is to simplify the process to only require a single click.

The idea would be to install a URI schema handler on the client system and generating clickable links in the lab journal. The handler can then, for example, download data, launch the desired application, wait for changes and reupload the data afterwards. A simplified example can be seen here: {%youtube da_2mAzXj_Y %}

production:
:name_abbreviation:
:reserved_list:
- 'CRR'
- 'CRS'
- 'CRD'
:length_group: [2, 5]
:length_device: [2, 6]
:length_default: [2, 8]
:format_abbr: !ruby/regexp '/\A[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9]\Z/'