Most applications in Linux will report the names of the two GPUs as follows.
- Dimgrey Cavefish is dGPU
- Yellow Carp is iGPU
#!/usr/bin/bash -xe | |
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice" | |
[Slice] | |
AllowedCPUs=0-4 | |
MemoryHigh=6G | |
EOF | |
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop" |
/** | |
* Download and extract `.tar.gz` file using node.js | |
* | |
* Created on 1400/2/7 (2021/4/27). | |
* @author {@link https://mirismaili.github.io S. Mahdi Mir-Ismaili} | |
*/ | |
import http from 'http' | |
import https from 'https' | |
import tar from 'tar' |
# Setup HomeBrew: https://brew.sh/ | |
brew install openblas | |
pip download --no-binary :all: --no-deps numpy | |
unzip numpy-1.18.2.zip # (you may have newer version) | |
cd numpy-1.18.2 | |
cat > site.cfg <<EOF | |
[openblas] | |
libraries = openblas | |
library_dirs = $(brew --prefix openblas)/lib |
For every developer, terminal is their weapon, so why don't you customize it to become a powerful, and a beautiful weapon?
Powerline style refers to a terminal style that helps developer to keep track of their workflow easily, allows them to have perfect visual on current directories and new changes. It is also git recognizable, and failure detector that will help your development process becomes more interact and much faster.
In this guideline, I will introduce you with 2 smart shells: Zsh
and Fishshell
. Both are perfect for the development jobs due to its rich of resources, and user-friendly.
This was tested on MacOS 10.14.5 on 2019-07-16
schemacrawler is a free and open-source database schema discovery and comprehension tool. It can be invoked from the command-line to produce, using GraphViz, images/pdfs from a SQLite (or other database type) file. It can be used from the command-line to generate schema diagrams like these:
After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.
sudo cp \
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \
Add the `replication` section to the mongod.conf file: | |
``` | |
$cat /usr/local/etc/mongod.conf | |
systemLog: | |
destination: file | |
path: /usr/local/var/log/mongodb/mongo.log | |
logAppend: true | |
storage: | |
engine: mmapv1 |
#!/bin/sh | |
# | |
# /etc/init.d/ant -- startup script for the ANT 0.1-SNAPSHOT search engine | |
# | |
# Written by José Devezas <[email protected]>. | |
# | |
### BEGIN INIT INFO | |
# Provides: ant | |
# Required-Start: $local_fs $network | |
# Required-Stop: $local_fs $network |