Skip to content

Instantly share code, notes, and snippets.

View kukagg's full-sized avatar
💭
one more thing…

gg kukagg

💭
one more thing…
View GitHub Profile
@kukagg
kukagg / gist:e9973c53e6323dbeef7b
Created September 13, 2014 10:38
Pretty git log
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
– git lg
– git lg -p – with changes
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@kukagg
kukagg / autocadcolors.js
Last active June 29, 2022 16:48
AutoCAD colors index with HEX and RGB equivalents. https://github.com/kuka/autocad-colors-index
// AutoCAD 0-255 colors mapped with equivalents in HEX and RGB
// source: http://sub-atomic.com/~moses/acadcolors.html
export default [{
"aci": 0,
"hex": "#000000",
"rgb": "rgb(0,0,0)"
}, {
"aci": 1,
"hex": "#FF0000",
@kukagg
kukagg / normalizeCase.ts
Created February 22, 2019 16:03
Typescript: normalizes string case
export const normalizeCase = (str: string) =>
str
.replace(/\b(?:[a-zA-Z]\.){2,}/, a => a.toUpperCase())
.replace(/(?!\b(?:[a-zA-Z]\.){2,})/, a => a.toLowerCase())
.replace(/(\w*[a-z0-9_]+\w*)/g, a => a.toLowerCase())

Keybase proof

I hereby claim:

  • I am kuka on github.
  • I am kuanysh (https://keybase.io/kuanysh) on keybase.
  • I have a public key ASDhCD9zmcRw6ojmIM75_aCSObtwahZmfC4hHCJKM9dElQo

To claim this, I am signing this object:

@kukagg
kukagg / .tmux.conf
Last active February 20, 2020 15:52
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g terminal-overrides ',xterm-256color:Tc'
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# use true colors
@kukagg
kukagg / .vimrc
Last active February 21, 2020 03:00
call plug#begin('~/.vim/plugged')
" Editing
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/limelight.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'jparise/vim-graphql'
Plug 'yggdroot/indentline'
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
#
# General
#