Skip to content

Instantly share code, notes, and snippets.

View hindenbug's full-sized avatar
💻

Manoj hindenbug

💻
View GitHub Profile
@hindenbug
hindenbug / test.clj
Created January 4, 2014 20:33 — forked from adambard/test.clj
; Comments start with semicolons.
; Clojure is written in "forms", which are just
; lists of things inside parentheses, separated by whitespace.
;
; The clojure reader assumes that the first thing is a
; function or macro to call, and the rest are arguments.
;
; Here's a function that sets the current namespace:
(ns test)
@hindenbug
hindenbug / test.clj
Created January 5, 2014 20:24 — forked from adambard/test.clj
; Comments start with semicolons.
; Clojure is written in "forms", which are just
; lists of things inside parentheses, separated by whitespace.
;
; The clojure reader assumes that the first thing is a
; function or macro to call, and the rest are arguments.
;
; Here's a function that sets the current namespace:
(ns test)
; as clojure is built on top of Java, many of its types are old java types
(class 3)
=> java.lang.Long
@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
# 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

Keybase proof

I hereby claim:

  • I am hindenbug on github.
  • I am xcess_denied (https://keybase.io/xcess_denied) on keybase.
  • I have a public key whose fingerprint is 07EF 0E73 359D 31BB A714 081F A1E0 6B7C AB23 E86B

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

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:

/sbin/ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'
hostname -I | awk '{print $3}'
- name: Delete multiple files
file:
path: "{{ item }}"
state: absent
with_items:
- file1.txt
- file2.txt
- file3.txt