This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimpleCov.coverage_dir('tmp/coverage') | |
# save to CircleCI's artifacts directory if we're on CircleCI | |
# see https://circleci.com/docs/code-coverage | |
if ENV['CIRCLE_ARTIFACTS'] | |
dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'coverage') | |
SimpleCov.coverage_dir(dir) | |
end | |
require 'simplecov-csv' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
BASEDIR=$(dirname $0) | |
. $BASEDIR/functions.sh | |
# step "Remounting / and /boot as read-write:" | |
# try mount -o remount,rw / | |
# try mount -o remount,rw /boot | |
# next | |
# | |
# usecases: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# set -x | |
# script here will create new subversion repository (file based). | |
# then it will make 10 commits | |
# Then we will manipulate the commit dates of the ten commits | |
START_FOLDER=$(pwd) | |
REPO=repo02 | |
WD=working2 | |
HOOKFILE=$REPO/hooks/pre-revprop-change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style> | |
#before, #after {display: none;} | |
</style> | |
<style id="jsbin-css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEW_MAIL="[email protected]" | |
git filter-branch --env-filter ' | |
> if [[ "$GIT_AUTHOR_EMAIL" = "EMAIL" || "$GIT_AUTHOR_EMAIL" = "$NEW_MAIL" ]] | |
> then | |
> if [[ "$GIT_AUTHOR_NAME" = "Ben Alman" ]] | |
> then | |
> GIT_AUTHOR_NAME="Jesper Rønn-Jensen" | |
> GIT_COMMITTER_NAME="Jesper Rønn-Jensen" | |
> export GIT_AUTHOR_NAME | |
> export GIT_COMMITTER_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to make opened Markdown files always be soft wrapped: | |
# | |
# path = require 'path' | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='$(tput dim)\t $(tput setaf 5)[\w]$(tput setaf 2)$(__git_ps1 "(%s)")$(tput sgr0)\$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grafts define parents for commits see https://git.wiki.kernel.org/index.php/GraftPoint | |
# | |
# save this file as .git/info/grafts | |
# | |
# | |
# format: | |
# <commit sha1> <parent sha1> [<parent sha1>]* | |
# | |
# each entry terminated by a newline | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abbreviation: desc | |
Description: jasmine describe() | |
Applicable in: Javascript | |
Expand with: Default (Tab) | |
Template text: | |
describe('$SYSTEM_UNDER_TEST$', function() { | |
beforeEach(function() { | |
//First top level needs configure: | |
//jasmine.configure() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all java classes in tree. (including auto-generated classes in 'target' folders: | |
find . -name "*.java" | xargs egrep -o "class [A-Z]\w+" | awk '{print $2}' | sort | uniq -c | sort -n | grep -v 1 | |
# Use git (faster). | |
#Ignores any auto-generated classes since they are typically inside ignored 'target' folders | |
git grep --extended-regexp --no-index "class [A-Z]\w+" | egrep -o "class [A-Z]\w+" | awk '{print $2}' | sort | uniq -c | sort -n | grep -v 1 |