For file, open in notepad:
C:\Users\YOUR_USERNAME\.bash_profile
Add the lines:
#use fix path for SSH_AUTH_SOCK so it works more then one instance of gitbash
export SSH_AUTH_SOCK="$TEMP/ssh_agent_socket"
ps | grep ssh-agent > /dev/null
For file, open in notepad:
C:\Users\YOUR_USERNAME\.bash_profile
Add the lines:
#use fix path for SSH_AUTH_SOCK so it works more then one instance of gitbash
export SSH_AUTH_SOCK="$TEMP/ssh_agent_socket"
ps | grep ssh-agent > /dev/null
| from PIL import Image, ImageDraw, ImageFont | |
| # https://get.slack.help/hc/en-us/articles/206870177-Add-custom-emoji | |
| estimations = ['1h', '2h', '4h', '6h', '1d', '2d', '3d', '4d', '1w', '2w', 'inf'] | |
| fnt_ = ImageFont.truetype('C:\\WINDOWS\\FONTS\\CONSOLA.ttf', 96) | |
| for e in estimations: | |
| fnt = fnt_ if len(e) < 3 else ImageFont.truetype('C:\\WINDOWS\\FONTS\\CONSOLA.ttf', 65) | |
| img = Image.new('RGB', (128, 128), color = (73, 109, 137)) |
| First git tag with commit | |
| https://unix.stackexchange.com/questions/47659/how-to-find-the-first-tag-that-contains-a-git-commit | |
| git name-rev --tags --name-only <SHA> |
| using System; | |
| using System.Text; | |
| namespace Hashing | |
| { | |
| public static class FowlerNollVo | |
| { | |
| public static string ToFnv1aHashInt64(this string text) | |
| { | |
| string Fnv1a(byte[] bytes_) |
| git log --no-merges --format=format:%H master..a_branch | sort > master.ahead | |
| git log --no-merges --format=format:%H development..a_branch.development | sort > development.ahead | |
| diff master.ahead development.ahead |
| #show settings | |
| git config --list --show-origin | |
| $ git config --list --show-origin | grep crlf | |
| file:"C:\\ProgramData/Git/config" core.autocrlf=false | |
| #csharp .gitattributes | |
| *.sln text eol=crlf | |
| *.config text eol=crlf |
| #!/usr/bin/env bash | |
| SHA=$1 | |
| echo "Creating file list for $SHA" | |
| git diff-tree --no-commit-id --name-only -r "$SHA" > | |
| vim diff-tree.filelist | |
| cat diff-tree.filelist | xargs -0 -I -r {} git checkout "$SHA^" {} | |
| rm diff-tree.filelist |
| import cv2 | |
| import math | |
| import numpy as np | |
| import sys | |
| def apply_mask(matrix, mask, fill_value): | |
| masked = np.ma.array(matrix, mask=mask, fill_value=fill_value) | |
| return masked.filled() | |
| def apply_threshold(matrix, low_value, high_value): |