Skip to content

Instantly share code, notes, and snippets.

View jbienkowski311's full-sized avatar

Jakub Bieńkowski jbienkowski311

View GitHub Profile
git commit --ammend # add commit to previous one
git stash # all staging files stash them for later use
git stash pop # reverse git stash
git stash list # list of all stashes
git reset/checkout -- filename
# move last commit to new branch
git checkout -b issue-xyz
@jbienkowski311
jbienkowski311 / opencv_310_install.sh
Created July 3, 2016 13:10
Debian/Ubuntu installation script for OpenCV 3.1.0 C++ and Python bindings with FFMPEG, Video4Linux, GTK2.0 support
#!/bin/bash
# full update Debian/Ubuntu
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
# prepare all the compilation tools
sudo apt-get install -y cmake git build-essential wget unzip
# ffmpeg dependencies
sudo apt-get install -y build-essential checkinstall git cmake libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev libsdl1.2-dev libvpx-dev
# gstreamer
sudo apt-get install -y libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad
# libgtk2
@jbienkowski311
jbienkowski311 / rpi_opencv_install.sh
Last active February 4, 2020 00:59
OpenCV 3.1 installation script for Raspberry Pi (Raspbian Jessie)
#!/bin/bash
# full update
sudo apt-get update
sudo apt-get -y upgrade
sudo rpi-update
# reboot required
read -r -p "You may need to reboot your RPi. Would you like to do that? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then
@jbienkowski311
jbienkowski311 / opencv_2411_install.sh
Last active January 5, 2019 19:11
OpenCV installation script for Debian/Ubuntu
#!/bin/bash
# full update Debian/Ubuntu
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
# prepare all the compilation tools
sudo apt-get install -y cmake git build-essential wget unzip
# ffmpeg dependencies
sudo apt-get install -y build-essential checkinstall git cmake libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev libsdl1.2-dev libvpx-dev
# gstreamer
sudo apt-get install -y libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad
# libgtk2