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.)
@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)"
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 / zot_rm_empty_folders.py
Last active February 1, 2023 07:44
remove empty folders in `storage`
#!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
import configparser
import re
import shutil
import sys
@specter119
specter119 / zot_rm_unmaintained_files.py
Last active March 11, 2024 11:05
remove files not maintained by zotero
#!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
import configparser
import re
import shutil
import sqlite3
import sys
@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 / fix_csl_gbt7714.vb
Last active January 6, 2021 03:15
Fix multiple locale et al in GB/T 7714 bibliography generated by Zotero(csl) for MS-Word
Sub deng2etal()
'
' deng2etal macro
' English等 -> english, et al
'
With Selection.Find
.Forward = True
.ClearFormatting
.Text = "(<[A-z]@)等"
With .Replacement
@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.