Skip to content

Instantly share code, notes, and snippets.

View G07cha's full-sized avatar

Konstantin Azizov G07cha

View GitHub Profile
@G07cha
G07cha / .zshrc
Last active February 28, 2020 12:59
# Prerequisites
# brew install Schniz/tap/fnm fzf
# $(brew --prefix)/opt/fzf/install
USER=$(whoami)
# Path to your oh-my-zsh installation.
export ZSH=/Users/$USER/.oh-my-zsh
alias vi=vim
@G07cha
G07cha / MigrateCommits.sh
Last active October 23, 2015 12:31
Easy script that allows to migrate all commits to new email and username, just call it with your username and email as arguments and wait until everything is finished.
#!/bin/sh
NAME=${1}
OLDEMAIL=${2}
EMAIL=${3}
curl --silent -X GET https://api.github.com/users/${NAME}/repos > repos.json
REPOS=$(cat ./repos.json | grep "\"html_url\": \"https://github.com/${NAME}/" | cut -d'"' -f4)
# Modified example https://help.github.com/articles/changing-author-info/
import cv2
import sys
from matplotlib import pyplot as plt
#Path to image containing fragment
img = cv2.imread(sys.argv[1], 0)
#Path to fragment
template = cv2.imread(sys.argv[2], 0)
method = 'cv2.TM_CCOEFF'