Skip to content

Instantly share code, notes, and snippets.

View hindenbug's full-sized avatar
💻

Manoj hindenbug

💻
View GitHub Profile
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
eval "$(fasd --init zsh-ccomp zsh-ccomp-install posix-alias zsh-hook)"
export PYTHONSTARTUP=~/.pythonrc
@hindenbug
hindenbug / gist:69ef50bd508ae924626fddf8515b6686
Created December 6, 2020 20:27
vim quote multiple lines
:%s/.*<patter>.*/"&"/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
zmodload zsh/zprof
export PATH=/usr/local/bin:$PATH
#export PATH="$HOME/.bin:$PATH"
# PYTHON PATHS
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
# GO PATHS
#export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
- name: Delete multiple files
file:
path: "{{ item }}"
state: absent
with_items:
- file1.txt
- file2.txt
- file3.txt
/sbin/ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'
hostname -I | awk '{print $3}'

Keybase proof

I hereby claim:

  • I am hindenbug on github.
  • I am hindenbug (https://keybase.io/hindenbug) on keybase.
  • I have a public key ASAmvn6HfeoDODUEYwUwJlF5j6-ziUsB61XOoVIqYjk-Cgo

To claim this, I am signing this object:

@hindenbug
hindenbug / gist:88a44ccab80beef2f80e3a9b6b828324
Created October 12, 2016 12:32
Remove ctrl-M characters from a file in vim
%s/\r//g
@hindenbug
hindenbug / Gemfile
Created January 24, 2014 10:55 — forked from jodosha/Gemfile
source 'https://rubygems.org'
gem 'lotus-router'
group :test do
gem 'rspec'
gem 'capybara'
end
; as clojure is built on top of Java, many of its types are old java types
(class 3)
=> java.lang.Long