Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# Run ctags after a commit
echo ""
echo "Ctags running ==============================="
echo ""
ctags -R .
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.s 'status -s'
git config --global alias.scrub '!git reset --hard HEAD~10 && git pull'
git config --global alias.ls-alias 'config --get-regexp \"^alias\\.\"'
git config --global alias.ls-branch 'for-each-ref --sort=-committerdate refs/heads/ --format="%(committerdate:short) %(authorname) : %(refname:short) - %(contents:subject)"'
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.append 'commit --amend'
@chrismarksus
chrismarksus / soy.vim
Last active August 29, 2015 14:19 — forked from rcmachado/soy.vim
" Vim syntax file
" Language: Soy Templates
" Maintainer: Rodrigo Machado [email protected]
" Last Change: Thu Apr 15 16:59:00 GMT 2010
" Filenames: *.soy
" URL: http://gist.github.com/gists/367358/download
"
" Based on Smarty.vim
" For version 5.x: Clear all syntax items
@chrismarksus
chrismarksus / .ctags
Created January 12, 2016 19:23 — forked from xzj/.ctags
my .ctags syntax file for Groovy language (exuberant-ctags)
--langdef=groovy
--langmap=groovy:.groovy
--regex-groovy=/^[ \t]*[(private|public|protected) ( \t)]*def[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-groovy=/^[ \t]*private def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,private,private variables/
--regex-groovy=/^[ \t]*public def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/u,public,public variables/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*class[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*enum[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
@chrismarksus
chrismarksus / dabblet.css
Last active February 4, 2016 21:49 — forked from anonymous/dabblet.css
The difference between these 2 purples
/**
* The difference between these 2 purples
*/
body{
font-weight: bold;
font-family: 'Comfortaa', cursive;
font-size: 2em;
background-color: #d3d3d3;
}
.container {
@chrismarksus
chrismarksus / dabblet.css
Last active February 8, 2016 18:18
The difference between these 2 purples
/**
* The difference between these 2 purples
*/
body{
font-weight: bold;
font-family: 'Comfortaa', cursive;
font-size: 2em;
background-color: #d3d3d3;
}
.container {
@chrismarksus
chrismarksus / dabblet.css
Created February 12, 2016 15:04
The difference between these 2 purples
/**
* The difference between these 2 purples
*/
body{
font-weight: bold;
font-family: 'Comfortaa', cursive;
font-size: 2em;
background-color: #d3d3d3;
}
.container {
@chrismarksus
chrismarksus / CONTRIBUTING.md
Last active February 14, 2017 04:30
CONTRIBUTING

#CONTRIBUTING

Right the project is a mess but I have good README, unit tests and code coverage.

@chrismarksus
chrismarksus / Dockerfile
Last active June 5, 2017 15:14
Dockerfile for create a simple web server
# Dockerfile for create a simple web server
#
# docker build -t pyweb .
# docker run -it --rm -v $(pwd):/usr/web pyweb
#
# docker run -d -v $(pwd):/usr/web pyweb
# docker logs NAME
#
# use the ip address produced by th 'ip a' output
@chrismarksus
chrismarksus / git_commands.md
Created June 7, 2017 13:20
Git Command Session Sheet

Git Terminology:

master default branch we develop in

origin default upstream repo (like Github)

HEAD current branch

remote repository stored on another computer