This file contains hidden or 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
# Скопировать название текущей ветки в буфер обмена. | |
alias gbc="git rev-parse --abbrev-ref HEAD | pbcopy" | |
# Перейти в текущий активный тикет | |
alias ticket="git symbolic-ref HEAD | sed -E \"s/(.*\/)?([A-Z]+\-[0-9]+).*/\2/g\" | grep -E \"[A-Z]+\-[0-9]+\" | xargs echo \"https://st.yandex.ru/${1}\" | tr -d '[:space:]' | xargs open" |
This file contains hidden or 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
[user] | |
name = Max Kholodnyak | |
email = [email protected] | |
[alias] | |
a = !git add . && git status | |
co = checkout | |
cm = commit | |
ca = commit --amend | |
br = branch | |
st = status |
This file contains hidden or 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
sudo ifconfig awdl0 down |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Ensures commit message prefix to satisfy "<queue>-<task_number>: <comment>" format | |
# if you're using "<type>/<queue>-<task_number>-<description>" branches format. | |
TICKET=$(git symbolic-ref HEAD | sed -E "s/(.*\/)?([A-Z]+\-[0-9]+).*/\2/g" | grep -E "[A-Z]+\-[0-9]+") | |
PREPEND=$(head -n1 $1 | grep -vE "^[A-Z]+\-[0-9]+:") | |
if [ -n "$TICKET" ] && [ -n "$PREPEND" ]; then | |
echo "$TICKET: $(cat $1)" > $1 | |
fi |
This file contains hidden or 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
sudo kill $(ps aux | grep 'your-demostand-name' | awk '{print $2}') |
This file contains hidden or 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
.block { | |
transition: box-shadow 150ms linear; | |
box-shadow: 0 1px 3px rgba(0,0,0,.28); | |
} | |
.block:hover { | |
box-shadow: 0 3px 9px rgba(0,0,0,.28); | |
} |
This file contains hidden or 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
/** | |
* 1) Collect all links from `Course Page` | |
*/ | |
$('#lesson-thumbs a') | |
.filter((index, link) => $(link).attr('href') != null) | |
.map((index, link) => (window.location.origin + $(link).attr('href'))) | |
.toArray() | |
.join("\r\n"); | |
/** |
This file contains hidden or 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
module ::= block | |
block ::= ( import | include | template | function_ | key | var_ | block_expr )* | |
body ::= '{' block '}' | '[' block ']' | |
import ::= 'import' inline_string | |
include ::= 'include' inline_string |
This file contains hidden or 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
rm -rf ~/Library/Application\ Support/com.bohemiancoding.sketch3/ | |
sudo sh -c "echo '127.0.0.1 backend.bohemiancoding.com' >> /etc/hosts" |
This file contains hidden or 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
# Показ Mission Control, рабочий стол, App Expose — Включение | |
defaults write com.apple.dock expose-animation-duration -float 0.1 && killall Dock | |
# Показ Mission Control, рабочий стол, App Expose — Выключение | |
defaults delete com.apple.dock expose-animation-duration && killall Dock | |
# Переход в полноэкранный режим – Включение | |
defaults write -g NSWindowResizeTime -float 0.001 && killall Dock | |
# Переход в полноэкранный режим – Выключение | |
defaults delete -g NSWindowResizeTime && killall Dock |
NewerOlder