Skip to content

Instantly share code, notes, and snippets.

@specter119
specter119 / zotselect-link.js
Created March 4, 2017 16:45 — forked from nschneid/zotselect-link.js
Zotero export translator that generates a zotero://select link to an item in the Zotero library. (First a simple version, as well as a version that displays minimal citation information and stores further details as title text.)
diff -rupN xcrysden-1.5.60/F/gengeom.f myxcrysden-1.5.60/F/gengeom.f
--- xcrysden-1.5.60/F/gengeom.f 2012-02-03 18:53:05.000000000 +0800
+++ myxcrysden-1.5.60/F/gengeom.f 2018-08-03 14:41:35.000000000 +0800
@@ -905,7 +905,7 @@ C DETERMINE HOW MENY ATOMS WILL BE I
SUBROUTINE GETCCOOR(A33,B33,BROW,X,Y,Z,XC,YC,ZC,NA,NATR)
include 'param.inc'
- REAL*8 B33(3,4),A33(3,3),RA(3,3),COOR(3),X(NATR),Y(NATR),Z(NATR),
+ REAL*8 B33(3,*),A33(3,3),RA(3,3),COOR(3),X(NATR),Y(NATR),Z(NATR),
* XC(NAC,4),YC(NAC,4),ZC(NAC,4),RX(3)
@specter119
specter119 / PKGBUILD
Created July 4, 2018 03:15
update aur/julia-mkl
# Maintainer: Israel Herraiz <isra@herraiz.org
pkgbase=julia-mkl
pkgname=('julia-mkl' 'julia-mkl-docs')
pkgver=0.6.3
pkgrel=1
arch=('x86_64')
pkgdesc='High-level, high-performance, dynamic programming language (compiled with the Intel MKL library)'
url='http://julialang.org/'
license=('MIT')
@specter119
specter119 / PKGBUILD
Created July 6, 2018 03:33
update aur/jupyter-matlab_kernel-git
# Maintainer: Brendan Van Hook <brendan at vastactive dot com>
_pkgname=matlab_kernel
pkgname=jupyter-$_pkgname-git
pkgver=r167.616c495
pkgrel=1
pkgdesc="A Jupyter/IPython kernel for Matlab"
arch=('any')
url="https://github.com/Calysto/matlab_kernel.git"
license=('BSD')
@specter119
specter119 / install.sh
Created March 10, 2017 16:00 — forked from qntmpkts/install.sh
Installer for oh-my-zsh on Termux
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
@specter119
specter119 / PKGBUILD
Created September 29, 2018 12:51
aur-suitesparse-mkl
# Maintainer: Israel Herraiz <isra@herraiz.org>
pkgname=suitesparse-mkl
pkgver=5.2.0
pkgrel=1
pkgdesc="A collection of sparse matrix libraries (compiled with the Intel MKL lib)"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('i686' 'x86_64')
conflicts=('umfpack' 'suitesparse')
provides=('umfpack' 'suitesparse=${pkgver}')
@specter119
specter119 / Microsoft_Office_2019_VL_Serializer.pkg
Created February 8, 2019 12:49 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file
This file has been truncated, but you can view the full file.
@specter119
specter119 / aur-matlab.patch
Last active May 13, 2019 04:49
patch for AUR Matlab to enable login installation
diff --git a/PKGBUILD b/PKGBUILD
index a97c0b9..7b37fba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,6 +40,7 @@
# partial install
_partialinstall=false
+_logininstall=true
@specter119
specter119 / PKGBUILD
Created November 11, 2019 06:12
ttf-ms-win10 with more chinese fonts
# Maintainer: Michael Lass <bevan@bi-co.net>
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
# Contributor: reflexing <reflexing@reflexing.ru>
# Instructions were copied from ttf-ms-win8 and slightly modified:
#
# BUILD INSTRUCTIONS:
# -------------------
#
# Please note, that usage of Microsoft fonts outside running Windows
@specter119
specter119 / papirus-icon-kde.hook
Last active November 11, 2019 11:12
papirus-icon-kde.hook should put in /usr/share/libalpm/hooks/, fix "gnome" not found.
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = usr/share/icons/*Papirus*/index.theme
[Action]
Description = Remove unused theme name from papirus-icon-theme
When = PostTransaction
Exec = /bin/sh -c "/usr/bin/sed -i.orig '/Inherits/ s/gnome,\?//g' /usr/share/icons/{ePapirus,Papirus,Papirus-Light,Papirus-Dark}/index.theme"