Skip to content

Instantly share code, notes, and snippets.

View ptrxyz's full-sized avatar

ptrxyz ptrxyz

View GitHub Profile
@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 \
@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/
#!/bin/bash
LOCKFILE=/tmp/.xrandrlock
[ -e $LOCKFILE ] && exit
touch $LOCKFILE
xrandr --auto
rm $LOCKFILE
@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)
@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)
### 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: