This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 1. Installation location of the Wolfram Engine | |
WOLFRAMROOT=$(nix-env -q wolfram-engine --out-path --no-name) | |
# 2. MathLink path. Consider saving it for reasons in 4. | |
MLINKROOT=$WOLFRAMROOT/libexec/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/CompilerAdditions | |
# 3. Compile | |
TEXMACSROOT=$(nix-env -q TeXmacs --out-path --no-name) | |
gcc -m64 -o ~/.TeXmacs/bin/tm_mathematica.bin \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
today() { | |
[[ -z "$*" ]] && < ~/.today || echo "$(date +'%F %T') $*" >> ~/.today | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.replaceAll = function(foo, bar) { | |
return this.split(foo).join(bar); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LOL!!1 | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='echo' | |
alias invisible='cat' | |
alias moar='more' | |
alias icanhas='mkdir' | |
alias donotwant='rm' | |
alias dowant='cp' |