Skip to content

Instantly share code, notes, and snippets.

View chhh's full-sized avatar

Dmitry Avtonomov chhh

View GitHub Profile
@chhh
chhh / .gitignore
Last active January 21, 2024 03:50
.gitignore file for IDEA, Eclipse, NetBeans
#
# Project specific excludes
#
tomcat
#
# Default excludes
#
@chhh
chhh / .bashrc
Last active March 8, 2019 02:05
This old bashrc is pretty much deprecated by now.
# This old bashrc is pretty much deprecated by now.
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
@chhh
chhh / .vimrc
Last active December 15, 2015 09:39
" this helped me to get right-mouse-click to work as paste
set mouse=r
" settings for vim
syntax on
set ruler
set background=dark
" completion in command line
@chhh
chhh / .dircolors
Created March 25, 2013 19:49
light blue colors for dirs and other stuff
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# Copyright (C) 1996, 1999-2010 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted provided the copyright notice and this notice are preserved.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM Eterm
TERM ansi
@chhh
chhh / .gitconfig
Last active November 10, 2019 22:21
global git config for use with p4merge as difftool (does not create temp files [LOCAL REMOTE BRANCH etc.] or .orig files)
[credential]
helper = manager
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = <your name>
email = <your@email>
[color]
ui = true
@chhh
chhh / git-init-leaf-dirs.sh
Last active August 16, 2018 23:43
Create git repositories in all leaf directories. Useful for setting up large multi-project builds with Gradle, for example.
#!/bin/bash
startdir=`pwd`
# # find all the LEAF directories that don't have .git somewhere along the path
# selection of LEAFs is done in the awk part
# the output of find is read line by line, assuming filenames don't have newlines
# `find -print0` wouldn't work, as this would screw up the awk part
find . -not \( -name .git -prune \) -type d -print | sort -r | awk 'a!~"^"$0{a=$0;print}' | sort | while read -d $'\n' file
do
echo "Going to -> $file"
@chhh
chhh / scoop-export.txt
Last active April 24, 2020 16:34
Apps installed with scoop
$ scoop list
Installed apps:
7zip 19.00
adopt11-hotspot 11.0.6-10 [java]
adopt8-hotspot 8u212-b03 [java]
ant 1.10.7
aria2 1.34.0-1
clink 0.4.9
concfg 0.2020.03.15
@chhh
chhh / .bashrc
Created September 11, 2018 18:57
Bashrc for git on Windows installation
# Taken from: https://github.com/bobthecow/git-flow-completion/blob/master/git-flow-completion.bash
source ~/git-flow-completion.bash
if [[ -n "${ConEmuPID}" ]]; then
PS1="$PS1\[\e]9;9;\"\w\"\007\e]9;12\007\]"
fi
# This is used to start ssh-agent once when git-bash is started.
@chhh
chhh / chhh.json
Created September 30, 2018 02:00
Console color scheme for import with `concfg` (https://github.com/lukesampson/concfg)
{
"fullscreen": false,
"command_history_length": 50,
"screen_buffer_size": "120x200",
"window_size": "120x50",
"cursor_size": "small",
"font_face": "Lucida Console",
"font_weight": 400,
"font_size": "0x14",
"font_true_type": true,
@chhh
chhh / console-colorscheme-chhh.json
Created October 12, 2018 07:00
Color scheme for use with concfg to customize colors of cmd.exe and PowerShell
{
"fullscreen": false,
"command_history_length": 50,
"screen_buffer_size": "120x200",
"window_size": "120x50",
"cursor_size": "small",
"font_face": "Lucida Console",
"font_weight": 400,
"font_size": "0x14",
"font_true_type": true,