$ git clone https://github.com/Itseez/opencv.git
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.usr/local/ ..
$ make
$ make install
This file contains 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
#!/bin/bash | |
GIT=`which git` | |
CMD="say -r 600 -v Karen meow; $GIT" | |
echo alias git="\"$CMD\"" >> ~/.bash_profile | |
echo 'say -v ? | awk '\''{print $1}'\'' | xargs -I {} say -r 700 -v {} meow' >> ~/.bash_profile |
This file contains 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
#!/bin/bash | |
TF="tensorflow" | |
TF_VER="1.4.0" | |
TF_DIR="$HOME" | |
ENV_NAME="tf-env" | |
GREEN="\033[0;32m" | |
RESET="\033[0m" |
This file contains 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
import tensorflow as tf | |
hello = tf.constant('Hello, TensorFlow!') | |
sess = tf.Session() | |
print(sess.run(hello)) |
This file contains 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
ip addr show docker0 | grep -Po 'inet \K[\d.]+' |
This file contains 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
cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 60; echo | xargs -I rootpw sudo dscl . -passwd /Users/root rootpw |
This file contains 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
#!/bin/bash | |
# The process VDCAssistant is called whenever | |
# any application attempts to use the camera. | |
# In some cases, when the application that was | |
# using the camera fails to terminate properly, | |
# this process is still running in background | |
# preventing other services from access the camera. | |
# A fix for this is to terminate the process using | |
# the activity monitor. Or just use the following script. |
This file contains 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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
I hereby claim:
- I am deadlyelder on github.
- I am deadlyelder (https://keybase.io/deadlyelder) on keybase.
- I have a public key ASCbrTzEiqd4I9nBWVrTB-gXo2engfFtwk9XMpVspvcAjgo
To claim this, I am signing this object: