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
[init] | |
defaultBranch = master | |
[alias] | |
b = branch | |
aa = add --all | |
st = status | |
s = status -sb | |
co = checkout | |
ci = commit -v | |
cp = cherry-pick |
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
#!/bin/sh | |
current_branch=`git rev-parse --abbrev-ref HEAD` | |
if [[ $current_branch =~ master|main ]]; then | |
message="Please don't commit directly to $current_branch." | |
echo "💥 \033[1;31mERROR: $message\033[0m"; | |
exit 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
[ | |
// IntelliJ -> Navigate - Back | |
{ | |
"key": "cmd+[", | |
"command": "workbench.action.navigateBack" | |
}, | |
// IntelliJ -> Navigate - Forward | |
{ | |
"key": "cmd+]", | |
"command": "workbench.action.navigateForward" |
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
{ | |
"workbench.colorTheme": "Night Owl", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "'Dank Mono', 'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": "400", | |
"workbench.startupEditor": "newUntitledFile", |
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
... | |
[interactive] | |
diffFilter = diff-so-fancy --patch | |
[color "diff-highlight"] | |
oldNormal = red | |
oldHighlight = red 52 | |
newNormal = green | |
newHighlight = green 22 | |
[color "diff"] |
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
create table test (id int, a timestamp) partition by list ( (trunc(extract(second from a))::int % 3)); | |
create table test01 partition of test for values in (0); | |
create table test02 partition of test for values in (1); | |
create table test03 partition of test for values in (2); | |
insert into test values (555, now()); | |
select * | |
from test |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": [ | |
{ | |
"command": { | |
"action": "copy", | |
"singleLine": false | |
}, | |
"keys": "ctrl+c" | |
}, |
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
defaults write -g ApplePressAndHoldEnabled -bool false | |
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) |
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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
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
ln -s /Applications/Docker.app/Contents/Resources/etc/docker.zsh-completion /usr/local/share/zsh/site-functions/_docker | |
ln -s /Applications/Docker.app/Contents/Resources/etc/docker-compose.zsh-completion /usr/local/share/zsh/site-functions/_docker-compose | |
echo "autoload -Uz compinit; compinit" >> .zshrc |
NewerOlder