Current version: 1.0.19 1.0.15 (as of 2018-12-10)
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
# ~/.lldbinit-Xcode | |
# Apple private methods | |
command regex ivars 's/(.+)/po [%1 _ivarDescription]/' | |
command regex methods 's/(.+)/po [%1 _methodDescription]/' | |
command regex shortmethods 's/(.+)/po [%1 _shortMethodDescription]/' | |
command regex nextviewcontroller 's/(.+)/po [%1 _nextViewControllerInResponderChain]/' | |
command alias nextvc nextviewcontroller | |
# Convenience |
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
interp.load.ivy( | |
"com.lihaoyi" % | |
s"ammonite-shell_${scala.util.Properties.versionNumberString}" % | |
s"[${ammonite.Constants.version.replaceAll(raw"([\d]+\.[\d+]).*", "$1.0")},)" // use [x.x.0,) in case edge version no avail. in Maven | |
) | |
@ | |
val shellSession = ammonite.shell.ShellSession() | |
import shellSession._ | |
import ammonite.ops._ | |
import ammonite.shell._ |
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
assemblyMergeStrategy in assembly := { | |
case PathList("org","aopalliance", xs @ _*) => MergeStrategy.last | |
case PathList("javax", "inject", xs @ _*) => MergeStrategy.last | |
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.last | |
case PathList("javax", "activation", xs @ _*) => MergeStrategy.last | |
case PathList("org", "apache", xs @ _*) => MergeStrategy.last | |
case PathList("com", "google", xs @ _*) => MergeStrategy.last | |
case PathList("com", "esotericsoftware", xs @ _*) => MergeStrategy.last | |
case PathList("com", "codahale", xs @ _*) => MergeStrategy.last | |
case PathList("com", "yammer", xs @ _*) => MergeStrategy.last |
Note that this script will try to auto install OpenFoam from souce (which means will download source code) and then compile on local machine. This script is primarily targated at installing old-releases of OpenFOAM which do not have binary installation packages pre-compiled on APT.
The entire installation time cost approximately 2-6 hours depends on network bandwidth and CPU memory power.
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
# borrowed from wnelson on ubuntuforms | |
# https://ubuntuforums.org/showthread.php?t=1899601 | |
pcm.!default { | |
type hw | |
card 1 | |
} | |
ctl.!default { | |
type hw |
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
# Set Jupyter Notebook Root Directory on Host to be mounted in Docker | |
# such that all changes within Docker will be saved to local. | |
HOST_JUPYTER_NOTEBOOK_ROOT = $(PWD)/code | |
# if port 8888 on localhost has been used, change to another free port | |
CONTAINER_PORT = 8888 | |
######################################## | |
CONTAINER_NAME = sagemath | |
CONTAINER_CODE_ROOT = /home/sage/code |
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
require 'formula' | |
class PkgExtract < CurlDownloadStrategy | |
def stage | |
safe_system '/usr/bin/xar', '-xf', @tarball_path | |
chdir | |
safe_system 'mv *.pkg/Payload Payload.gz' | |
safe_system 'ls | grep -v Payload | xargs rm -r' | |
end | |
end |
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
adns | |
adwaita-icon-theme | |
akka | |
amap | |
ammonite-repl | |
ant | |
apache-spark | |
arp-scan | |
arpack | |
asciidoc |
NewerOlder