Skip to content

Instantly share code, notes, and snippets.

View cnak's full-sized avatar

Cedric Kisema cnak

View GitHub Profile
@cnak
cnak / prune-stale-branches.sh
Created September 10, 2021 10:21
A bash script to prune stale branches that older than 3 months
#!/usr/bin/env bash
echo ====================================
echo "Pulling the latest branches"
git pull
echo "\n"
for branch in `git branch -r | grep -v HEAD`; do \
echo -e `git show -s --format="%cr %an" $branch | head -n 1` \\t$branch; \
done | \
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
@cnak
cnak / vscode_settings.json
Last active July 7, 2021 09:12
vscode_settings.json
{
"vim.disableAnnoyingNeovimMessage": true,
"window.zoomLevel": 0,
"openCorrespondingFile.extensionList": [
".ts",
".html"
],
"editor.tabSize": 4,
"workbench.panel.location": "bottom",
"workbench.editor.enablePreview": true,

Keybase proof

I hereby claim:

  • I am cnak on github.
  • I am c_nak (https://keybase.io/c_nak) on keybase.
  • I have a public key ASBgcwCxg8C5yEjh1jJpVbvtGiSIsqrCKRbnPcxe5qj9Qgo

To claim this, I am signing this object:

@cnak
cnak / whatIsSlowingVim.vim
Last active September 6, 2015 01:20
Check what is slowing vim down
:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!