Skip to content

Instantly share code, notes, and snippets.

@Amwam
Amwam / .ideavimrc
Created December 8, 2021 15:09
Idea vim rc file
set ignorecase " Ignore case in search patters
set smartcase " Case sensitive when capital in search
set incsearch " Highlight as you search
set smartjoin " join via IDE
set number
set relativenumber
set visualbell
@Amwam
Amwam / .ackrc
Created December 28, 2018 10:51
ACK rc files
--ignore-dir=.idea
--ignore-dir=.git
--ignore-dir=node_modules
--ignore-dir=.ropeproject
--ignore-file=match:\.?tags?
--ignore-dir=.tag
--ignore-dir=data
--ignore-dir=coverage
--ignore-dir=build
--ignore-file=match:nosetests.*.xml
@Amwam
Amwam / python_2_7_10_results.txt
Last active May 28, 2018 20:24
Time iteration of tuples/lists/sets
2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
Creating a set
using a tuple: 0.689293146133
using a list: 0.676049947739
using a set: 0.665240049362
Creating a tuple
using a tuple: 0.450199842453
using a list: 0.442317008972
@Amwam
Amwam / .vimrc
Created April 6, 2018 17:09
Basic .vimrc
syntax on " syntax highlighting
set gdefault " global search and replace
set incsearch " incremental search, show results as you type
set ignorecase " case insensitive search
set smartcase " if you use capitals in search, swtich to case sensitive
set number " show line numbers
set mouse=a " mouse support

Keybase proof

I hereby claim:

  • I am Amwam on github.
  • I am amwam (https://keybase.io/amwam) on keybase.
  • I have a public key whose fingerprint is CFFE 8EA5 E765 3BBD 9C03 0801 903B B49C A5CE 3E1A

To claim this, I am signing this object:

@Amwam
Amwam / checkAllBranches.sh
Last active August 29, 2015 14:05
Show the status of all branches in relation to master and develop
#!/bin/bash
#
# script will clone a git repository into a temporary working directory
# where it will analyse branches that contains the word 'feature'
# comparing them to master and develop to determine the number of
# commits in the feature that are not yet merged with develop
# and the number of commits in master that are not yet merged with the feature.
START_DIR=`pwd`
WORKING_DIR="$HOME/.gitanalyse-`date +%s`"