Skip to content

Instantly share code, notes, and snippets.

View marschhuynh's full-sized avatar
🎯
Focusing

Marsch Huynh marschhuynh

🎯
Focusing
View GitHub Profile
@marschhuynh
marschhuynh / swap.sh
Created February 9, 2017 05:13
Create swap on linux
sudo /bin/dd if=/dev/zero of=/swap bs=1M count=1024
sudo /sbin/mkswap /swap
sudo chmod 600 /swap
sudo /sbin/swapon /swap
@marschhuynh
marschhuynh / opencv_build.sh
Last active December 6, 2017 05:07
Build open cv for python on Mac
cmake -D BUILD_TIFF=ON \
-D BUILD_opencv_java=OFF \
-D WITH_CUDA=OFF \
-D WITH_OPENGL=ON \
-D WITH_OPENCL=ON \
-D WITH_IPP=OFF \
-D WITH_TBB=ON \
-D WITH_EIGEN=ON \
-D WITH_V4L=ON \
-D WITH_VTK=OFF \
@marschhuynh
marschhuynh / build_tensorflow_and_opencv.md
Last active March 25, 2017 10:13
Build tensorflow and opencv
## Build OpenCV for python 3
#### For python3 on ubuntu
```bash
cmake -Wno-deprecated-gpu-targets \
-D BUILD_TIFF=ON \
-D BUILD_opencv_java=OFF \
-D WITH_CUDA=ON \
@marschhuynh
marschhuynh / dock_faster.md
Created April 24, 2017 05:19
Make dock on mac appear faster

defaults write com.apple.dock autohide-delay -float 0

defaults write com.apple.dock autohide-time-modifier -float 0.5

killall Dock

import pi2go, time
pi2go.init()
# Here we set the speed to 60 out of 100 - feel free to change!
speed = 65
count = 0
isLeft = 0
disError = 10000
@marschhuynh
marschhuynh / Debug android over wifi network.txt
Last active August 12, 2017 15:33
Debug android over wifi network
adb shell setprop service.adb.tcp.port 4444
adb tcpip 4444
adb connect 192.168.0.155:4444
@marschhuynh
marschhuynh / git.sh
Last active December 11, 2017 14:27
List big file in git
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -10 | awk '{print$1}')"
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' \
--prune-empty --tag-name-filter cat -- --all
https://itunes.apple.com/us/app/pristen/id1322276830?l=vi&ls=1&mt=8
https://medium.com/@emieljanson/make-your-mac-dock-appear-faster-7e70724cd5fb
defaults write com.apple.dock autohide-delay -float 0;
defaults write com.apple.Dock autohide-delay -float 0;
killall Dock