Skip to content

Instantly share code, notes, and snippets.

@granthenke
granthenke / README.md
Created May 15, 2014 00:14
Gradle task to invalidate the cache for a single passed dependency

Gradle Invalidate Task

Note: This is just a quickly hacked together task

To Use:

  • Paste the task below in a gradle build file
  • Call gradle invalidate -Pdependency=group:name:version substituting the dependency you want to invalidate.
@granthenke
granthenke / build.gradle
Created December 25, 2013 19:09
Runs code from the project the build script is building.
task runMyCode(dependsOn: 'classes', type: JavaExec) {
main = 'com.my.Code'
classpath = sourceSets.main.runtimeClasspath
args "arg1", "arg2"
}
@granthenke
granthenke / hadoop-aliases.sh
Last active May 10, 2020 23:21
A file containing useful/shortened aliases for use in Hadoop
# Generic Aliases
alias ll='ls -latr' # List all file in long list format by modification time
alias ..='cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories
alias ....='cd ../../..' # Go up three directories
alias -- -='cd -' # Go back
alias c='clear' # Clear Screen
alias k='clear' # Clear Screen
alias cls='clear' # Clear Screen
alias _="sudo" # Execute with sudo