Skip to content

Instantly share code, notes, and snippets.

View k3muri84's full-sized avatar
🎯
Focusing

kemuri k3muri84

🎯
Focusing
View GitHub Profile
@k3muri84
k3muri84 / pre-commit
Last active May 8, 2021 14:44
ktlintFormat pre-commit hook
#!/bin/sh
# based on https://github.com/shyiko/ktlint pre-commit hook
# with further tweaks of @neugartf
set -e
CHANGED_FILES="$(git --no-pager diff --name-status --no-color --cached | awk '$1 != "D" && $2 ~ /\.kts|\.kt/ { print $2}')"
if [ -z "$CHANGED_FILES" ]; then
exit 0
fi;
@k3muri84
k3muri84 / blame_who_dont_delete.sh
Created May 7, 2021 13:29
remove merged branches
for branch in `git branch -r --merged develop | grep -v HEAD`;do echo -e `git show --format="%an" $branch | head -n 1` \\t$branch; done | sort
@k3muri84
k3muri84 / extractEmails.py
Created September 14, 2016 12:23
python script to extract emails from a text file
import re
fileInput = 'file.htm'
fileOutput = 'emaillist-'+fileInput+'.txt'
f = open(fileInput)
content = f.read()
# email regex
regex = re.compile(("([a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`"
@k3muri84
k3muri84 / .vimrc
Last active January 28, 2020 14:50
vim config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
synced by sync-settings
@k3muri84
k3muri84 / .zshrc
Last active December 28, 2018 10:06
oh my zsh config
# my config for oh my zsh
# enable command auto-correction.
ENABLE_CORRECTION="true"
# display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# plugins to load
plugins=(git git-extra common-aliases urltools atom wd autojump alias-tips jira)
Verifying my Blockstack ID is secured with the address 1KxuNBwPHW7XomSeBJ23iivCKFKLFm3UgH https://explorer.blockstack.org/address/1KxuNBwPHW7XomSeBJ23iivCKFKLFm3UgH
@k3muri84
k3muri84 / find-jira-tickets.py
Created October 25, 2018 09:19
Find unique jira tickets from git log
#!/usr/bin/env python
# finds jira tickets up until latest tag
# regex part inspired by https://github.com/pbetkier/add-issue-id-hook
import subprocess
import re
project_format = '[A-Z][A-Z]+'
issue_pattern = '{}-[\d]+'.format(project_format)

Keybase proof

I hereby claim:

  • I am echorebel on github.
  • I am kemuri (https://keybase.io/kemuri) on keybase.
  • I have a public key ASC5VjA-Rqs0XPZzqGv2zFTMpR1o5E0sSt4E3JKhvxKFdgo

To claim this, I am signing this object:

@k3muri84
k3muri84 / adb_installl.sh
Last active September 13, 2017 14:54
ADB Install & Run on multiple devices
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} install -r yourBuild.apk