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 / 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:

#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "jesseduffield/lazygit/lazygit"
brew "diff-so-fancy"
brew "entr"
brew "exa"
brew "fd"
brew "fx"
@kukagg
kukagg / init.el
Last active February 20, 2020 01:43
;; packages
(setq package-enable-at-startup nil)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
'package-archives
@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