This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAG_COMMIT := $(shell git rev-list --abbrev-commit --tags --max-count=1) | |
TAG := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true) | |
COMMIT := $(shell git rev-parse --short HEAD) | |
DATE := $(shell git log -1 --format=%cd --date=format:"%Y%m%d") | |
VERSION := $(TAG:v%=%) | |
ifneq ($(COMMIT), $(TAG_COMMIT)) | |
VERSION := $(VERSION)-next-$(COMMIT)-$(DATE) | |
endif | |
ifeq $(VERSION,) | |
VERSION := $(COMMIT)-$(DATA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOPATH=$HOME/go | |
GOBIN=$GOPATH/bin | |
PATH=$PATH:$GOBIN | |
source <(zpm load --install-missing --update-check) | |
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff" | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init: | |
git config core.hooksPath .githooks | |
format: | |
cargo fmt -- --force --write-mode overwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generated by `thefuck --alias` | |
source $HOME/thefuck.sh | |
source $HOME/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle cargo | |
antigen bundle colored-man-pages | |
antigen bundle docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" BASIC SETTINGS BEGIN | |
set backspace=indent,eol,start " backspace everything | |
set number " enable line numbering | |
set noerrorbells " disable beeps | |
set title " show the current filename in the window title | |
set cursorline " highlight current line | |
" remove underline | |
hi CursorLine cterm=none | |
set wildmenu " visual autocomplete for commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -iname "*.m4a" -print0 | while IFS= read -r -d $'\0' input_file; do ffmpeg -i "$input_file" -f flac "${input_file%.*}.flac" < /dev/null; rm "$input_file"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(PRJ_NAME CLion_STM_LED) | |
set(MCU_FAMILY STM32F1xx) | |
set(MCU_LINE STM32F103xB) | |
set(MCU_LINKER_SCRIPT STM32F103RBTx_FLASH.ld) | |
cmake_minimum_required(VERSION 3.6) | |
project(${PRJ_NAME} C ASM) | |
add_definitions(-D${MCU_LINE}) |